/proto_src/org/waveprotocol/wave/concurrencycontrol/ClientServer.java
Java | 7716 lines | 6883 code | 677 blank | 156 comment | 751 complexity | aada35c21083b96d74900cb9894b6096 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-3.0, CPL-1.0, Apache-2.0, MIT
Large files files are truncated, but you can click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: org/waveprotocol/wave/concurrencycontrol/clientserver.proto
- package org.waveprotocol.wave.concurrencycontrol;
- public final class ClientServer {
- private ClientServer() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public static final class FetchWaveViewRequest extends
- com.google.protobuf.GeneratedMessage {
- // Use FetchWaveViewRequest.newBuilder() to construct.
- private FetchWaveViewRequest() {
- initFields();
- }
- private FetchWaveViewRequest(boolean noInit) {}
-
- private static final FetchWaveViewRequest defaultInstance;
- public static FetchWaveViewRequest getDefaultInstance() {
- return defaultInstance;
- }
-
- public FetchWaveViewRequest getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewRequest_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewRequest_fieldAccessorTable;
- }
-
- // required string waveId = 1;
- public static final int WAVEID_FIELD_NUMBER = 1;
- private boolean hasWaveId;
- private java.lang.String waveId_ = "";
- public boolean hasWaveId() { return hasWaveId; }
- public java.lang.String getWaveId() { return waveId_; }
-
- // repeated .concurrencycontrol.WaveletVersion knownWavelet = 2;
- public static final int KNOWNWAVELET_FIELD_NUMBER = 2;
- private java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> knownWavelet_ =
- java.util.Collections.emptyList();
- public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> getKnownWaveletList() {
- return knownWavelet_;
- }
- public int getKnownWaveletCount() { return knownWavelet_.size(); }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion getKnownWavelet(int index) {
- return knownWavelet_.get(index);
- }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- if (!hasWaveId) return false;
- for (org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion element : getKnownWaveletList()) {
- if (!element.isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasWaveId()) {
- output.writeString(1, getWaveId());
- }
- for (org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion element : getKnownWaveletList()) {
- output.writeMessage(2, element);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasWaveId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getWaveId());
- }
- for (org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion element : getKnownWaveletList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest result;
-
- // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest();
- return builder;
- }
-
- protected org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDescriptor();
- }
-
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest getDefaultInstanceForType() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- if (result.knownWavelet_ != java.util.Collections.EMPTY_LIST) {
- result.knownWavelet_ =
- java.util.Collections.unmodifiableList(result.knownWavelet_);
- }
- org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest) {
- return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest other) {
- if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDefaultInstance()) return this;
- if (other.hasWaveId()) {
- setWaveId(other.getWaveId());
- }
- if (!other.knownWavelet_.isEmpty()) {
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
- }
- result.knownWavelet_.addAll(other.knownWavelet_);
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- setWaveId(input.readString());
- break;
- }
- case 18: {
- org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addKnownWavelet(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // required string waveId = 1;
- public boolean hasWaveId() {
- return result.hasWaveId();
- }
- public java.lang.String getWaveId() {
- return result.getWaveId();
- }
- public Builder setWaveId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasWaveId = true;
- result.waveId_ = value;
- return this;
- }
- public Builder clearWaveId() {
- result.hasWaveId = false;
- result.waveId_ = getDefaultInstance().getWaveId();
- return this;
- }
-
- // repeated .concurrencycontrol.WaveletVersion knownWavelet = 2;
- public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> getKnownWaveletList() {
- return java.util.Collections.unmodifiableList(result.knownWavelet_);
- }
- public int getKnownWaveletCount() {
- return result.getKnownWaveletCount();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion getKnownWavelet(int index) {
- return result.getKnownWavelet(index);
- }
- public Builder setKnownWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.knownWavelet_.set(index, value);
- return this;
- }
- public Builder setKnownWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder builderForValue) {
- result.knownWavelet_.set(index, builderForValue.build());
- return this;
- }
- public Builder addKnownWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
- }
- result.knownWavelet_.add(value);
- return this;
- }
- public Builder addKnownWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder builderForValue) {
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
- }
- result.knownWavelet_.add(builderForValue.build());
- return this;
- }
- public Builder addAllKnownWavelet(
- java.lang.Iterable<? extends org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> values) {
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
- }
- super.addAll(values, result.knownWavelet_);
- return this;
- }
- public Builder clearKnownWavelet() {
- result.knownWavelet_ = java.util.Collections.emptyList();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:concurrencycontrol.FetchWaveViewRequest)
- }
-
- static {
- defaultInstance = new FetchWaveViewRequest(true);
- org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:concurrencycontrol.FetchWaveViewRequest)
- }
-
- public static final class FetchWaveViewResponse extends
- com.google.protobuf.GeneratedMessage {
- // Use FetchWaveViewResponse.newBuilder() to construct.
- private FetchWaveViewResponse() {
- initFields();
- }
- private FetchWaveViewResponse(boolean noInit) {}
-
- private static final FetchWaveViewResponse defaultInstance;
- public static FetchWaveViewResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public FetchWaveViewResponse getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_fieldAccessorTable;
- }
-
- public static final class Wavelet extends
- com.google.protobuf.GeneratedMessage {
- // Use Wavelet.newBuilder() to construct.
- private Wavelet() {
- initFields();
- }
- private Wavelet(boolean noInit) {}
-
- private static final Wavelet defaultInstance;
- public static Wavelet getDefaultInstance() {
- return defaultInstance;
- }
-
- public Wavelet getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_fieldAccessorTable;
- }
-
- // required string waveletId = 1;
- public static final int WAVELETID_FIELD_NUMBER = 1;
- private boolean hasWaveletId;
- private java.lang.String waveletId_ = "";
- public boolean hasWaveletId() { return hasWaveletId; }
- public java.lang.String getWaveletId() { return waveletId_; }
-
- // optional .concurrencycontrol.WaveletSnapshot snapshot = 2;
- public static final int SNAPSHOT_FIELD_NUMBER = 2;
- private boolean hasSnapshot;
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot snapshot_;
- public boolean hasSnapshot() { return hasSnapshot; }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot getSnapshot() { return snapshot_; }
-
- private void initFields() {
- snapshot_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance();
- }
- public final boolean isInitialized() {
- if (!hasWaveletId) return false;
- if (hasSnapshot()) {
- if (!getSnapshot().isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasWaveletId()) {
- output.writeString(1, getWaveletId());
- }
- if (hasSnapshot()) {
- output.writeMessage(2, getSnapshot());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasWaveletId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getWaveletId());
- }
- if (hasSnapshot()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getSnapshot());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet result;
-
- // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet();
- return builder;
- }
-
- protected org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.getDescriptor();
- }
-
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet getDefaultInstanceForType() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet) {
- return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet other) {
- if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.getDefaultInstance()) return this;
- if (other.hasWaveletId()) {
- setWaveletId(other.getWaveletId());
- }
- if (other.hasSnapshot()) {
- mergeSnapshot(other.getSnapshot());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- setWaveletId(input.readString());
- break;
- }
- case 18: {
- org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.newBuilder();
- if (hasSnapshot()) {
- subBuilder.mergeFrom(getSnapshot());
- }
- input.readMessage(subBuilder, extensionRegistry);
- setSnapshot(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // required string waveletId = 1;
- public boolean hasWaveletId() {
- return result.hasWaveletId();
- }
- public java.lang.String getWaveletId() {
- return result.getWaveletId();
- }
- public Builder setWaveletId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasWaveletId = true;
- result.waveletId_ = value;
- return this;
- }
- public Builder clearWaveletId() {
- result.hasWaveletId = false;
- result.waveletId_ = getDefaultInstance().getWaveletId();
- return this;
- }
-
- // optional .concurrencycontrol.WaveletSnapshot snapshot = 2;
- public boolean hasSnapshot() {
- return result.hasSnapshot();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot getSnapshot() {
- return result.getSnapshot();
- }
- public Builder setSnapshot(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasSnapshot = true;
- result.snapshot_ = value;
- return this;
- }
- public Builder setSnapshot(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.Builder builderForValue) {
- result.hasSnapshot = true;
- result.snapshot_ = builderForValue.build();
- return this;
- }
- public Builder mergeSnapshot(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot value) {
- if (result.hasSnapshot() &&
- result.snapshot_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance()) {
- result.snapshot_ =
- org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.newBuilder(result.snapshot_).mergeFrom(value).buildPartial();
- } else {
- result.snapshot_ = value;
- }
- result.hasSnapshot = true;
- return this;
- }
- public Builder clearSnapshot() {
- result.hasSnapshot = false;
- result.snapshot_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:concurrencycontrol.FetchWaveViewResponse.Wavelet)
- }
-
- static {
- defaultInstance = new Wavelet(true);
- org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:concurrencycontrol.FetchWaveViewResponse.Wavelet)
- }
-
- // required .concurrencycontrol.ResponseStatus status = 1;
- public static final int STATUS_FIELD_NUMBER = 1;
- private boolean hasStatus;
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus status_;
- public boolean hasStatus() { return hasStatus; }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() { return status_; }
-
- // repeated .concurrencycontrol.FetchWaveViewResponse.Wavelet wavelet = 2;
- public static final int WAVELET_FIELD_NUMBER = 2;
- private java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> wavelet_ =
- java.util.Collections.emptyList();
- public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> getWaveletList() {
- return wavelet_;
- }
- public int getWaveletCount() { return wavelet_.size(); }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet getWavelet(int index) {
- return wavelet_.get(index);
- }
-
- private void initFields() {
- status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
- }
- public final boolean isInitialized() {
- if (!hasStatus) return false;
- if (!getStatus().isInitialized()) return false;
- for (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet element : getWaveletList()) {
- if (!element.isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasStatus()) {
- output.writeMessage(1, getStatus());
- }
- for (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet element : getWaveletList()) {
- output.writeMessage(2, element);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasStatus()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getStatus());
- }
- for (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet element : getWaveletList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse result;
-
- // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse();
- return builder;
- }
-
- protected org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDescriptor();
- }
-
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse getDefaultInstanceForType() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- if (result.wavelet_ != java.util.Collections.EMPTY_LIST) {
- result.wavelet_ =
- java.util.Collections.unmodifiableList(result.wavelet_);
- }
- org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse) {
- return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse other) {
- if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance()) return this;
- if (other.hasStatus()) {
- mergeStatus(other.getStatus());
- }
- if (!other.wavelet_.isEmpty()) {
- if (result.wavelet_.isEmpty()) {
- result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
- }
- result.wavelet_.addAll(other.wavelet_);
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder();
- if (hasStatus()) {
- subBuilder.mergeFrom(getStatus());
- }
- input.readMessage(subBuilder, extensionRegistry);
- setStatus(subBuilder.buildPartial());
- break;
- }
- case 18: {
- org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addWavelet(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // required .concurrencycontrol.ResponseStatus status = 1;
- public boolean hasStatus() {
- return result.hasStatus();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() {
- return result.getStatus();
- }
- public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasStatus = true;
- result.status_ = value;
- return this;
- }
- public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder builderForValue) {
- result.hasStatus = true;
- result.status_ = builderForValue.build();
- return this;
- }
- public Builder mergeStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
- if (result.hasStatus() &&
- result.status_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance()) {
- result.status_ =
- org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder(result.status_).mergeFrom(value).buildPartial();
- } else {
- result.status_ = value;
- }
- result.hasStatus = true;
- return this;
- }
- public Builder clearStatus() {
- result.hasStatus = false;
- result.status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
- return this;
- }
-
- // repeated .concurrencycontrol.FetchWaveViewResponse.Wavelet wavelet = 2;
- public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> getWaveletList() {
- return java.util.Collections.unmodifiableList(result.wavelet_);
- }
- public int getWaveletCount() {
- return result.getWaveletCount();
- }
- public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet getWavelet(int index) {
- return result.getWavelet(index);
- }
- public Builder setWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.wavelet_.set(index, value);
- return this;
- }
- public Builder setWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder builderForValue) {
- result.wavelet_.set(index, builderForValue.build());
- return this;
- }
- public Builder addWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.wavelet_.isEmpty()) {
- result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
- }
- result.wavelet_.add(value);
- return this;
- }
- public Builder addWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder builderForValue) {
- if (result.wavelet_.isEmpty()) {
- result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
- }
- result.wavelet_.add(builderForValue.build());
- return this;
- }
- public Builder addAllWavelet(
- java.lang.Iterable<? extends org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> values) {
- if (result.wavelet_.isEmpty()) {
- result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
- }
- super.addAll(values, result.wavelet_);
- return this;
- }
- public Builder clearWavelet() {
- result.wavelet_ = java.util.Collections.emptyList();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:concurrencycontrol.FetchWaveViewResponse)
- }
-
- static {
- defaultInstance = new FetchWaveViewResponse(true);
- org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:concurrencycontrol.FetchWaveViewResponse)
- }
-
- public static final class WaveletVersion extends
- com.google.protobuf.GeneratedMessage {
- // Use WaveletVersion.newBuilder() to construct.
- private WaveletVersion() {
- initFields();
- }
- private WaveletVersion(boolean noInit) {}
-
- private static final WaveletVersion defaultInstance;
- public static WaveletVersion getDefaultInstance() {
- return defaultInstance;
- }
-
- public WaveletVersion getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletVersion…
Large files files are truncated, but you can click here to view the full file