/proto_src/org/waveprotocol/box/common/comms/WaveClientRpc.java
Java | 4984 lines | 4466 code | 405 blank | 113 comment | 510 complexity | 34591f86d7af5d6a58fd41bdb57d93f8 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/box/common/comms/waveclient-rpc.proto
- package org.waveprotocol.box.common.comms;
- public final class WaveClientRpc {
- private WaveClientRpc() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public static final class ProtocolAuthenticate extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtocolAuthenticate.newBuilder() to construct.
- private ProtocolAuthenticate() {
- initFields();
- }
- private ProtocolAuthenticate(boolean noInit) {}
-
- private static final ProtocolAuthenticate defaultInstance;
- public static ProtocolAuthenticate getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtocolAuthenticate getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable;
- }
-
- // required string token = 1;
- public static final int TOKEN_FIELD_NUMBER = 1;
- private boolean hasToken;
- private java.lang.String token_ = "";
- public boolean hasToken() { return hasToken; }
- public java.lang.String getToken() { return token_; }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- if (!hasToken) return false;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasToken()) {
- output.writeString(1, getToken());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasToken()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getToken());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate 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.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate 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.box.common.comms.WaveClientRpc.ProtocolAuthenticate 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.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate 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.box.common.comms.WaveClientRpc.ProtocolAuthenticate 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.box.common.comms.WaveClientRpc.ProtocolAuthenticate result;
-
- // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
- return builder;
- }
-
- protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDescriptor();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate getDefaultInstanceForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate) {
- return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate other) {
- if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance()) return this;
- if (other.hasToken()) {
- setToken(other.getToken());
- }
- 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: {
- setToken(input.readString());
- break;
- }
- }
- }
- }
-
-
- // required string token = 1;
- public boolean hasToken() {
- return result.hasToken();
- }
- public java.lang.String getToken() {
- return result.getToken();
- }
- public Builder setToken(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasToken = true;
- result.token_ = value;
- return this;
- }
- public Builder clearToken() {
- result.hasToken = false;
- result.token_ = getDefaultInstance().getToken();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticate)
- }
-
- static {
- defaultInstance = new ProtocolAuthenticate(true);
- org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticate)
- }
-
- public static final class ProtocolAuthenticationResult extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtocolAuthenticationResult.newBuilder() to construct.
- private ProtocolAuthenticationResult() {
- initFields();
- }
- private ProtocolAuthenticationResult(boolean noInit) {}
-
- private static final ProtocolAuthenticationResult defaultInstance;
- public static ProtocolAuthenticationResult getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtocolAuthenticationResult getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable;
- }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult 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.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult 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.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult 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.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult 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.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult 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.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult result;
-
- // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
- return builder;
- }
-
- protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDescriptor();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult getDefaultInstanceForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult) {
- return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult other) {
- if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance()) return this;
- 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;
- }
- }
- }
- }
-
-
- // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticationResult)
- }
-
- static {
- defaultInstance = new ProtocolAuthenticationResult(true);
- org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticationResult)
- }
-
- public static final class ProtocolOpenRequest extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtocolOpenRequest.newBuilder() to construct.
- private ProtocolOpenRequest() {
- initFields();
- }
- private ProtocolOpenRequest(boolean noInit) {}
-
- private static final ProtocolOpenRequest defaultInstance;
- public static ProtocolOpenRequest getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtocolOpenRequest getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable;
- }
-
- // required string participant_id = 1;
- public static final int PARTICIPANT_ID_FIELD_NUMBER = 1;
- private boolean hasParticipantId;
- private java.lang.String participantId_ = "";
- public boolean hasParticipantId() { return hasParticipantId; }
- public java.lang.String getParticipantId() { return participantId_; }
-
- // required string wave_id = 2;
- public static final int WAVE_ID_FIELD_NUMBER = 2;
- private boolean hasWaveId;
- private java.lang.String waveId_ = "";
- public boolean hasWaveId() { return hasWaveId; }
- public java.lang.String getWaveId() { return waveId_; }
-
- // repeated string wavelet_id_prefix = 3;
- public static final int WAVELET_ID_PREFIX_FIELD_NUMBER = 3;
- private java.util.List<java.lang.String> waveletIdPrefix_ =
- java.util.Collections.emptyList();
- public java.util.List<java.lang.String> getWaveletIdPrefixList() {
- return waveletIdPrefix_;
- }
- public int getWaveletIdPrefixCount() { return waveletIdPrefix_.size(); }
- public java.lang.String getWaveletIdPrefix(int index) {
- return waveletIdPrefix_.get(index);
- }
-
- // repeated .waveserver.WaveletVersion known_wavelet = 4;
- public static final int KNOWN_WAVELET_FIELD_NUMBER = 4;
- private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> knownWavelet_ =
- java.util.Collections.emptyList();
- public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
- return knownWavelet_;
- }
- public int getKnownWaveletCount() { return knownWavelet_.size(); }
- public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
- return knownWavelet_.get(index);
- }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- if (!hasParticipantId) return false;
- if (!hasWaveId) return false;
- for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
- if (!element.isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasParticipantId()) {
- output.writeString(1, getParticipantId());
- }
- if (hasWaveId()) {
- output.writeString(2, getWaveId());
- }
- for (java.lang.String element : getWaveletIdPrefixList()) {
- output.writeString(3, element);
- }
- for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
- output.writeMessage(4, element);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasParticipantId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getParticipantId());
- }
- if (hasWaveId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(2, getWaveId());
- }
- {
- int dataSize = 0;
- for (java.lang.String element : getWaveletIdPrefixList()) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * getWaveletIdPrefixList().size();
- }
- for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, element);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest 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.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest 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.box.common.comms.WaveClientRpc.ProtocolOpenRequest 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.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest 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.box.common.comms.WaveClientRpc.ProtocolOpenRequest 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.box.common.comms.WaveClientRpc.ProtocolOpenRequest result;
-
- // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
- return builder;
- }
-
- protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDescriptor();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest getDefaultInstanceForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- if (result.waveletIdPrefix_ != java.util.Collections.EMPTY_LIST) {
- result.waveletIdPrefix_ =
- java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
- }
- if (result.knownWavelet_ != java.util.Collections.EMPTY_LIST) {
- result.knownWavelet_ =
- java.util.Collections.unmodifiableList(result.knownWavelet_);
- }
- org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest) {
- return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest other) {
- if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance()) return this;
- if (other.hasParticipantId()) {
- setParticipantId(other.getParticipantId());
- }
- if (other.hasWaveId()) {
- setWaveId(other.getWaveId());
- }
- if (!other.waveletIdPrefix_.isEmpty()) {
- if (result.waveletIdPrefix_.isEmpty()) {
- result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
- }
- result.waveletIdPrefix_.addAll(other.waveletIdPrefix_);
- }
- if (!other.knownWavelet_.isEmpty()) {
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.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: {
- setParticipantId(input.readString());
- break;
- }
- case 18: {
- setWaveId(input.readString());
- break;
- }
- case 26: {
- addWaveletIdPrefix(input.readString());
- break;
- }
- case 34: {
- org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addKnownWavelet(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // required string participant_id = 1;
- public boolean hasParticipantId() {
- return result.hasParticipantId();
- }
- public java.lang.String getParticipantId() {
- return result.getParticipantId();
- }
- public Builder setParticipantId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasParticipantId = true;
- result.participantId_ = value;
- return this;
- }
- public Builder clearParticipantId() {
- result.hasParticipantId = false;
- result.participantId_ = getDefaultInstance().getParticipantId();
- return this;
- }
-
- // required string wave_id = 2;
- 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 string wavelet_id_prefix = 3;
- public java.util.List<java.lang.String> getWaveletIdPrefixList() {
- return java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
- }
- public int getWaveletIdPrefixCount() {
- return result.getWaveletIdPrefixCount();
- }
- public java.lang.String getWaveletIdPrefix(int index) {
- return result.getWaveletIdPrefix(index);
- }
- public Builder setWaveletIdPrefix(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.waveletIdPrefix_.set(index, value);
- return this;
- }
- public Builder addWaveletIdPrefix(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.waveletIdPrefix_.isEmpty()) {
- result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
- }
- result.waveletIdPrefix_.add(value);
- return this;
- }
- public Builder addAllWaveletIdPrefix(
- java.lang.Iterable<? extends java.lang.String> values) {
- if (result.waveletIdPrefix_.isEmpty()) {
- result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
- }
- super.addAll(values, result.waveletIdPrefix_);
- return this;
- }
- public Builder clearWaveletIdPrefix() {
- result.waveletIdPrefix_ = java.util.Collections.emptyList();
- return this;
- }
-
- // repeated .waveserver.WaveletVersion known_wavelet = 4;
- public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
- return java.util.Collections.unmodifiableList(result.knownWavelet_);
- }
- public int getKnownWaveletCount() {
- return result.getKnownWaveletCount();
- }
- public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
- return result.getKnownWavelet(index);
- }
- public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.knownWavelet_.set(index, value);
- return this;
- }
- public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
- result.knownWavelet_.set(index, builderForValue.build());
- return this;
- }
- public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
- }
- result.knownWavelet_.add(value);
- return this;
- }
- public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
- }
- result.knownWavelet_.add(builderForValue.build());
- return this;
- }
- public Builder addAllKnownWavelet(
- java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> values) {
- if (result.knownWavelet_.isEmpty()) {
- result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
- }
- super.addAll(values, result.knownWavelet_);
- return this;
- }
- public Builder clearKnownWavelet() {
- result.knownWavelet_ = java.util.Collections.emptyList();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:waveserver.ProtocolOpenRequest)
- }
-
- static {
- defaultInstance = new ProtocolOpenRequest(true);
- org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:waveserver.ProtocolOpenRequest)
- }
-
- 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.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_fieldAccessorTable;
- }
-
- // required string wavelet_id = 1;
- public static final int WAVELET_ID_FIELD_NUMBER = 1;
- private boolean hasWaveletId;
- private java.lang.String waveletId_ = "";
- public boolean hasWaveletId() { return hasWaveletId; }
- public java.lang.String getWaveletId() { return waveletId_; }
-
- // required .federation.ProtocolHashedVersion hashed_version = 2;
- public static final int HASHED_VERSION_FIELD_NUMBER = 2;
- private boolean hasHashedVersion;
- private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersion_;
- public boolean hasHashedVersion() { return hasHashedVersion; }
- public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersion() { return hashedVersion_; }
-
- private void initFields() {
- hashedVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
- }
- public final boolean isInitialized() {
- if (!hasWaveletId) return false;
- if (!hasHashedVersion) return false;
- if (!getHashedVersion().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 (hasHashedVersion()) {
- output.writeMessage(2, getHashedVersion());
- }
- 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 (hasHashedVersion()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getHashedVersion());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion 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.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion 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.box.common.comms.WaveClientRpc.WaveletVersion 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.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion 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.box.common.comms.WaveClientRpc.WaveletVersion 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.box.common.comms.WaveClientRpc.WaveletVersion result;
-
- // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
- return builder;
- }
-
- protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDescriptor();
- }
-
- public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getDefaultInstanceForType() {
- return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.waveprotocol.box.…
Large files files are truncated, but you can click here to view the full file