// Generated by the protocol buffer compiler. DO NOT EDIT! // source: client_protocol.proto package com.google.protos.ipc.invalidation; public final class ClientProtocol { private ClientProtocol() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public interface VersionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 major_version = 1; /** * <code>optional int32 major_version = 1;</code> */ boolean hasMajorVersion(); /** * <code>optional int32 major_version = 1;</code> */ int getMajorVersion(); // optional int32 minor_version = 2; /** * <code>optional int32 minor_version = 2;</code> */ boolean hasMinorVersion(); /** * <code>optional int32 minor_version = 2;</code> */ int getMinorVersion(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.Version} * * <pre> * A basic message type used for versioning public proto messages and/or * types. The two fields are supposed to be used as follows: * * * The major version number is changed whenever an incompatible protocol * change or type has been made. When a message/object with a particular * major version is received, the receiver needs to either know how to handle * this version or it needs to drop the message * * * The minor version can be changed (say) to document some internal change * for debugging purposes. When a message is received by a receiver, it MUST * ignore the minor version number for making any protocol/type * decisions. I.e., the minor version number is for debugging purposes only. * * Versioning is used in various places - for entities that are part of a * protocol (e.g., message requests), for various client implementations, and * for other data types that change independently of the protocol (e.g., * session tokens). For each versioned entity, we define a specific message * type to encapsulate the version of that entity (e.g., ProtocolVersion, * ClientVersion, etc.). * </pre> */ public static final class Version extends com.google.protobuf.GeneratedMessageLite implements VersionOrBuilder { // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private Version(boolean noInit) {} private static final Version defaultInstance; public static Version getDefaultInstance() { return defaultInstance; } public Version getDefaultInstanceForType() { return defaultInstance; } private Version( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; majorVersion_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; minorVersion_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<Version> PARSER = new com.google.protobuf.AbstractParser<Version>() { public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Version(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Version> getParserForType() { return PARSER; } private int bitField0_; // optional int32 major_version = 1; public static final int MAJOR_VERSION_FIELD_NUMBER = 1; private int majorVersion_; /** * <code>optional int32 major_version = 1;</code> */ public boolean hasMajorVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 major_version = 1;</code> */ public int getMajorVersion() { return majorVersion_; } // optional int32 minor_version = 2; public static final int MINOR_VERSION_FIELD_NUMBER = 2; private int minorVersion_; /** * <code>optional int32 minor_version = 2;</code> */ public boolean hasMinorVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 minor_version = 2;</code> */ public int getMinorVersion() { return minorVersion_; } private void initFields() { majorVersion_ = 0; minorVersion_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, minorVersion_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, minorVersion_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.Version parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.Version prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.Version} * * <pre> * A basic message type used for versioning public proto messages and/or * types. The two fields are supposed to be used as follows: * * * The major version number is changed whenever an incompatible protocol * change or type has been made. When a message/object with a particular * major version is received, the receiver needs to either know how to handle * this version or it needs to drop the message * * * The minor version can be changed (say) to document some internal change * for debugging purposes. When a message is received by a receiver, it MUST * ignore the minor version number for making any protocol/type * decisions. I.e., the minor version number is for debugging purposes only. * * Versioning is used in various places - for entities that are part of a * protocol (e.g., message requests), for various client implementations, and * for other data types that change independently of the protocol (e.g., * session tokens). For each versioned entity, we define a specific message * type to encapsulate the version of that entity (e.g., ProtocolVersion, * ClientVersion, etc.). * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.Version, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.VersionOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); majorVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000001); minorVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.Version getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.Version build() { com.google.protos.ipc.invalidation.ClientProtocol.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.Version buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.Version result = new com.google.protos.ipc.invalidation.ClientProtocol.Version(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.majorVersion_ = majorVersion_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.minorVersion_ = minorVersion_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.Version other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) return this; if (other.hasMajorVersion()) { setMajorVersion(other.getMajorVersion()); } if (other.hasMinorVersion()) { setMinorVersion(other.getMinorVersion()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.Version parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.Version) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 major_version = 1; private int majorVersion_ ; /** * <code>optional int32 major_version = 1;</code> */ public boolean hasMajorVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 major_version = 1;</code> */ public int getMajorVersion() { return majorVersion_; } /** * <code>optional int32 major_version = 1;</code> */ public Builder setMajorVersion(int value) { bitField0_ |= 0x00000001; majorVersion_ = value; return this; } /** * <code>optional int32 major_version = 1;</code> */ public Builder clearMajorVersion() { bitField0_ = (bitField0_ & ~0x00000001); majorVersion_ = 0; return this; } // optional int32 minor_version = 2; private int minorVersion_ ; /** * <code>optional int32 minor_version = 2;</code> */ public boolean hasMinorVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 minor_version = 2;</code> */ public int getMinorVersion() { return minorVersion_; } /** * <code>optional int32 minor_version = 2;</code> */ public Builder setMinorVersion(int value) { bitField0_ |= 0x00000002; minorVersion_ = value; return this; } /** * <code>optional int32 minor_version = 2;</code> */ public Builder clearMinorVersion() { bitField0_ = (bitField0_ & ~0x00000002); minorVersion_ = 0; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.Version) } static { defaultInstance = new Version(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.Version) } public interface ProtocolVersionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.Version version = 1; /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ boolean hasVersion(); /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ProtocolVersion} * * <pre> * Message included in all client <-> server messages to indicate the version * of the protocol in use by the sender. * </pre> */ public static final class ProtocolVersion extends com.google.protobuf.GeneratedMessageLite implements ProtocolVersionOrBuilder { // Use ProtocolVersion.newBuilder() to construct. private ProtocolVersion(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ProtocolVersion(boolean noInit) {} private static final ProtocolVersion defaultInstance; public static ProtocolVersion getDefaultInstance() { return defaultInstance; } public ProtocolVersion getDefaultInstanceForType() { return defaultInstance; } private ProtocolVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ProtocolVersion> PARSER = new com.google.protobuf.AbstractParser<ProtocolVersion>() { public ProtocolVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtocolVersion(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ProtocolVersion> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.Version version = 1; public static final int VERSION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.Version version_; /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() { return version_; } private void initFields() { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, version_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, version_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ProtocolVersion} * * <pre> * Message included in all client <-> server messages to indicate the version * of the protocol in use by the sender. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersionOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion build() { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion result = new com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.Version version = 1; private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() { return version_; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder setVersion( com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) { version_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) { if (((bitField0_ & 0x00000001) == 0x00000001) && version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder clearVersion() { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ProtocolVersion) } static { defaultInstance = new ProtocolVersion(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ProtocolVersion) } public interface ClientVersionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.Version version = 1; /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ boolean hasVersion(); /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion(); // optional string platform = 2; /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ boolean hasPlatform(); /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ java.lang.String getPlatform(); /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ com.google.protobuf.ByteString getPlatformBytes(); // optional string language = 3; /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ boolean hasLanguage(); /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ java.lang.String getLanguage(); /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ com.google.protobuf.ByteString getLanguageBytes(); // optional string application_info = 4; /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ boolean hasApplicationInfo(); /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ java.lang.String getApplicationInfo(); /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ com.google.protobuf.ByteString getApplicationInfoBytes(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientVersion} * * <pre> * Defines a specific version of the client library (for information purposes * only) May not be used to make decisions at the server (use ProtocolVersion * instead). * </pre> */ public static final class ClientVersion extends com.google.protobuf.GeneratedMessageLite implements ClientVersionOrBuilder { // Use ClientVersion.newBuilder() to construct. private ClientVersion(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ClientVersion(boolean noInit) {} private static final ClientVersion defaultInstance; public static ClientVersion getDefaultInstance() { return defaultInstance; } public ClientVersion getDefaultInstanceForType() { return defaultInstance; } private ClientVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; platform_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; language_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; applicationInfo_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ClientVersion> PARSER = new com.google.protobuf.AbstractParser<ClientVersion>() { public ClientVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientVersion(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ClientVersion> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.Version version = 1; public static final int VERSION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.Version version_; /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() { return version_; } // optional string platform = 2; public static final int PLATFORM_FIELD_NUMBER = 2; private java.lang.Object platform_; /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public boolean hasPlatform() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public java.lang.String getPlatform() { java.lang.Object ref = platform_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { platform_ = s; } return s; } } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public com.google.protobuf.ByteString getPlatformBytes() { java.lang.Object ref = platform_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); platform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string language = 3; public static final int LANGUAGE_FIELD_NUMBER = 3; private java.lang.Object language_; /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public boolean hasLanguage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { language_ = s; } return s; } } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string application_info = 4; public static final int APPLICATION_INFO_FIELD_NUMBER = 4; private java.lang.Object applicationInfo_; /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public boolean hasApplicationInfo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public java.lang.String getApplicationInfo() { java.lang.Object ref = applicationInfo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { applicationInfo_ = s; } return s; } } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public com.google.protobuf.ByteString getApplicationInfoBytes() { java.lang.Object ref = applicationInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); applicationInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); platform_ = ""; language_ = ""; applicationInfo_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getPlatformBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getLanguageBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getApplicationInfoBytes()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getPlatformBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getLanguageBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getApplicationInfoBytes()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientVersion} * * <pre> * Defines a specific version of the client library (for information purposes * only) May not be used to make decisions at the server (use ProtocolVersion * instead). * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ClientVersionOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); platform_ = ""; bitField0_ = (bitField0_ & ~0x00000002); language_ = ""; bitField0_ = (bitField0_ & ~0x00000004); applicationInfo_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion build() { com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion result = new com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.platform_ = platform_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.language_ = language_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.applicationInfo_ = applicationInfo_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (other.hasPlatform()) { bitField0_ |= 0x00000002; platform_ = other.platform_; } if (other.hasLanguage()) { bitField0_ |= 0x00000004; language_ = other.language_; } if (other.hasApplicationInfo()) { bitField0_ |= 0x00000008; applicationInfo_ = other.applicationInfo_; } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.Version version = 1; private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() { return version_; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public Builder setVersion( com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) { version_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) { if (((bitField0_ & 0x00000001) == 0x00000001) && version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> * * <pre> * A client-specific version number. * </pre> */ public Builder clearVersion() { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional string platform = 2; private java.lang.Object platform_ = ""; /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public boolean hasPlatform() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public java.lang.String getPlatform() { java.lang.Object ref = platform_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); platform_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public com.google.protobuf.ByteString getPlatformBytes() { java.lang.Object ref = platform_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); platform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public Builder setPlatform( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; platform_ = value; return this; } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public Builder clearPlatform() { bitField0_ = (bitField0_ & ~0x00000002); platform_ = getDefaultInstance().getPlatform(); return this; } /** * <code>optional string platform = 2;</code> * * <pre> * Information about the client operating system/platform, e.g., Windows, * ChromeOS. * </pre> */ public Builder setPlatformBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; platform_ = value; return this; } // optional string language = 3; private java.lang.Object language_ = ""; /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public boolean hasLanguage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); language_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; language_ = value; return this; } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000004); language_ = getDefaultInstance().getLanguage(); return this; } /** * <code>optional string language = 3;</code> * * <pre> * Language used for the library. * </pre> */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; language_ = value; return this; } // optional string application_info = 4; private java.lang.Object applicationInfo_ = ""; /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public boolean hasApplicationInfo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public java.lang.String getApplicationInfo() { java.lang.Object ref = applicationInfo_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); applicationInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public com.google.protobuf.ByteString getApplicationInfoBytes() { java.lang.Object ref = applicationInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); applicationInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public Builder setApplicationInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; applicationInfo_ = value; return this; } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public Builder clearApplicationInfo() { bitField0_ = (bitField0_ & ~0x00000008); applicationInfo_ = getDefaultInstance().getApplicationInfo(); return this; } /** * <code>optional string application_info = 4;</code> * * <pre> * Extra information about the client (e.g., application name). * </pre> */ public Builder setApplicationInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; applicationInfo_ = value; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientVersion) } static { defaultInstance = new ClientVersion(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientVersion) } public interface StatusPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1; /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ boolean hasCode(); /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code getCode(); // optional string description = 2; /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ boolean hasDescription(); /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ java.lang.String getDescription(); /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ com.google.protobuf.ByteString getDescriptionBytes(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.StatusP} * * <pre> * Message indicating the result of an operation. * </pre> */ public static final class StatusP extends com.google.protobuf.GeneratedMessageLite implements StatusPOrBuilder { // Use StatusP.newBuilder() to construct. private StatusP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private StatusP(boolean noInit) {} private static final StatusP defaultInstance; public static StatusP getDefaultInstance() { return defaultInstance; } public StatusP getDefaultInstanceForType() { return defaultInstance; } private StatusP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code value = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code.valueOf(rawValue); if (value != null) { bitField0_ |= 0x00000001; code_ = value; } break; } case 18: { bitField0_ |= 0x00000002; description_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<StatusP> PARSER = new com.google.protobuf.AbstractParser<StatusP>() { public StatusP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<StatusP> getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.ipc.invalidation.StatusP.Code} * * <pre> * Whether operation is successful or not * </pre> */ public enum Code implements com.google.protobuf.Internal.EnumLite { /** * <code>SUCCESS = 1;</code> */ SUCCESS(0, 1), /** * <code>TRANSIENT_FAILURE = 2;</code> */ TRANSIENT_FAILURE(1, 2), /** * <code>PERMANENT_FAILURE = 3;</code> */ PERMANENT_FAILURE(2, 3), ; /** * <code>SUCCESS = 1;</code> */ public static final int SUCCESS_VALUE = 1; /** * <code>TRANSIENT_FAILURE = 2;</code> */ public static final int TRANSIENT_FAILURE_VALUE = 2; /** * <code>PERMANENT_FAILURE = 3;</code> */ public static final int PERMANENT_FAILURE_VALUE = 3; public final int getNumber() { return value; } public static Code valueOf(int value) { switch (value) { case 1: return SUCCESS; case 2: return TRANSIENT_FAILURE; case 3: return PERMANENT_FAILURE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Code> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Code>() { public Code findValueByNumber(int number) { return Code.valueOf(number); } }; private final int value; private Code(int index, int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.ipc.invalidation.StatusP.Code) } private int bitField0_; // optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1; public static final int CODE_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code code_; /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ public boolean hasCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code getCode() { return code_; } // optional string description = 2; public static final int DESCRIPTION_FIELD_NUMBER = 2; private java.lang.Object description_; /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { code_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code.SUCCESS; description_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, code_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDescriptionBytes()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDescriptionBytes()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.StatusP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.StatusP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.StatusP} * * <pre> * Message indicating the result of an operation. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.StatusP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.StatusPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.StatusP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); code_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code.SUCCESS; bitField0_ = (bitField0_ & ~0x00000001); description_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.StatusP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.StatusP build() { com.google.protos.ipc.invalidation.ClientProtocol.StatusP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.StatusP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.StatusP result = new com.google.protos.ipc.invalidation.ClientProtocol.StatusP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.code_ = code_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.description_ = description_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.StatusP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance()) return this; if (other.hasCode()) { setCode(other.getCode()); } if (other.hasDescription()) { bitField0_ |= 0x00000002; description_ = other.description_; } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.StatusP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.StatusP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1; private com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code code_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code.SUCCESS; /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ public boolean hasCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code getCode() { return code_; } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ public Builder setCode(com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; code_ = value; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP.Code code = 1;</code> */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); code_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Code.SUCCESS; return this; } // optional string description = 2; private java.lang.Object description_ = ""; /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; return this; } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); return this; } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the status or additional context about any * error. (Optional - Can be set for success also.) * </pre> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.StatusP) } static { defaultInstance = new StatusP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.StatusP) } public interface ObjectIdPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 source = 1; /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ boolean hasSource(); /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ int getSource(); // optional bytes name = 2; /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ boolean hasName(); /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ com.google.protobuf.ByteString getName(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ObjectIdP} * * <pre> * Identifies an object that a client can register for. * </pre> */ public static final class ObjectIdP extends com.google.protobuf.GeneratedMessageLite implements ObjectIdPOrBuilder { // Use ObjectIdP.newBuilder() to construct. private ObjectIdP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ObjectIdP(boolean noInit) {} private static final ObjectIdP defaultInstance; public static ObjectIdP getDefaultInstance() { return defaultInstance; } public ObjectIdP getDefaultInstanceForType() { return defaultInstance; } private ObjectIdP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; source_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ObjectIdP> PARSER = new com.google.protobuf.AbstractParser<ObjectIdP>() { public ObjectIdP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectIdP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ObjectIdP> getParserForType() { return PARSER; } private int bitField0_; // optional int32 source = 1; public static final int SOURCE_FIELD_NUMBER = 1; private int source_; /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ public int getSource() { return source_; } // optional bytes name = 2; public static final int NAME_FIELD_NUMBER = 2; private com.google.protobuf.ByteString name_; /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ public com.google.protobuf.ByteString getName() { return name_; } private void initFields() { source_ = 0; name_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, source_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, name_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, source_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, name_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ObjectIdP} * * <pre> * Identifies an object that a client can register for. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); source_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP build() { com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP result = new com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.source_ = source_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance()) return this; if (other.hasSource()) { setSource(other.getSource()); } if (other.hasName()) { setName(other.getName()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 source = 1; private int source_ ; /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ public int getSource() { return source_; } /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ public Builder setSource(int value) { bitField0_ |= 0x00000001; source_ = value; return this; } /** * <code>optional int32 source = 1;</code> * * <pre> * The source of the data. * </pre> */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000001); source_ = 0; return this; } // optional bytes name = 2; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ public com.google.protobuf.ByteString getName() { return name_; } /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; return this; } /** * <code>optional bytes name = 2;</code> * * <pre> * The id of the object relative to the source. Must be <= 64 bytes. * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ObjectIdP) } static { defaultInstance = new ObjectIdP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ObjectIdP) } public interface ApplicationClientIdPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 client_type = 1; /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ boolean hasClientType(); /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ int getClientType(); // optional bytes client_name = 2; /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ boolean hasClientName(); /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ com.google.protobuf.ByteString getClientName(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ApplicationClientIdP} * * <pre> * A message containing the part of the client's id that the application * controls. This id is used for squelching invalidations on the server side. * For example, if a client C1 modifies object x and informs the backend about * C1's application client id as part of the invalidation. The backend can then * avoid sending the invalidation unnecessarily to that client. * * If the application wishes to use this squelching feature, it must assign a * globally unique client_name for a given client_type so that the particular * instantation of the application can be identified. * </pre> */ public static final class ApplicationClientIdP extends com.google.protobuf.GeneratedMessageLite implements ApplicationClientIdPOrBuilder { // Use ApplicationClientIdP.newBuilder() to construct. private ApplicationClientIdP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ApplicationClientIdP(boolean noInit) {} private static final ApplicationClientIdP defaultInstance; public static ApplicationClientIdP getDefaultInstance() { return defaultInstance; } public ApplicationClientIdP getDefaultInstanceForType() { return defaultInstance; } private ApplicationClientIdP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; clientType_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; clientName_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ApplicationClientIdP> PARSER = new com.google.protobuf.AbstractParser<ApplicationClientIdP>() { public ApplicationClientIdP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationClientIdP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ApplicationClientIdP> getParserForType() { return PARSER; } private int bitField0_; // optional int32 client_type = 1; public static final int CLIENT_TYPE_FIELD_NUMBER = 1; private int clientType_; /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ public boolean hasClientType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ public int getClientType() { return clientType_; } // optional bytes client_name = 2; public static final int CLIENT_NAME_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientName_; /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ public boolean hasClientName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ public com.google.protobuf.ByteString getClientName() { return clientName_; } private void initFields() { clientType_ = 0; clientName_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, clientType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, clientName_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, clientType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, clientName_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ApplicationClientIdP} * * <pre> * A message containing the part of the client's id that the application * controls. This id is used for squelching invalidations on the server side. * For example, if a client C1 modifies object x and informs the backend about * C1's application client id as part of the invalidation. The backend can then * avoid sending the invalidation unnecessarily to that client. * * If the application wishes to use this squelching feature, it must assign a * globally unique client_name for a given client_type so that the particular * instantation of the application can be identified. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clientType_ = 0; bitField0_ = (bitField0_ & ~0x00000001); clientName_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP build() { com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP result = new com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientType_ = clientType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.clientName_ = clientName_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance()) return this; if (other.hasClientType()) { setClientType(other.getClientType()); } if (other.hasClientName()) { setClientName(other.getClientName()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 client_type = 1; private int clientType_ ; /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ public boolean hasClientType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ public int getClientType() { return clientType_; } /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ public Builder setClientType(int value) { bitField0_ |= 0x00000001; clientType_ = value; return this; } /** * <code>optional int32 client_type = 1;</code> * * <pre> * The type of the client. * </pre> */ public Builder clearClientType() { bitField0_ = (bitField0_ & ~0x00000001); clientType_ = 0; return this; } // optional bytes client_name = 2; private com.google.protobuf.ByteString clientName_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ public boolean hasClientName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ public com.google.protobuf.ByteString getClientName() { return clientName_; } /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ public Builder setClientName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientName_ = value; return this; } /** * <code>optional bytes client_name = 2;</code> * * <pre> * A client name or unique id assigned by the application. Application should * choose a unique name for different client instances if it wants to squelch * invalidations by name (as discussed above). * </pre> */ public Builder clearClientName() { bitField0_ = (bitField0_ & ~0x00000002); clientName_ = getDefaultInstance().getClientName(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ApplicationClientIdP) } static { defaultInstance = new ApplicationClientIdP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ApplicationClientIdP) } public interface InvalidationPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ boolean hasObjectId(); /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId(); // optional bool is_known_version = 2; /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ boolean hasIsKnownVersion(); /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ boolean getIsKnownVersion(); // optional int64 version = 3; /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ boolean hasVersion(); /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ long getVersion(); // optional bool is_trickle_restart = 6 [default = true]; /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ boolean hasIsTrickleRestart(); /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ boolean getIsTrickleRestart(); // optional bytes payload = 4; /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ boolean hasPayload(); /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ com.google.protobuf.ByteString getPayload(); // optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true]; /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated boolean hasBridgeArrivalTimeMsDeprecated(); /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated long getBridgeArrivalTimeMsDeprecated(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InvalidationP} * * <pre> * Invalidation for a given object/version. * </pre> */ public static final class InvalidationP extends com.google.protobuf.GeneratedMessageLite implements InvalidationPOrBuilder { // Use InvalidationP.newBuilder() to construct. private InvalidationP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private InvalidationP(boolean noInit) {} private static final InvalidationP defaultInstance; public static InvalidationP getDefaultInstance() { return defaultInstance; } public InvalidationP getDefaultInstanceForType() { return defaultInstance; } private InvalidationP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = objectId_.toBuilder(); } objectId_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectId_); objectId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; isKnownVersion_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; version_ = input.readInt64(); break; } case 34: { bitField0_ |= 0x00000010; payload_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000020; bridgeArrivalTimeMsDeprecated_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000008; isTrickleRestart_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<InvalidationP> PARSER = new com.google.protobuf.AbstractParser<InvalidationP>() { public InvalidationP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InvalidationP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InvalidationP> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1; public static final int OBJECT_ID_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP objectId_; /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public boolean hasObjectId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() { return objectId_; } // optional bool is_known_version = 2; public static final int IS_KNOWN_VERSION_FIELD_NUMBER = 2; private boolean isKnownVersion_; /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ public boolean hasIsKnownVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ public boolean getIsKnownVersion() { return isKnownVersion_; } // optional int64 version = 3; public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ public long getVersion() { return version_; } // optional bool is_trickle_restart = 6 [default = true]; public static final int IS_TRICKLE_RESTART_FIELD_NUMBER = 6; private boolean isTrickleRestart_; /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ public boolean hasIsTrickleRestart() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ public boolean getIsTrickleRestart() { return isTrickleRestart_; } // optional bytes payload = 4; public static final int PAYLOAD_FIELD_NUMBER = 4; private com.google.protobuf.ByteString payload_; /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ public boolean hasPayload() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ public com.google.protobuf.ByteString getPayload() { return payload_; } // optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true]; public static final int BRIDGE_ARRIVAL_TIME_MS_DEPRECATED_FIELD_NUMBER = 5; private long bridgeArrivalTimeMsDeprecated_; /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated public boolean hasBridgeArrivalTimeMsDeprecated() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated public long getBridgeArrivalTimeMsDeprecated() { return bridgeArrivalTimeMsDeprecated_; } private void initFields() { objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); isKnownVersion_ = false; version_ = 0L; isTrickleRestart_ = true; payload_ = com.google.protobuf.ByteString.EMPTY; bridgeArrivalTimeMsDeprecated_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, objectId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, isKnownVersion_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, version_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(4, payload_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(5, bridgeArrivalTimeMsDeprecated_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(6, isTrickleRestart_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, objectId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isKnownVersion_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, version_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, payload_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, bridgeArrivalTimeMsDeprecated_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isTrickleRestart_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InvalidationP} * * <pre> * Invalidation for a given object/version. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.InvalidationPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); isKnownVersion_ = false; bitField0_ = (bitField0_ & ~0x00000002); version_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); isTrickleRestart_ = true; bitField0_ = (bitField0_ & ~0x00000008); payload_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); bridgeArrivalTimeMsDeprecated_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP build() { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP result = new com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.objectId_ = objectId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.isKnownVersion_ = isKnownVersion_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.version_ = version_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.isTrickleRestart_ = isTrickleRestart_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.payload_ = payload_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.bridgeArrivalTimeMsDeprecated_ = bridgeArrivalTimeMsDeprecated_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance()) return this; if (other.hasObjectId()) { mergeObjectId(other.getObjectId()); } if (other.hasIsKnownVersion()) { setIsKnownVersion(other.getIsKnownVersion()); } if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasIsTrickleRestart()) { setIsTrickleRestart(other.getIsTrickleRestart()); } if (other.hasPayload()) { setPayload(other.getPayload()); } if (other.hasBridgeArrivalTimeMsDeprecated()) { setBridgeArrivalTimeMsDeprecated(other.getBridgeArrivalTimeMsDeprecated()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public boolean hasObjectId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() { return objectId_; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public Builder setObjectId(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (value == null) { throw new NullPointerException(); } objectId_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public Builder setObjectId( com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) { objectId_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public Builder mergeObjectId(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (((bitField0_ & 0x00000001) == 0x00000001) && objectId_ != com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance()) { objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.newBuilder(objectId_).mergeFrom(value).buildPartial(); } else { objectId_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The id of the object being invalidated. * </pre> */ public Builder clearObjectId() { objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional bool is_known_version = 2; private boolean isKnownVersion_ ; /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ public boolean hasIsKnownVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ public boolean getIsKnownVersion() { return isKnownVersion_; } /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ public Builder setIsKnownVersion(boolean value) { bitField0_ |= 0x00000002; isKnownVersion_ = value; return this; } /** * <code>optional bool is_known_version = 2;</code> * * <pre> * Whether the invalidation is for a known version of the object as assigned * by an application backend (is_known_version == true) or an unknown system * version synthesized by the invalidation service. (Note that if * is_known_version is false then is_trickle_restart be true or missing * because an unknown version implies that invalidation versions prior to the * current backend version may have been dropped.) * </pre> */ public Builder clearIsKnownVersion() { bitField0_ = (bitField0_ & ~0x00000002); isKnownVersion_ = false; return this; } // optional int64 version = 3; private long version_ ; /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ public long getVersion() { return version_; } /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ public Builder setVersion(long value) { bitField0_ |= 0x00000004; version_ = value; return this; } /** * <code>optional int64 version = 3;</code> * * <pre> * Version being invalidated (see comment on is_known_version). If the * is_known_version is false, the version corresponds to an internal "system * version" for *that* object. An object's system version has no meaning to * the application other than the fact that these system versions are also * monotonically increasing and the client must ack such an invalidation with * this system version (and an ack for a later system version acknowledges an * invalidation for all earlier system version for *that* object. * </pre> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000004); version_ = 0L; return this; } // optional bool is_trickle_restart = 6 [default = true]; private boolean isTrickleRestart_ = true; /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ public boolean hasIsTrickleRestart() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ public boolean getIsTrickleRestart() { return isTrickleRestart_; } /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ public Builder setIsTrickleRestart(boolean value) { bitField0_ |= 0x00000008; isTrickleRestart_ = value; return this; } /** * <code>optional bool is_trickle_restart = 6 [default = true];</code> * * <pre> * Whether the object's Trickle is restarting at this version. * sets this value to true to inform Trickle API clients that it may * have dropped invalidations prior to "version", or, if is_known_version is * false, prior to the current backend version. This field is logically * required and is always set by current code. The default is true because * old Android invalidation clients strip this field when acking * invalidations due to ProtoLite limitations; true is the correct default * because invalidation clients logically ack all current versions and * because old persisted invalidations are all restarted. * </pre> */ public Builder clearIsTrickleRestart() { bitField0_ = (bitField0_ & ~0x00000008); isTrickleRestart_ = true; return this; } // optional bytes payload = 4; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ public boolean hasPayload() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; payload_ = value; return this; } /** * <code>optional bytes payload = 4;</code> * * <pre> * Optional payload associated with this invalidation. * </pre> */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000010); payload_ = getDefaultInstance().getPayload(); return this; } // optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true]; private long bridgeArrivalTimeMsDeprecated_ ; /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated public boolean hasBridgeArrivalTimeMsDeprecated() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated public long getBridgeArrivalTimeMsDeprecated() { return bridgeArrivalTimeMsDeprecated_; } /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated public Builder setBridgeArrivalTimeMsDeprecated(long value) { bitField0_ |= 0x00000020; bridgeArrivalTimeMsDeprecated_ = value; return this; } /** * <code>optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated = true];</code> * * <pre> * DEPRECATED: bridge arrival time is now maintained by * InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and * ClientInvalidation containers. * </pre> */ @java.lang.Deprecated public Builder clearBridgeArrivalTimeMsDeprecated() { bitField0_ = (bitField0_ & ~0x00000020); bridgeArrivalTimeMsDeprecated_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InvalidationP) } static { defaultInstance = new InvalidationP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InvalidationP) } public interface RegistrationPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ boolean hasObjectId(); /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId(); // optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ boolean hasOpType(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType getOpType(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationP} * * <pre> * Specifies the intention to change a registration on a specific object. To * update registrations, a client sends a message containing repeated * RegistrationP messages. * </pre> */ public static final class RegistrationP extends com.google.protobuf.GeneratedMessageLite implements RegistrationPOrBuilder { // Use RegistrationP.newBuilder() to construct. private RegistrationP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationP(boolean noInit) {} private static final RegistrationP defaultInstance; public static RegistrationP getDefaultInstance() { return defaultInstance; } public RegistrationP getDefaultInstanceForType() { return defaultInstance; } private RegistrationP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = objectId_.toBuilder(); } objectId_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectId_); objectId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType value = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType.valueOf(rawValue); if (value != null) { bitField0_ |= 0x00000002; opType_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationP> PARSER = new com.google.protobuf.AbstractParser<RegistrationP>() { public RegistrationP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationP> getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.ipc.invalidation.RegistrationP.OpType} */ public enum OpType implements com.google.protobuf.Internal.EnumLite { /** * <code>REGISTER = 1;</code> */ REGISTER(0, 1), /** * <code>UNREGISTER = 2;</code> */ UNREGISTER(1, 2), ; /** * <code>REGISTER = 1;</code> */ public static final int REGISTER_VALUE = 1; /** * <code>UNREGISTER = 2;</code> */ public static final int UNREGISTER_VALUE = 2; public final int getNumber() { return value; } public static OpType valueOf(int value) { switch (value) { case 1: return REGISTER; case 2: return UNREGISTER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<OpType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<OpType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<OpType>() { public OpType findValueByNumber(int number) { return OpType.valueOf(number); } }; private final int value; private OpType(int index, int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.ipc.invalidation.RegistrationP.OpType) } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1; public static final int OBJECT_ID_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP objectId_; /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public boolean hasObjectId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() { return objectId_; } // optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2; public static final int OP_TYPE_FIELD_NUMBER = 2; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType opType_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ public boolean hasOpType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType getOpType() { return opType_; } private void initFields() { objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); opType_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType.REGISTER; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, objectId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, opType_.getNumber()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, objectId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, opType_.getNumber()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationP} * * <pre> * Specifies the intention to change a registration on a specific object. To * update registrations, a client sends a message containing repeated * RegistrationP messages. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); opType_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType.REGISTER; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.objectId_ = objectId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.opType_ = opType_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance()) return this; if (other.hasObjectId()) { mergeObjectId(other.getObjectId()); } if (other.hasOpType()) { setOpType(other.getOpType()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public boolean hasObjectId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() { return objectId_; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public Builder setObjectId(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (value == null) { throw new NullPointerException(); } objectId_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public Builder setObjectId( com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) { objectId_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public Builder mergeObjectId(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (((bitField0_ & 0x00000001) == 0x00000001) && objectId_ != com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance()) { objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.newBuilder(objectId_).mergeFrom(value).buildPartial(); } else { objectId_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code> * * <pre> * The object for which to (un)register. * </pre> */ public Builder clearObjectId() { objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType opType_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType.REGISTER; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ public boolean hasOpType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType getOpType() { return opType_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ public Builder setOpType(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; opType_ = value; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP.OpType op_type = 2;</code> * * <pre> * Whether to register or unregister. * </pre> */ public Builder clearOpType() { bitField0_ = (bitField0_ & ~0x00000002); opType_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.OpType.REGISTER; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationP) } static { defaultInstance = new RegistrationP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationP) } public interface RegistrationSummaryOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 num_registrations = 1; /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ boolean hasNumRegistrations(); /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ int getNumRegistrations(); // optional bytes registration_digest = 2; /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ boolean hasRegistrationDigest(); /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ com.google.protobuf.ByteString getRegistrationDigest(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSummary} * * <pre> * Summary of the registration state associated with a particular client, sent * in the header of client<->server messages. This summary has two different * (but related) meanings depending on where it is used: * * 1) In a client->server message, it describes the DESIRED client state. * 2) In a server->client message, it describes the ACTUAL state at the server * for that client. * </pre> */ public static final class RegistrationSummary extends com.google.protobuf.GeneratedMessageLite implements RegistrationSummaryOrBuilder { // Use RegistrationSummary.newBuilder() to construct. private RegistrationSummary(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationSummary(boolean noInit) {} private static final RegistrationSummary defaultInstance; public static RegistrationSummary getDefaultInstance() { return defaultInstance; } public RegistrationSummary getDefaultInstanceForType() { return defaultInstance; } private RegistrationSummary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; numRegistrations_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; registrationDigest_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationSummary> PARSER = new com.google.protobuf.AbstractParser<RegistrationSummary>() { public RegistrationSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationSummary(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationSummary> getParserForType() { return PARSER; } private int bitField0_; // optional int32 num_registrations = 1; public static final int NUM_REGISTRATIONS_FIELD_NUMBER = 1; private int numRegistrations_; /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ public boolean hasNumRegistrations() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ public int getNumRegistrations() { return numRegistrations_; } // optional bytes registration_digest = 2; public static final int REGISTRATION_DIGEST_FIELD_NUMBER = 2; private com.google.protobuf.ByteString registrationDigest_; /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ public boolean hasRegistrationDigest() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ public com.google.protobuf.ByteString getRegistrationDigest() { return registrationDigest_; } private void initFields() { numRegistrations_ = 0; registrationDigest_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, numRegistrations_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, registrationDigest_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, numRegistrations_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, registrationDigest_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSummary} * * <pre> * Summary of the registration state associated with a particular client, sent * in the header of client<->server messages. This summary has two different * (but related) meanings depending on where it is used: * * 1) In a client->server message, it describes the DESIRED client state. * 2) In a server->client message, it describes the ACTUAL state at the server * for that client. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummaryOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); numRegistrations_ = 0; bitField0_ = (bitField0_ & ~0x00000001); registrationDigest_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.numRegistrations_ = numRegistrations_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.registrationDigest_ = registrationDigest_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance()) return this; if (other.hasNumRegistrations()) { setNumRegistrations(other.getNumRegistrations()); } if (other.hasRegistrationDigest()) { setRegistrationDigest(other.getRegistrationDigest()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 num_registrations = 1; private int numRegistrations_ ; /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ public boolean hasNumRegistrations() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ public int getNumRegistrations() { return numRegistrations_; } /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ public Builder setNumRegistrations(int value) { bitField0_ |= 0x00000001; numRegistrations_ = value; return this; } /** * <code>optional int32 num_registrations = 1;</code> * * <pre> * Number of registrations desired (client) or held (server). * </pre> */ public Builder clearNumRegistrations() { bitField0_ = (bitField0_ & ~0x00000001); numRegistrations_ = 0; return this; } // optional bytes registration_digest = 2; private com.google.protobuf.ByteString registrationDigest_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ public boolean hasRegistrationDigest() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ public com.google.protobuf.ByteString getRegistrationDigest() { return registrationDigest_; } /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ public Builder setRegistrationDigest(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; registrationDigest_ = value; return this; } /** * <code>optional bytes registration_digest = 2;</code> * * <pre> * Top-level digest over the registrations. * * The digest for an object id is computed as following (the digest chosen for * this method is SHA-1): * * digest = new Digest(); * digest.update(Little endian encoding of object source type) * digest.update(object name) * digest.getDigestSummary() * * For a set of objects, digest is computing by sorting lexicographically * based on their digests and then performing the update process given above * (i.e., calling digest.update on each object's digest and then calling * getDigestSummary at the end). * </pre> */ public Builder clearRegistrationDigest() { bitField0_ = (bitField0_ & ~0x00000002); registrationDigest_ = getDefaultInstance().getRegistrationDigest(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationSummary) } static { defaultInstance = new RegistrationSummary(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationSummary) } public interface ClientHeaderOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ boolean hasProtocolVersion(); /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getProtocolVersion(); // optional bytes client_token = 2; /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ boolean hasClientToken(); /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ com.google.protobuf.ByteString getClientToken(); // optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ boolean hasRegistrationSummary(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getRegistrationSummary(); // optional int64 client_time_ms = 4; /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ boolean hasClientTimeMs(); /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ long getClientTimeMs(); // optional int64 max_known_server_time_ms = 5; /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ boolean hasMaxKnownServerTimeMs(); /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ long getMaxKnownServerTimeMs(); // optional string message_id = 6; /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ boolean hasMessageId(); /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ java.lang.String getMessageId(); /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ com.google.protobuf.ByteString getMessageIdBytes(); // optional int32 client_type = 7; /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ boolean hasClientType(); /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ int getClientType(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientHeader} * * <pre> * Header included on every client -> server message. * </pre> */ public static final class ClientHeader extends com.google.protobuf.GeneratedMessageLite implements ClientHeaderOrBuilder { // Use ClientHeader.newBuilder() to construct. private ClientHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ClientHeader(boolean noInit) {} private static final ClientHeader defaultInstance; public static ClientHeader getDefaultInstance() { return defaultInstance; } public ClientHeader getDefaultInstanceForType() { return defaultInstance; } private ClientHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = protocolVersion_.toBuilder(); } protocolVersion_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(protocolVersion_); protocolVersion_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; clientToken_ = input.readBytes(); break; } case 26: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = registrationSummary_.toBuilder(); } registrationSummary_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registrationSummary_); registrationSummary_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; clientTimeMs_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; maxKnownServerTimeMs_ = input.readInt64(); break; } case 50: { bitField0_ |= 0x00000020; messageId_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; clientType_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ClientHeader> PARSER = new com.google.protobuf.AbstractParser<ClientHeader>() { public ClientHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientHeader(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ClientHeader> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1; public static final int PROTOCOL_VERSION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion protocolVersion_; /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public boolean hasProtocolVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getProtocolVersion() { return protocolVersion_; } // optional bytes client_token = 2; public static final int CLIENT_TOKEN_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientToken_; /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ public boolean hasClientToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ public com.google.protobuf.ByteString getClientToken() { return clientToken_; } // optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3; public static final int REGISTRATION_SUMMARY_FIELD_NUMBER = 3; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary registrationSummary_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public boolean hasRegistrationSummary() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getRegistrationSummary() { return registrationSummary_; } // optional int64 client_time_ms = 4; public static final int CLIENT_TIME_MS_FIELD_NUMBER = 4; private long clientTimeMs_; /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ public boolean hasClientTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ public long getClientTimeMs() { return clientTimeMs_; } // optional int64 max_known_server_time_ms = 5; public static final int MAX_KNOWN_SERVER_TIME_MS_FIELD_NUMBER = 5; private long maxKnownServerTimeMs_; /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ public boolean hasMaxKnownServerTimeMs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ public long getMaxKnownServerTimeMs() { return maxKnownServerTimeMs_; } // optional string message_id = 6; public static final int MESSAGE_ID_FIELD_NUMBER = 6; private java.lang.Object messageId_; /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public boolean hasMessageId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { messageId_ = s; } return s; } } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 client_type = 7; public static final int CLIENT_TYPE_FIELD_NUMBER = 7; private int clientType_; /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ public boolean hasClientType() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ public int getClientType() { return clientType_; } private void initFields() { protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); clientToken_ = com.google.protobuf.ByteString.EMPTY; registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); clientTimeMs_ = 0L; maxKnownServerTimeMs_ = 0L; messageId_ = ""; clientType_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, protocolVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, clientToken_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, registrationSummary_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, clientTimeMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, maxKnownServerTimeMs_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getMessageIdBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, clientType_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, protocolVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, clientToken_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, registrationSummary_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, clientTimeMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, maxKnownServerTimeMs_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getMessageIdBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, clientType_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientHeader} * * <pre> * Header included on every client -> server message. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ClientHeaderOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); clientToken_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); clientTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); maxKnownServerTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); messageId_ = ""; bitField0_ = (bitField0_ & ~0x00000020); clientType_ = 0; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader build() { com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader result = new com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.protocolVersion_ = protocolVersion_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.clientToken_ = clientToken_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.registrationSummary_ = registrationSummary_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.clientTimeMs_ = clientTimeMs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.maxKnownServerTimeMs_ = maxKnownServerTimeMs_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.messageId_ = messageId_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.clientType_ = clientType_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance()) return this; if (other.hasProtocolVersion()) { mergeProtocolVersion(other.getProtocolVersion()); } if (other.hasClientToken()) { setClientToken(other.getClientToken()); } if (other.hasRegistrationSummary()) { mergeRegistrationSummary(other.getRegistrationSummary()); } if (other.hasClientTimeMs()) { setClientTimeMs(other.getClientTimeMs()); } if (other.hasMaxKnownServerTimeMs()) { setMaxKnownServerTimeMs(other.getMaxKnownServerTimeMs()); } if (other.hasMessageId()) { bitField0_ |= 0x00000020; messageId_ = other.messageId_; } if (other.hasClientType()) { setClientType(other.getClientType()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public boolean hasProtocolVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getProtocolVersion() { return protocolVersion_; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder setProtocolVersion(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion value) { if (value == null) { throw new NullPointerException(); } protocolVersion_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder setProtocolVersion( com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.Builder builderForValue) { protocolVersion_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder mergeProtocolVersion(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion value) { if (((bitField0_ & 0x00000001) == 0x00000001) && protocolVersion_ != com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance()) { protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.newBuilder(protocolVersion_).mergeFrom(value).buildPartial(); } else { protocolVersion_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder clearProtocolVersion() { protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional bytes client_token = 2; private com.google.protobuf.ByteString clientToken_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ public boolean hasClientToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ public com.google.protobuf.ByteString getClientToken() { return clientToken_; } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ public Builder setClientToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientToken_ = value; return this; } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Token identifying the client. Tokens are issued by the server in response * to client requests (see InitializeMessage, below). In order to perform any * operation other than initialization, the client must supply a token. When * performing initialization, this field must be left unset. * </pre> */ public Builder clearClientToken() { bitField0_ = (bitField0_ & ~0x00000002); clientToken_ = getDefaultInstance().getClientToken(); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public boolean hasRegistrationSummary() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getRegistrationSummary() { return registrationSummary_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public Builder setRegistrationSummary(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary value) { if (value == null) { throw new NullPointerException(); } registrationSummary_ = value; bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public Builder setRegistrationSummary( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.Builder builderForValue) { registrationSummary_ = builderForValue.build(); bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public Builder mergeRegistrationSummary(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary value) { if (((bitField0_ & 0x00000004) == 0x00000004) && registrationSummary_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance()) { registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.newBuilder(registrationSummary_).mergeFrom(value).buildPartial(); } else { registrationSummary_ = value; } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Optional summary of the client's desired registration state. The client is * encouraged to provide this summary in every message once a "steady" state * of registrations/unregistrations has been reached. For example, it may not * want to send this summary during initialization (but after the initial set * has been registered, it should try to send it). * </pre> */ public Builder clearRegistrationSummary() { registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); return this; } // optional int64 client_time_ms = 4; private long clientTimeMs_ ; /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ public boolean hasClientTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ public long getClientTimeMs() { return clientTimeMs_; } /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ public Builder setClientTimeMs(long value) { bitField0_ |= 0x00000008; clientTimeMs_ = value; return this; } /** * <code>optional int64 client_time_ms = 4;</code> * * <pre> * Timestamp from the client's clock, expressed as ms since 00:00:00 UTC, 1 * January 1970 (i.e., the UNIX epoch) - for debugging/monitoring purposes. * </pre> */ public Builder clearClientTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); clientTimeMs_ = 0L; return this; } // optional int64 max_known_server_time_ms = 5; private long maxKnownServerTimeMs_ ; /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ public boolean hasMaxKnownServerTimeMs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ public long getMaxKnownServerTimeMs() { return maxKnownServerTimeMs_; } /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ public Builder setMaxKnownServerTimeMs(long value) { bitField0_ |= 0x00000010; maxKnownServerTimeMs_ = value; return this; } /** * <code>optional int64 max_known_server_time_ms = 5;</code> * * <pre> * Highest server timestamp observed by the client (the server includes its * time on every message to the client). Note: this time is NOT necessarily * expressed as relative to the UNIX epoch - for debugging/monitoring * purposes. * </pre> */ public Builder clearMaxKnownServerTimeMs() { bitField0_ = (bitField0_ & ~0x00000010); maxKnownServerTimeMs_ = 0L; return this; } // optional string message_id = 6; private java.lang.Object messageId_ = ""; /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public boolean hasMessageId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); messageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public Builder setMessageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; messageId_ = value; return this; } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public Builder clearMessageId() { bitField0_ = (bitField0_ & ~0x00000020); messageId_ = getDefaultInstance().getMessageId(); return this; } /** * <code>optional string message_id = 6;</code> * * <pre> * Message id to identify the message -for debugging/monitoring purposes. * </pre> */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; messageId_ = value; return this; } // optional int32 client_type = 7; private int clientType_ ; /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ public boolean hasClientType() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ public int getClientType() { return clientType_; } /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ public Builder setClientType(int value) { bitField0_ |= 0x00000040; clientType_ = value; return this; } /** * <code>optional int32 client_type = 7;</code> * * <pre> * Client typecode (as in the InitializeMessage, below). This field may or * may not be set. * </pre> */ public Builder clearClientType() { bitField0_ = (bitField0_ & ~0x00000040); clientType_ = 0; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientHeader) } static { defaultInstance = new ClientHeader(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientHeader) } public interface ClientToServerMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ClientHeader header = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ boolean hasHeader(); /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader getHeader(); // optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2; /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ boolean hasInitializeMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage getInitializeMessage(); // optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ boolean hasRegistrationMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage getRegistrationMessage(); // optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ boolean hasRegistrationSyncMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage getRegistrationSyncMessage(); // optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5; /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ boolean hasInvalidationAckMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getInvalidationAckMessage(); // optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6; /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ boolean hasInfoMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage getInfoMessage(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientToServerMessage} * * <pre> * A message from the client to the server. * </pre> */ public static final class ClientToServerMessage extends com.google.protobuf.GeneratedMessageLite implements ClientToServerMessageOrBuilder { // Use ClientToServerMessage.newBuilder() to construct. private ClientToServerMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ClientToServerMessage(boolean noInit) {} private static final ClientToServerMessage defaultInstance; public static ClientToServerMessage getDefaultInstance() { return defaultInstance; } public ClientToServerMessage getDefaultInstanceForType() { return defaultInstance; } private ClientToServerMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = initializeMessage_.toBuilder(); } initializeMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(initializeMessage_); initializeMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = registrationMessage_.toBuilder(); } registrationMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registrationMessage_); registrationMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = registrationSyncMessage_.toBuilder(); } registrationSyncMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registrationSyncMessage_); registrationSyncMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = invalidationAckMessage_.toBuilder(); } invalidationAckMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(invalidationAckMessage_); invalidationAckMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = infoMessage_.toBuilder(); } infoMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(infoMessage_); infoMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ClientToServerMessage> PARSER = new com.google.protobuf.AbstractParser<ClientToServerMessage>() { public ClientToServerMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientToServerMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ClientToServerMessage> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ClientHeader header = 1; public static final int HEADER_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader header_; /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader getHeader() { return header_; } // optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2; public static final int INITIALIZE_MESSAGE_FIELD_NUMBER = 2; private com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage initializeMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public boolean hasInitializeMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage getInitializeMessage() { return initializeMessage_; } // optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3; public static final int REGISTRATION_MESSAGE_FIELD_NUMBER = 3; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage registrationMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public boolean hasRegistrationMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage getRegistrationMessage() { return registrationMessage_; } // optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4; public static final int REGISTRATION_SYNC_MESSAGE_FIELD_NUMBER = 4; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage registrationSyncMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public boolean hasRegistrationSyncMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage getRegistrationSyncMessage() { return registrationSyncMessage_; } // optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5; public static final int INVALIDATION_ACK_MESSAGE_FIELD_NUMBER = 5; private com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage invalidationAckMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public boolean hasInvalidationAckMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getInvalidationAckMessage() { return invalidationAckMessage_; } // optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6; public static final int INFO_MESSAGE_FIELD_NUMBER = 6; private com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage infoMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public boolean hasInfoMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage getInfoMessage() { return infoMessage_; } private void initFields() { header_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance(); initializeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance(); registrationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance(); registrationSyncMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance(); invalidationAckMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); infoMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, header_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, initializeMessage_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, registrationMessage_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, registrationSyncMessage_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, invalidationAckMessage_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, infoMessage_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, header_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, initializeMessage_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, registrationMessage_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, registrationSyncMessage_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, invalidationAckMessage_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, infoMessage_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientToServerMessage} * * <pre> * A message from the client to the server. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); header_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); initializeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000002); registrationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); registrationSyncMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000008); invalidationAckMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000010); infoMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.header_ = header_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.initializeMessage_ = initializeMessage_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.registrationMessage_ = registrationMessage_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.registrationSyncMessage_ = registrationSyncMessage_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.invalidationAckMessage_ = invalidationAckMessage_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.infoMessage_ = infoMessage_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasInitializeMessage()) { mergeInitializeMessage(other.getInitializeMessage()); } if (other.hasRegistrationMessage()) { mergeRegistrationMessage(other.getRegistrationMessage()); } if (other.hasRegistrationSyncMessage()) { mergeRegistrationSyncMessage(other.getRegistrationSyncMessage()); } if (other.hasInvalidationAckMessage()) { mergeInvalidationAckMessage(other.getInvalidationAckMessage()); } if (other.hasInfoMessage()) { mergeInfoMessage(other.getInfoMessage()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ClientToServerMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ClientHeader header = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader header_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader getHeader() { return header_; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public Builder setHeader(com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader value) { if (value == null) { throw new NullPointerException(); } header_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public Builder setHeader( com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.Builder builderForValue) { header_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public Builder mergeHeader(com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader value) { if (((bitField0_ & 0x00000001) == 0x00000001) && header_ != com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance()) { header_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientHeader header = 1;</code> * * <pre> * Header. * </pre> */ public Builder clearHeader() { header_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientHeader.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2; private com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage initializeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public boolean hasInitializeMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage getInitializeMessage() { return initializeMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public Builder setInitializeMessage(com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage value) { if (value == null) { throw new NullPointerException(); } initializeMessage_ = value; bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public Builder setInitializeMessage( com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.Builder builderForValue) { initializeMessage_ = builderForValue.build(); bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public Builder mergeInitializeMessage(com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage value) { if (((bitField0_ & 0x00000002) == 0x00000002) && initializeMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance()) { initializeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.newBuilder(initializeMessage_).mergeFrom(value).buildPartial(); } else { initializeMessage_ = value; } bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage initialize_message = 2;</code> * * <pre> * Optional initialization message, used to obtain a new token. Note that, if * present, this message is always processed before the messages below, and * those messages will be interpreted relative to the new token assigned here. * </pre> */ public Builder clearInitializeMessage() { initializeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000002); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage registrationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public boolean hasRegistrationMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage getRegistrationMessage() { return registrationMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public Builder setRegistrationMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage value) { if (value == null) { throw new NullPointerException(); } registrationMessage_ = value; bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public Builder setRegistrationMessage( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.Builder builderForValue) { registrationMessage_ = builderForValue.build(); bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public Builder mergeRegistrationMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage value) { if (((bitField0_ & 0x00000004) == 0x00000004) && registrationMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance()) { registrationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.newBuilder(registrationMessage_).mergeFrom(value).buildPartial(); } else { registrationMessage_ = value; } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationMessage registration_message = 3;</code> * * <pre> * Optional request to perform registrations. * </pre> */ public Builder clearRegistrationMessage() { registrationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage registrationSyncMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public boolean hasRegistrationSyncMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage getRegistrationSyncMessage() { return registrationSyncMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public Builder setRegistrationSyncMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage value) { if (value == null) { throw new NullPointerException(); } registrationSyncMessage_ = value; bitField0_ |= 0x00000008; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public Builder setRegistrationSyncMessage( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.Builder builderForValue) { registrationSyncMessage_ = builderForValue.build(); bitField0_ |= 0x00000008; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public Builder mergeRegistrationSyncMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage value) { if (((bitField0_ & 0x00000008) == 0x00000008) && registrationSyncMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance()) { registrationSyncMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.newBuilder(registrationSyncMessage_).mergeFrom(value).buildPartial(); } else { registrationSyncMessage_ = value; } bitField0_ |= 0x00000008; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncMessage registration_sync_message = 4;</code> * * <pre> * Optional data for registration sync. * </pre> */ public Builder clearRegistrationSyncMessage() { registrationSyncMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000008); return this; } // optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5; private com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage invalidationAckMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public boolean hasInvalidationAckMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getInvalidationAckMessage() { return invalidationAckMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public Builder setInvalidationAckMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage value) { if (value == null) { throw new NullPointerException(); } invalidationAckMessage_ = value; bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public Builder setInvalidationAckMessage( com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.Builder builderForValue) { invalidationAckMessage_ = builderForValue.build(); bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public Builder mergeInvalidationAckMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage value) { if (((bitField0_ & 0x00000010) == 0x00000010) && invalidationAckMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance()) { invalidationAckMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.newBuilder(invalidationAckMessage_).mergeFrom(value).buildPartial(); } else { invalidationAckMessage_ = value; } bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_ack_message = 5;</code> * * <pre> * Optional invalidation acks. * </pre> */ public Builder clearInvalidationAckMessage() { invalidationAckMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000010); return this; } // optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6; private com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage infoMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public boolean hasInfoMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage getInfoMessage() { return infoMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public Builder setInfoMessage(com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage value) { if (value == null) { throw new NullPointerException(); } infoMessage_ = value; bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public Builder setInfoMessage( com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.Builder builderForValue) { infoMessage_ = builderForValue.build(); bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public Builder mergeInfoMessage(com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage value) { if (((bitField0_ & 0x00000020) == 0x00000020) && infoMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance()) { infoMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.newBuilder(infoMessage_).mergeFrom(value).buildPartial(); } else { infoMessage_ = value; } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoMessage info_message = 6;</code> * * <pre> * Optional information about the client. * </pre> */ public Builder clearInfoMessage() { infoMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000020); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientToServerMessage) } static { defaultInstance = new ClientToServerMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientToServerMessage) } public interface InitializeMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 client_type = 1; /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ boolean hasClientType(); /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ int getClientType(); // optional bytes nonce = 2; /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ boolean hasNonce(); /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ com.google.protobuf.ByteString getNonce(); // optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3; /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ boolean hasApplicationClientId(); /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP getApplicationClientId(); // optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4; /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ boolean hasDigestSerializationType(); /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType getDigestSerializationType(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InitializeMessage} * * <pre> * Used to obtain a new token when the client does not have one. * </pre> */ public static final class InitializeMessage extends com.google.protobuf.GeneratedMessageLite implements InitializeMessageOrBuilder { // Use InitializeMessage.newBuilder() to construct. private InitializeMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private InitializeMessage(boolean noInit) {} private static final InitializeMessage defaultInstance; public static InitializeMessage getDefaultInstance() { return defaultInstance; } public InitializeMessage getDefaultInstanceForType() { return defaultInstance; } private InitializeMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; clientType_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; nonce_ = input.readBytes(); break; } case 26: { com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = applicationClientId_.toBuilder(); } applicationClientId_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(applicationClientId_); applicationClientId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { int rawValue = input.readEnum(); com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType value = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType.valueOf(rawValue); if (value != null) { bitField0_ |= 0x00000008; digestSerializationType_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<InitializeMessage> PARSER = new com.google.protobuf.AbstractParser<InitializeMessage>() { public InitializeMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InitializeMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InitializeMessage> getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType} * * <pre> * Defines how clients serialize object ids when computing digests for * registrations. * </pre> */ public enum DigestSerializationType implements com.google.protobuf.Internal.EnumLite { /** * <code>BYTE_BASED = 1;</code> * * <pre> * The digest for an object id is computed by serializing the object id into * bytes. * </pre> */ BYTE_BASED(0, 1), /** * <code>NUMBER_BASED = 2;</code> * * <pre> * The digest for an object id is computed by serializing the object id into * an array of numbers. TODO: Determine and specify this * more precisely. * </pre> */ NUMBER_BASED(1, 2), ; /** * <code>BYTE_BASED = 1;</code> * * <pre> * The digest for an object id is computed by serializing the object id into * bytes. * </pre> */ public static final int BYTE_BASED_VALUE = 1; /** * <code>NUMBER_BASED = 2;</code> * * <pre> * The digest for an object id is computed by serializing the object id into * an array of numbers. TODO: Determine and specify this * more precisely. * </pre> */ public static final int NUMBER_BASED_VALUE = 2; public final int getNumber() { return value; } public static DigestSerializationType valueOf(int value) { switch (value) { case 1: return BYTE_BASED; case 2: return NUMBER_BASED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<DigestSerializationType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<DigestSerializationType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<DigestSerializationType>() { public DigestSerializationType findValueByNumber(int number) { return DigestSerializationType.valueOf(number); } }; private final int value; private DigestSerializationType(int index, int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType) } private int bitField0_; // optional int32 client_type = 1; public static final int CLIENT_TYPE_FIELD_NUMBER = 1; private int clientType_; /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ public boolean hasClientType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ public int getClientType() { return clientType_; } // optional bytes nonce = 2; public static final int NONCE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nonce_; /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ public boolean hasNonce() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ public com.google.protobuf.ByteString getNonce() { return nonce_; } // optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3; public static final int APPLICATION_CLIENT_ID_FIELD_NUMBER = 3; private com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP applicationClientId_; /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public boolean hasApplicationClientId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP getApplicationClientId() { return applicationClientId_; } // optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4; public static final int DIGEST_SERIALIZATION_TYPE_FIELD_NUMBER = 4; private com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType digestSerializationType_; /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ public boolean hasDigestSerializationType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType getDigestSerializationType() { return digestSerializationType_; } private void initFields() { clientType_ = 0; nonce_ = com.google.protobuf.ByteString.EMPTY; applicationClientId_ = com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance(); digestSerializationType_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType.BYTE_BASED; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, clientType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, nonce_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, applicationClientId_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(4, digestSerializationType_.getNumber()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, clientType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nonce_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, applicationClientId_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, digestSerializationType_.getNumber()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InitializeMessage} * * <pre> * Used to obtain a new token when the client does not have one. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clientType_ = 0; bitField0_ = (bitField0_ & ~0x00000001); nonce_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); applicationClientId_ = com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); digestSerializationType_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType.BYTE_BASED; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientType_ = clientType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nonce_ = nonce_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.applicationClientId_ = applicationClientId_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.digestSerializationType_ = digestSerializationType_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.getDefaultInstance()) return this; if (other.hasClientType()) { setClientType(other.getClientType()); } if (other.hasNonce()) { setNonce(other.getNonce()); } if (other.hasApplicationClientId()) { mergeApplicationClientId(other.getApplicationClientId()); } if (other.hasDigestSerializationType()) { setDigestSerializationType(other.getDigestSerializationType()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 client_type = 1; private int clientType_ ; /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ public boolean hasClientType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ public int getClientType() { return clientType_; } /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ public Builder setClientType(int value) { bitField0_ |= 0x00000001; clientType_ = value; return this; } /** * <code>optional int32 client_type = 1;</code> * * <pre> * Type of the client. This value is assigned by the backend notification * system (out-of-band) and the client must use the correct value. * </pre> */ public Builder clearClientType() { bitField0_ = (bitField0_ & ~0x00000001); clientType_ = 0; return this; } // optional bytes nonce = 2; private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ public boolean hasNonce() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nonce_ = value; return this; } /** * <code>optional bytes nonce = 2;</code> * * <pre> * Nonce. This value will be echoed as the existing token in the header of * the server message that supplies the new token (the new token itself will * be provided in a TokenControlMessage; see below). * </pre> */ public Builder clearNonce() { bitField0_ = (bitField0_ & ~0x00000002); nonce_ = getDefaultInstance().getNonce(); return this; } // optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3; private com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP applicationClientId_ = com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public boolean hasApplicationClientId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP getApplicationClientId() { return applicationClientId_; } /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public Builder setApplicationClientId(com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP value) { if (value == null) { throw new NullPointerException(); } applicationClientId_ = value; bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public Builder setApplicationClientId( com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.Builder builderForValue) { applicationClientId_ = builderForValue.build(); bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public Builder mergeApplicationClientId(com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP value) { if (((bitField0_ & 0x00000004) == 0x00000004) && applicationClientId_ != com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance()) { applicationClientId_ = com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.newBuilder(applicationClientId_).mergeFrom(value).buildPartial(); } else { applicationClientId_ = value; } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ApplicationClientIdP application_client_id = 3;</code> * * <pre> * Id of the client as assigned by the application. * </pre> */ public Builder clearApplicationClientId() { applicationClientId_ = com.google.protos.ipc.invalidation.ClientProtocol.ApplicationClientIdP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); return this; } // optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4; private com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType digestSerializationType_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType.BYTE_BASED; /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ public boolean hasDigestSerializationType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType getDigestSerializationType() { return digestSerializationType_; } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ public Builder setDigestSerializationType(com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; digestSerializationType_ = value; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InitializeMessage.DigestSerializationType digest_serialization_type = 4;</code> * * <pre> * Type of registration digest used by this client. * </pre> */ public Builder clearDigestSerializationType() { bitField0_ = (bitField0_ & ~0x00000008); digestSerializationType_ = com.google.protos.ipc.invalidation.ClientProtocol.InitializeMessage.DigestSerializationType.BYTE_BASED; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InitializeMessage) } static { defaultInstance = new InitializeMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InitializeMessage) } public interface RegistrationMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1; /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP> getRegistrationList(); /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getRegistration(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ int getRegistrationCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationMessage} * * <pre> * Registration operations to perform. * </pre> */ public static final class RegistrationMessage extends com.google.protobuf.GeneratedMessageLite implements RegistrationMessageOrBuilder { // Use RegistrationMessage.newBuilder() to construct. private RegistrationMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationMessage(boolean noInit) {} private static final RegistrationMessage defaultInstance; public static RegistrationMessage getDefaultInstance() { return defaultInstance; } public RegistrationMessage getDefaultInstanceForType() { return defaultInstance; } private RegistrationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { registration_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP>(); mutable_bitField0_ |= 0x00000001; } registration_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { registration_ = java.util.Collections.unmodifiableList(registration_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationMessage> PARSER = new com.google.protobuf.AbstractParser<RegistrationMessage>() { public RegistrationMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationMessage> getParserForType() { return PARSER; } // repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1; public static final int REGISTRATION_FIELD_NUMBER = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP> registration_; /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP> getRegistrationList() { return registration_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.RegistrationPOrBuilder> getRegistrationOrBuilderList() { return registration_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public int getRegistrationCount() { return registration_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getRegistration(int index) { return registration_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationPOrBuilder getRegistrationOrBuilder( int index) { return registration_.get(index); } private void initFields() { registration_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < registration_.size(); i++) { output.writeMessage(1, registration_.get(i)); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < registration_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, registration_.get(i)); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationMessage} * * <pre> * Registration operations to perform. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); registration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { registration_ = java.util.Collections.unmodifiableList(registration_); bitField0_ = (bitField0_ & ~0x00000001); } result.registration_ = registration_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage.getDefaultInstance()) return this; if (!other.registration_.isEmpty()) { if (registration_.isEmpty()) { registration_ = other.registration_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegistrationIsMutable(); registration_.addAll(other.registration_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP> registration_ = java.util.Collections.emptyList(); private void ensureRegistrationIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { registration_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP>(registration_); bitField0_ |= 0x00000001; } } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP> getRegistrationList() { return java.util.Collections.unmodifiableList(registration_); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public int getRegistrationCount() { return registration_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getRegistration(int index) { return registration_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder setRegistration( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP value) { if (value == null) { throw new NullPointerException(); } ensureRegistrationIsMutable(); registration_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder setRegistration( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.Builder builderForValue) { ensureRegistrationIsMutable(); registration_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder addRegistration(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP value) { if (value == null) { throw new NullPointerException(); } ensureRegistrationIsMutable(); registration_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder addRegistration( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP value) { if (value == null) { throw new NullPointerException(); } ensureRegistrationIsMutable(); registration_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder addRegistration( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.Builder builderForValue) { ensureRegistrationIsMutable(); registration_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder addRegistration( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.Builder builderForValue) { ensureRegistrationIsMutable(); registration_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder addAllRegistration( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP> values) { ensureRegistrationIsMutable(); super.addAll(values, registration_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder clearRegistration() { registration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder removeRegistration(int index) { ensureRegistrationIsMutable(); registration_.remove(index); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationMessage) } static { defaultInstance = new RegistrationMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationMessage) } public interface RegistrationSyncMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1; /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree> getSubtreeList(); /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree getSubtree(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ int getSubtreeCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSyncMessage} * * <pre> * Message from the client to the server. * </pre> */ public static final class RegistrationSyncMessage extends com.google.protobuf.GeneratedMessageLite implements RegistrationSyncMessageOrBuilder { // Use RegistrationSyncMessage.newBuilder() to construct. private RegistrationSyncMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationSyncMessage(boolean noInit) {} private static final RegistrationSyncMessage defaultInstance; public static RegistrationSyncMessage getDefaultInstance() { return defaultInstance; } public RegistrationSyncMessage getDefaultInstanceForType() { return defaultInstance; } private RegistrationSyncMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subtree_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree>(); mutable_bitField0_ |= 0x00000001; } subtree_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subtree_ = java.util.Collections.unmodifiableList(subtree_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationSyncMessage> PARSER = new com.google.protobuf.AbstractParser<RegistrationSyncMessage>() { public RegistrationSyncMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationSyncMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationSyncMessage> getParserForType() { return PARSER; } // repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1; public static final int SUBTREE_FIELD_NUMBER = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree> subtree_; /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree> getSubtreeList() { return subtree_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtreeOrBuilder> getSubtreeOrBuilderList() { return subtree_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public int getSubtreeCount() { return subtree_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree getSubtree(int index) { return subtree_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtreeOrBuilder getSubtreeOrBuilder( int index) { return subtree_.get(index); } private void initFields() { subtree_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < subtree_.size(); i++) { output.writeMessage(1, subtree_.get(i)); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < subtree_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, subtree_.get(i)); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSyncMessage} * * <pre> * Message from the client to the server. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); subtree_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { subtree_ = java.util.Collections.unmodifiableList(subtree_); bitField0_ = (bitField0_ & ~0x00000001); } result.subtree_ = subtree_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage.getDefaultInstance()) return this; if (!other.subtree_.isEmpty()) { if (subtree_.isEmpty()) { subtree_ = other.subtree_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSubtreeIsMutable(); subtree_.addAll(other.subtree_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree> subtree_ = java.util.Collections.emptyList(); private void ensureSubtreeIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { subtree_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree>(subtree_); bitField0_ |= 0x00000001; } } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree> getSubtreeList() { return java.util.Collections.unmodifiableList(subtree_); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public int getSubtreeCount() { return subtree_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree getSubtree(int index) { return subtree_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder setSubtree( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree value) { if (value == null) { throw new NullPointerException(); } ensureSubtreeIsMutable(); subtree_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder setSubtree( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.Builder builderForValue) { ensureSubtreeIsMutable(); subtree_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder addSubtree(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree value) { if (value == null) { throw new NullPointerException(); } ensureSubtreeIsMutable(); subtree_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder addSubtree( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree value) { if (value == null) { throw new NullPointerException(); } ensureSubtreeIsMutable(); subtree_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder addSubtree( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.Builder builderForValue) { ensureSubtreeIsMutable(); subtree_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder addSubtree( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.Builder builderForValue) { ensureSubtreeIsMutable(); subtree_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder addAllSubtree( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree> values) { ensureSubtreeIsMutable(); super.addAll(values, subtree_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder clearSubtree() { subtree_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationSubtree subtree = 1;</code> * * <pre> * Objects for which the client is registered. * </pre> */ public Builder removeSubtree(int index) { ensureSubtreeIsMutable(); subtree_.remove(index); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationSyncMessage) } static { defaultInstance = new RegistrationSyncMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationSyncMessage) } public interface RegistrationSubtreeOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1; /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegisteredObjectList(); /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegisteredObject(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ int getRegisteredObjectCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSubtree} * * <pre> * Message sent from the client to the server about registered objects * (typically) in response to a registration sync request. * * The name of the message implies a "tree" for future expansion where the * intention is to not necessarily send the complete set of objects but to * partition the object space into multiple ranges and then exchange Merkle-tree * like data structures to determine which ranges are out-of-sync. * </pre> */ public static final class RegistrationSubtree extends com.google.protobuf.GeneratedMessageLite implements RegistrationSubtreeOrBuilder { // Use RegistrationSubtree.newBuilder() to construct. private RegistrationSubtree(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationSubtree(boolean noInit) {} private static final RegistrationSubtree defaultInstance; public static RegistrationSubtree getDefaultInstance() { return defaultInstance; } public RegistrationSubtree getDefaultInstanceForType() { return defaultInstance; } private RegistrationSubtree( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { registeredObject_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>(); mutable_bitField0_ |= 0x00000001; } registeredObject_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { registeredObject_ = java.util.Collections.unmodifiableList(registeredObject_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationSubtree> PARSER = new com.google.protobuf.AbstractParser<RegistrationSubtree>() { public RegistrationSubtree parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationSubtree(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationSubtree> getParserForType() { return PARSER; } // repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1; public static final int REGISTERED_OBJECT_FIELD_NUMBER = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> registeredObject_; /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegisteredObjectList() { return registeredObject_; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder> getRegisteredObjectOrBuilderList() { return registeredObject_; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public int getRegisteredObjectCount() { return registeredObject_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegisteredObject(int index) { return registeredObject_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder getRegisteredObjectOrBuilder( int index) { return registeredObject_.get(index); } private void initFields() { registeredObject_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < registeredObject_.size(); i++) { output.writeMessage(1, registeredObject_.get(i)); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < registeredObject_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, registeredObject_.get(i)); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSubtree} * * <pre> * Message sent from the client to the server about registered objects * (typically) in response to a registration sync request. * * The name of the message implies a "tree" for future expansion where the * intention is to not necessarily send the complete set of objects but to * partition the object space into multiple ranges and then exchange Merkle-tree * like data structures to determine which ranges are out-of-sync. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtreeOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); registeredObject_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { registeredObject_ = java.util.Collections.unmodifiableList(registeredObject_); bitField0_ = (bitField0_ & ~0x00000001); } result.registeredObject_ = registeredObject_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree.getDefaultInstance()) return this; if (!other.registeredObject_.isEmpty()) { if (registeredObject_.isEmpty()) { registeredObject_ = other.registeredObject_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegisteredObjectIsMutable(); registeredObject_.addAll(other.registeredObject_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSubtree) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> registeredObject_ = java.util.Collections.emptyList(); private void ensureRegisteredObjectIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { registeredObject_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>(registeredObject_); bitField0_ |= 0x00000001; } } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegisteredObjectList() { return java.util.Collections.unmodifiableList(registeredObject_); } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public int getRegisteredObjectCount() { return registeredObject_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegisteredObject(int index) { return registeredObject_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder setRegisteredObject( int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (value == null) { throw new NullPointerException(); } ensureRegisteredObjectIsMutable(); registeredObject_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder setRegisteredObject( int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) { ensureRegisteredObjectIsMutable(); registeredObject_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder addRegisteredObject(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (value == null) { throw new NullPointerException(); } ensureRegisteredObjectIsMutable(); registeredObject_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder addRegisteredObject( int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) { if (value == null) { throw new NullPointerException(); } ensureRegisteredObjectIsMutable(); registeredObject_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder addRegisteredObject( com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) { ensureRegisteredObjectIsMutable(); registeredObject_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder addRegisteredObject( int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) { ensureRegisteredObjectIsMutable(); registeredObject_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder addAllRegisteredObject( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> values) { ensureRegisteredObjectIsMutable(); super.addAll(values, registeredObject_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder clearRegisteredObject() { registeredObject_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registered_object = 1;</code> * * <pre> * Registered objects * </pre> */ public Builder removeRegisteredObject(int index) { ensureRegisteredObjectIsMutable(); registeredObject_.remove(index); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationSubtree) } static { defaultInstance = new RegistrationSubtree(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationSubtree) } public interface InfoMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ boolean hasClientVersion(); /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion getClientVersion(); // repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2; /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> getConfigParameterList(); /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getConfigParameter(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ int getConfigParameterCount(); // repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3; /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> getPerformanceCounterList(); /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getPerformanceCounter(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ int getPerformanceCounterCount(); // optional bool server_registration_summary_requested = 4; /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ boolean hasServerRegistrationSummaryRequested(); /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ boolean getServerRegistrationSummaryRequested(); // optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5; /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ boolean hasClientConfig(); /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InfoMessage} * * <pre> * A message from the client to the server with info such as performance * counters, client os info, etc. * </pre> */ public static final class InfoMessage extends com.google.protobuf.GeneratedMessageLite implements InfoMessageOrBuilder { // Use InfoMessage.newBuilder() to construct. private InfoMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private InfoMessage(boolean noInit) {} private static final InfoMessage defaultInstance; public static InfoMessage getDefaultInstance() { return defaultInstance; } public InfoMessage getDefaultInstanceForType() { return defaultInstance; } private InfoMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = clientVersion_.toBuilder(); } clientVersion_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientVersion_); clientVersion_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { configParameter_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord>(); mutable_bitField0_ |= 0x00000002; } configParameter_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { performanceCounter_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord>(); mutable_bitField0_ |= 0x00000004; } performanceCounter_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.PARSER, extensionRegistry)); break; } case 32: { bitField0_ |= 0x00000002; serverRegistrationSummaryRequested_ = input.readBool(); break; } case 42: { com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = clientConfig_.toBuilder(); } clientConfig_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientConfig_); clientConfig_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { configParameter_ = java.util.Collections.unmodifiableList(configParameter_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { performanceCounter_ = java.util.Collections.unmodifiableList(performanceCounter_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<InfoMessage> PARSER = new com.google.protobuf.AbstractParser<InfoMessage>() { public InfoMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InfoMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InfoMessage> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1; public static final int CLIENT_VERSION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion clientVersion_; /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public boolean hasClientVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion getClientVersion() { return clientVersion_; } // repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2; public static final int CONFIG_PARAMETER_FIELD_NUMBER = 2; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> configParameter_; /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> getConfigParameterList() { return configParameter_; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecordOrBuilder> getConfigParameterOrBuilderList() { return configParameter_; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public int getConfigParameterCount() { return configParameter_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getConfigParameter(int index) { return configParameter_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecordOrBuilder getConfigParameterOrBuilder( int index) { return configParameter_.get(index); } // repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3; public static final int PERFORMANCE_COUNTER_FIELD_NUMBER = 3; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> performanceCounter_; /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> getPerformanceCounterList() { return performanceCounter_; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecordOrBuilder> getPerformanceCounterOrBuilderList() { return performanceCounter_; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public int getPerformanceCounterCount() { return performanceCounter_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getPerformanceCounter(int index) { return performanceCounter_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecordOrBuilder getPerformanceCounterOrBuilder( int index) { return performanceCounter_.get(index); } // optional bool server_registration_summary_requested = 4; public static final int SERVER_REGISTRATION_SUMMARY_REQUESTED_FIELD_NUMBER = 4; private boolean serverRegistrationSummaryRequested_; /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ public boolean hasServerRegistrationSummaryRequested() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ public boolean getServerRegistrationSummaryRequested() { return serverRegistrationSummaryRequested_; } // optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5; public static final int CLIENT_CONFIG_FIELD_NUMBER = 5; private com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP clientConfig_; /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public boolean hasClientConfig() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig() { return clientConfig_; } private void initFields() { clientVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance(); configParameter_ = java.util.Collections.emptyList(); performanceCounter_ = java.util.Collections.emptyList(); serverRegistrationSummaryRequested_ = false; clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, clientVersion_); } for (int i = 0; i < configParameter_.size(); i++) { output.writeMessage(2, configParameter_.get(i)); } for (int i = 0; i < performanceCounter_.size(); i++) { output.writeMessage(3, performanceCounter_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(4, serverRegistrationSummaryRequested_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(5, clientConfig_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, clientVersion_); } for (int i = 0; i < configParameter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, configParameter_.get(i)); } for (int i = 0; i < performanceCounter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, performanceCounter_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, serverRegistrationSummaryRequested_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, clientConfig_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InfoMessage} * * <pre> * A message from the client to the server with info such as performance * counters, client os info, etc. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.InfoMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clientVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); configParameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); performanceCounter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); serverRegistrationSummaryRequested_ = false; bitField0_ = (bitField0_ & ~0x00000008); clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientVersion_ = clientVersion_; if (((bitField0_ & 0x00000002) == 0x00000002)) { configParameter_ = java.util.Collections.unmodifiableList(configParameter_); bitField0_ = (bitField0_ & ~0x00000002); } result.configParameter_ = configParameter_; if (((bitField0_ & 0x00000004) == 0x00000004)) { performanceCounter_ = java.util.Collections.unmodifiableList(performanceCounter_); bitField0_ = (bitField0_ & ~0x00000004); } result.performanceCounter_ = performanceCounter_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.serverRegistrationSummaryRequested_ = serverRegistrationSummaryRequested_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.clientConfig_ = clientConfig_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage.getDefaultInstance()) return this; if (other.hasClientVersion()) { mergeClientVersion(other.getClientVersion()); } if (!other.configParameter_.isEmpty()) { if (configParameter_.isEmpty()) { configParameter_ = other.configParameter_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConfigParameterIsMutable(); configParameter_.addAll(other.configParameter_); } } if (!other.performanceCounter_.isEmpty()) { if (performanceCounter_.isEmpty()) { performanceCounter_ = other.performanceCounter_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePerformanceCounterIsMutable(); performanceCounter_.addAll(other.performanceCounter_); } } if (other.hasServerRegistrationSummaryRequested()) { setServerRegistrationSummaryRequested(other.getServerRegistrationSummaryRequested()); } if (other.hasClientConfig()) { mergeClientConfig(other.getClientConfig()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.InfoMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion clientVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public boolean hasClientVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion getClientVersion() { return clientVersion_; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public Builder setClientVersion(com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion value) { if (value == null) { throw new NullPointerException(); } clientVersion_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public Builder setClientVersion( com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.Builder builderForValue) { clientVersion_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public Builder mergeClientVersion(com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion value) { if (((bitField0_ & 0x00000001) == 0x00000001) && clientVersion_ != com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance()) { clientVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.newBuilder(clientVersion_).mergeFrom(value).buildPartial(); } else { clientVersion_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientVersion client_version = 1;</code> */ public Builder clearClientVersion() { clientVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientVersion.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> configParameter_ = java.util.Collections.emptyList(); private void ensureConfigParameterIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { configParameter_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord>(configParameter_); bitField0_ |= 0x00000002; } } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> getConfigParameterList() { return java.util.Collections.unmodifiableList(configParameter_); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public int getConfigParameterCount() { return configParameter_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getConfigParameter(int index) { return configParameter_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder setConfigParameter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord value) { if (value == null) { throw new NullPointerException(); } ensureConfigParameterIsMutable(); configParameter_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder setConfigParameter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.Builder builderForValue) { ensureConfigParameterIsMutable(); configParameter_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder addConfigParameter(com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord value) { if (value == null) { throw new NullPointerException(); } ensureConfigParameterIsMutable(); configParameter_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder addConfigParameter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord value) { if (value == null) { throw new NullPointerException(); } ensureConfigParameterIsMutable(); configParameter_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder addConfigParameter( com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.Builder builderForValue) { ensureConfigParameterIsMutable(); configParameter_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder addConfigParameter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.Builder builderForValue) { ensureConfigParameterIsMutable(); configParameter_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder addAllConfigParameter( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> values) { ensureConfigParameterIsMutable(); super.addAll(values, configParameter_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder clearConfigParameter() { configParameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord config_parameter = 2;</code> * * <pre> * Config parameters used by the client. * Deprecated and removed - the client_config parameter is what is used now. * </pre> */ public Builder removeConfigParameter(int index) { ensureConfigParameterIsMutable(); configParameter_.remove(index); return this; } // repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> performanceCounter_ = java.util.Collections.emptyList(); private void ensurePerformanceCounterIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { performanceCounter_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord>(performanceCounter_); bitField0_ |= 0x00000004; } } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> getPerformanceCounterList() { return java.util.Collections.unmodifiableList(performanceCounter_); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public int getPerformanceCounterCount() { return performanceCounter_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getPerformanceCounter(int index) { return performanceCounter_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder setPerformanceCounter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord value) { if (value == null) { throw new NullPointerException(); } ensurePerformanceCounterIsMutable(); performanceCounter_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder setPerformanceCounter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.Builder builderForValue) { ensurePerformanceCounterIsMutable(); performanceCounter_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder addPerformanceCounter(com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord value) { if (value == null) { throw new NullPointerException(); } ensurePerformanceCounterIsMutable(); performanceCounter_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder addPerformanceCounter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord value) { if (value == null) { throw new NullPointerException(); } ensurePerformanceCounterIsMutable(); performanceCounter_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder addPerformanceCounter( com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.Builder builderForValue) { ensurePerformanceCounterIsMutable(); performanceCounter_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder addPerformanceCounter( int index, com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.Builder builderForValue) { ensurePerformanceCounterIsMutable(); performanceCounter_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder addAllPerformanceCounter( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord> values) { ensurePerformanceCounterIsMutable(); super.addAll(values, performanceCounter_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder clearPerformanceCounter() { performanceCounter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.PropertyRecord performance_counter = 3;</code> * * <pre> * Performance counters from the client. * </pre> */ public Builder removePerformanceCounter(int index) { ensurePerformanceCounterIsMutable(); performanceCounter_.remove(index); return this; } // optional bool server_registration_summary_requested = 4; private boolean serverRegistrationSummaryRequested_ ; /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ public boolean hasServerRegistrationSummaryRequested() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ public boolean getServerRegistrationSummaryRequested() { return serverRegistrationSummaryRequested_; } /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ public Builder setServerRegistrationSummaryRequested(boolean value) { bitField0_ |= 0x00000008; serverRegistrationSummaryRequested_ = value; return this; } /** * <code>optional bool server_registration_summary_requested = 4;</code> * * <pre> * If 'true', indicates that the client does not know the server's * registration summary, so the server should respond with it even if the * client's summary matches the server's. * </pre> */ public Builder clearServerRegistrationSummaryRequested() { bitField0_ = (bitField0_ & ~0x00000008); serverRegistrationSummaryRequested_ = false; return this; } // optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5; private com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public boolean hasClientConfig() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig() { return clientConfig_; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public Builder setClientConfig(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP value) { if (value == null) { throw new NullPointerException(); } clientConfig_ = value; bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public Builder setClientConfig( com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.Builder builderForValue) { clientConfig_ = builderForValue.build(); bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public Builder mergeClientConfig(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP value) { if (((bitField0_ & 0x00000010) == 0x00000010) && clientConfig_ != com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance()) { clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.newBuilder(clientConfig_).mergeFrom(value).buildPartial(); } else { clientConfig_ = value; } bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 5;</code> * * <pre> * Configuration parameters for this client. * </pre> */ public Builder clearClientConfig() { clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000010); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InfoMessage) } static { defaultInstance = new InfoMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InfoMessage) } public interface PropertyRecordOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional string name = 1; /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ boolean hasName(); /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ java.lang.String getName(); /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ com.google.protobuf.ByteString getNameBytes(); // optional int32 value = 2; /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ boolean hasValue(); /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ int getValue(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.PropertyRecord} * * <pre> * Information about a single config/performance counter value in the * InfoMessage. * </pre> */ public static final class PropertyRecord extends com.google.protobuf.GeneratedMessageLite implements PropertyRecordOrBuilder { // Use PropertyRecord.newBuilder() to construct. private PropertyRecord(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private PropertyRecord(boolean noInit) {} private static final PropertyRecord defaultInstance; public static PropertyRecord getDefaultInstance() { return defaultInstance; } public PropertyRecord getDefaultInstanceForType() { return defaultInstance; } private PropertyRecord( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; value_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<PropertyRecord> PARSER = new com.google.protobuf.AbstractParser<PropertyRecord>() { public PropertyRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PropertyRecord(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PropertyRecord> getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private int value_; /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ public int getValue() { return value_; } private void initFields() { name_ = ""; value_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, value_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, value_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.PropertyRecord} * * <pre> * Information about a single config/performance counter value in the * InfoMessage. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecordOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord build() { com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord result = new com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; } if (other.hasValue()) { setValue(other.getValue()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.PropertyRecord) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string name = 1; private java.lang.Object name_ = ""; /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; return this; } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); return this; } /** * <code>optional string name = 1;</code> * * <pre> * Name of the performance counter/config parameter. * </pre> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; return this; } // optional int32 value = 2; private int value_ ; /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ public int getValue() { return value_; } /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ public Builder setValue(int value) { bitField0_ |= 0x00000002; value_ = value; return this; } /** * <code>optional int32 value = 2;</code> * * <pre> * Value of the performance counter/config parameter. * </pre> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.PropertyRecord) } static { defaultInstance = new PropertyRecord(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.PropertyRecord) } public interface ServerHeaderOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ boolean hasProtocolVersion(); /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getProtocolVersion(); // optional bytes client_token = 2; /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ boolean hasClientToken(); /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ com.google.protobuf.ByteString getClientToken(); // optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ boolean hasRegistrationSummary(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getRegistrationSummary(); // optional int64 server_time_ms = 4; /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ boolean hasServerTimeMs(); /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ long getServerTimeMs(); // optional string message_id = 5; /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ boolean hasMessageId(); /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ java.lang.String getMessageId(); /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ com.google.protobuf.ByteString getMessageIdBytes(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ServerHeader} */ public static final class ServerHeader extends com.google.protobuf.GeneratedMessageLite implements ServerHeaderOrBuilder { // Use ServerHeader.newBuilder() to construct. private ServerHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ServerHeader(boolean noInit) {} private static final ServerHeader defaultInstance; public static ServerHeader getDefaultInstance() { return defaultInstance; } public ServerHeader getDefaultInstanceForType() { return defaultInstance; } private ServerHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = protocolVersion_.toBuilder(); } protocolVersion_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(protocolVersion_); protocolVersion_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; clientToken_ = input.readBytes(); break; } case 26: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = registrationSummary_.toBuilder(); } registrationSummary_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registrationSummary_); registrationSummary_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; serverTimeMs_ = input.readInt64(); break; } case 42: { bitField0_ |= 0x00000010; messageId_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ServerHeader> PARSER = new com.google.protobuf.AbstractParser<ServerHeader>() { public ServerHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServerHeader(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ServerHeader> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1; public static final int PROTOCOL_VERSION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion protocolVersion_; /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public boolean hasProtocolVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getProtocolVersion() { return protocolVersion_; } // optional bytes client_token = 2; public static final int CLIENT_TOKEN_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientToken_; /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ public boolean hasClientToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ public com.google.protobuf.ByteString getClientToken() { return clientToken_; } // optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3; public static final int REGISTRATION_SUMMARY_FIELD_NUMBER = 3; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary registrationSummary_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public boolean hasRegistrationSummary() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getRegistrationSummary() { return registrationSummary_; } // optional int64 server_time_ms = 4; public static final int SERVER_TIME_MS_FIELD_NUMBER = 4; private long serverTimeMs_; /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ public boolean hasServerTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ public long getServerTimeMs() { return serverTimeMs_; } // optional string message_id = 5; public static final int MESSAGE_ID_FIELD_NUMBER = 5; private java.lang.Object messageId_; /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public boolean hasMessageId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { messageId_ = s; } return s; } } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); clientToken_ = com.google.protobuf.ByteString.EMPTY; registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); serverTimeMs_ = 0L; messageId_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, protocolVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, clientToken_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, registrationSummary_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, serverTimeMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getMessageIdBytes()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, protocolVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, clientToken_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, registrationSummary_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, serverTimeMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getMessageIdBytes()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ServerHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ServerHeaderOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); clientToken_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); serverTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); messageId_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader build() { com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader result = new com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.protocolVersion_ = protocolVersion_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.clientToken_ = clientToken_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.registrationSummary_ = registrationSummary_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.serverTimeMs_ = serverTimeMs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.messageId_ = messageId_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance()) return this; if (other.hasProtocolVersion()) { mergeProtocolVersion(other.getProtocolVersion()); } if (other.hasClientToken()) { setClientToken(other.getClientToken()); } if (other.hasRegistrationSummary()) { mergeRegistrationSummary(other.getRegistrationSummary()); } if (other.hasServerTimeMs()) { setServerTimeMs(other.getServerTimeMs()); } if (other.hasMessageId()) { bitField0_ |= 0x00000010; messageId_ = other.messageId_; } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public boolean hasProtocolVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion getProtocolVersion() { return protocolVersion_; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder setProtocolVersion(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion value) { if (value == null) { throw new NullPointerException(); } protocolVersion_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder setProtocolVersion( com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.Builder builderForValue) { protocolVersion_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder mergeProtocolVersion(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion value) { if (((bitField0_ & 0x00000001) == 0x00000001) && protocolVersion_ != com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance()) { protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.newBuilder(protocolVersion_).mergeFrom(value).buildPartial(); } else { protocolVersion_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolVersion protocol_version = 1;</code> * * <pre> * Protocol version of this message. * </pre> */ public Builder clearProtocolVersion() { protocolVersion_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolVersion.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional bytes client_token = 2; private com.google.protobuf.ByteString clientToken_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ public boolean hasClientToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ public com.google.protobuf.ByteString getClientToken() { return clientToken_; } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ public Builder setClientToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientToken_ = value; return this; } /** * <code>optional bytes client_token = 2;</code> * * <pre> * Current token that the server expects the client to have. Clients must * ignore messages where this token field does not match their current token. * During initialization, the client's "token" is the nonce that it generates * and sends in the InitializeMessage. * </pre> */ public Builder clearClientToken() { bitField0_ = (bitField0_ & ~0x00000002); clientToken_ = getDefaultInstance().getClientToken(); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public boolean hasRegistrationSummary() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary getRegistrationSummary() { return registrationSummary_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public Builder setRegistrationSummary(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary value) { if (value == null) { throw new NullPointerException(); } registrationSummary_ = value; bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public Builder setRegistrationSummary( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.Builder builderForValue) { registrationSummary_ = builderForValue.build(); bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public Builder mergeRegistrationSummary(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary value) { if (((bitField0_ & 0x00000004) == 0x00000004) && registrationSummary_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance()) { registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.newBuilder(registrationSummary_).mergeFrom(value).buildPartial(); } else { registrationSummary_ = value; } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSummary registration_summary = 3;</code> * * <pre> * Summary of registration state held by the server for the client. * </pre> */ public Builder clearRegistrationSummary() { registrationSummary_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSummary.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); return this; } // optional int64 server_time_ms = 4; private long serverTimeMs_ ; /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ public boolean hasServerTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ public long getServerTimeMs() { return serverTimeMs_; } /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ public Builder setServerTimeMs(long value) { bitField0_ |= 0x00000008; serverTimeMs_ = value; return this; } /** * <code>optional int64 server_time_ms = 4;</code> * * <pre> * Timestamp from the server's clock. No guarantee on when this time is * relative to. * </pre> */ public Builder clearServerTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); serverTimeMs_ = 0L; return this; } // optional string message_id = 5; private java.lang.Object messageId_ = ""; /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public boolean hasMessageId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); messageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public Builder setMessageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; messageId_ = value; return this; } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public Builder clearMessageId() { bitField0_ = (bitField0_ & ~0x00000010); messageId_ = getDefaultInstance().getMessageId(); return this; } /** * <code>optional string message_id = 5;</code> * * <pre> * Message id to identify the message (for debug purposes only). * </pre> */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; messageId_ = value; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ServerHeader) } static { defaultInstance = new ServerHeader(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ServerHeader) } public interface ServerToClientMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ServerHeader header = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ boolean hasHeader(); /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader getHeader(); // optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2; /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ boolean hasTokenControlMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage getTokenControlMessage(); // optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3; /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ boolean hasInvalidationMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getInvalidationMessage(); // optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ boolean hasRegistrationStatusMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage getRegistrationStatusMessage(); // optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ boolean hasRegistrationSyncRequestMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage getRegistrationSyncRequestMessage(); // optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6; /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ boolean hasConfigChangeMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage getConfigChangeMessage(); // optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7; /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ boolean hasInfoRequestMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage getInfoRequestMessage(); // optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8; /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ boolean hasErrorMessage(); /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage getErrorMessage(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ServerToClientMessage} * * <pre> * If ServerToClientMessage is modified, you need to change the type * TestServerToClientMessageWithExtraFields in the same way to match. * </pre> */ public static final class ServerToClientMessage extends com.google.protobuf.GeneratedMessageLite implements ServerToClientMessageOrBuilder { // Use ServerToClientMessage.newBuilder() to construct. private ServerToClientMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ServerToClientMessage(boolean noInit) {} private static final ServerToClientMessage defaultInstance; public static ServerToClientMessage getDefaultInstance() { return defaultInstance; } public ServerToClientMessage getDefaultInstanceForType() { return defaultInstance; } private ServerToClientMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = tokenControlMessage_.toBuilder(); } tokenControlMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tokenControlMessage_); tokenControlMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = invalidationMessage_.toBuilder(); } invalidationMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(invalidationMessage_); invalidationMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = registrationStatusMessage_.toBuilder(); } registrationStatusMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registrationStatusMessage_); registrationStatusMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = registrationSyncRequestMessage_.toBuilder(); } registrationSyncRequestMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registrationSyncRequestMessage_); registrationSyncRequestMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = configChangeMessage_.toBuilder(); } configChangeMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configChangeMessage_); configChangeMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = infoRequestMessage_.toBuilder(); } infoRequestMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(infoRequestMessage_); infoRequestMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = errorMessage_.toBuilder(); } errorMessage_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorMessage_); errorMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ServerToClientMessage> PARSER = new com.google.protobuf.AbstractParser<ServerToClientMessage>() { public ServerToClientMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServerToClientMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ServerToClientMessage> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ServerHeader header = 1; public static final int HEADER_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader header_; /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader getHeader() { return header_; } // optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2; public static final int TOKEN_CONTROL_MESSAGE_FIELD_NUMBER = 2; private com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage tokenControlMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public boolean hasTokenControlMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage getTokenControlMessage() { return tokenControlMessage_; } // optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3; public static final int INVALIDATION_MESSAGE_FIELD_NUMBER = 3; private com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage invalidationMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public boolean hasInvalidationMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getInvalidationMessage() { return invalidationMessage_; } // optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4; public static final int REGISTRATION_STATUS_MESSAGE_FIELD_NUMBER = 4; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage registrationStatusMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public boolean hasRegistrationStatusMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage getRegistrationStatusMessage() { return registrationStatusMessage_; } // optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5; public static final int REGISTRATION_SYNC_REQUEST_MESSAGE_FIELD_NUMBER = 5; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage registrationSyncRequestMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public boolean hasRegistrationSyncRequestMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage getRegistrationSyncRequestMessage() { return registrationSyncRequestMessage_; } // optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6; public static final int CONFIG_CHANGE_MESSAGE_FIELD_NUMBER = 6; private com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage configChangeMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public boolean hasConfigChangeMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage getConfigChangeMessage() { return configChangeMessage_; } // optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7; public static final int INFO_REQUEST_MESSAGE_FIELD_NUMBER = 7; private com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage infoRequestMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public boolean hasInfoRequestMessage() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage getInfoRequestMessage() { return infoRequestMessage_; } // optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8; public static final int ERROR_MESSAGE_FIELD_NUMBER = 8; private com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage errorMessage_; /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public boolean hasErrorMessage() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage getErrorMessage() { return errorMessage_; } private void initFields() { header_ = com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance(); tokenControlMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance(); invalidationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); registrationStatusMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance(); registrationSyncRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance(); configChangeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance(); infoRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance(); errorMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, header_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, tokenControlMessage_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, invalidationMessage_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, registrationStatusMessage_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, registrationSyncRequestMessage_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, configChangeMessage_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, infoRequestMessage_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, errorMessage_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, header_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tokenControlMessage_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, invalidationMessage_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, registrationStatusMessage_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, registrationSyncRequestMessage_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, configChangeMessage_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, infoRequestMessage_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, errorMessage_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ServerToClientMessage} * * <pre> * If ServerToClientMessage is modified, you need to change the type * TestServerToClientMessageWithExtraFields in the same way to match. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); header_ = com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); tokenControlMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000002); invalidationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); registrationStatusMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000008); registrationSyncRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000010); configChangeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000020); infoRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000040); errorMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.header_ = header_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.tokenControlMessage_ = tokenControlMessage_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.invalidationMessage_ = invalidationMessage_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.registrationStatusMessage_ = registrationStatusMessage_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.registrationSyncRequestMessage_ = registrationSyncRequestMessage_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.configChangeMessage_ = configChangeMessage_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.infoRequestMessage_ = infoRequestMessage_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.errorMessage_ = errorMessage_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasTokenControlMessage()) { mergeTokenControlMessage(other.getTokenControlMessage()); } if (other.hasInvalidationMessage()) { mergeInvalidationMessage(other.getInvalidationMessage()); } if (other.hasRegistrationStatusMessage()) { mergeRegistrationStatusMessage(other.getRegistrationStatusMessage()); } if (other.hasRegistrationSyncRequestMessage()) { mergeRegistrationSyncRequestMessage(other.getRegistrationSyncRequestMessage()); } if (other.hasConfigChangeMessage()) { mergeConfigChangeMessage(other.getConfigChangeMessage()); } if (other.hasInfoRequestMessage()) { mergeInfoRequestMessage(other.getInfoRequestMessage()); } if (other.hasErrorMessage()) { mergeErrorMessage(other.getErrorMessage()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ServerToClientMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ServerHeader header = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader header_ = com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader getHeader() { return header_; } /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public Builder setHeader(com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader value) { if (value == null) { throw new NullPointerException(); } header_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public Builder setHeader( com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.Builder builderForValue) { header_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public Builder mergeHeader(com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader value) { if (((bitField0_ & 0x00000001) == 0x00000001) && header_ != com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance()) { header_ = com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ServerHeader header = 1;</code> */ public Builder clearHeader() { header_ = com.google.protos.ipc.invalidation.ClientProtocol.ServerHeader.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2; private com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage tokenControlMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public boolean hasTokenControlMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage getTokenControlMessage() { return tokenControlMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public Builder setTokenControlMessage(com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage value) { if (value == null) { throw new NullPointerException(); } tokenControlMessage_ = value; bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public Builder setTokenControlMessage( com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.Builder builderForValue) { tokenControlMessage_ = builderForValue.build(); bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public Builder mergeTokenControlMessage(com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage value) { if (((bitField0_ & 0x00000002) == 0x00000002) && tokenControlMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance()) { tokenControlMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.newBuilder(tokenControlMessage_).mergeFrom(value).buildPartial(); } else { tokenControlMessage_ = value; } bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.TokenControlMessage token_control_message = 2;</code> * * <pre> * Message to assign a new client token or invalidate an existing one. Note * that, if present, this message is always processed before the messages * below, and those messages will be interpreted relative to the new token * assigned here. * </pre> */ public Builder clearTokenControlMessage() { tokenControlMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000002); return this; } // optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3; private com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage invalidationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public boolean hasInvalidationMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getInvalidationMessage() { return invalidationMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public Builder setInvalidationMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage value) { if (value == null) { throw new NullPointerException(); } invalidationMessage_ = value; bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public Builder setInvalidationMessage( com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.Builder builderForValue) { invalidationMessage_ = builderForValue.build(); bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public Builder mergeInvalidationMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage value) { if (((bitField0_ & 0x00000004) == 0x00000004) && invalidationMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance()) { invalidationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.newBuilder(invalidationMessage_).mergeFrom(value).buildPartial(); } else { invalidationMessage_ = value; } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InvalidationMessage invalidation_message = 3;</code> * * <pre> * Invalidations. * </pre> */ public Builder clearInvalidationMessage() { invalidationMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000004); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage registrationStatusMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public boolean hasRegistrationStatusMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage getRegistrationStatusMessage() { return registrationStatusMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public Builder setRegistrationStatusMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage value) { if (value == null) { throw new NullPointerException(); } registrationStatusMessage_ = value; bitField0_ |= 0x00000008; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public Builder setRegistrationStatusMessage( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.Builder builderForValue) { registrationStatusMessage_ = builderForValue.build(); bitField0_ |= 0x00000008; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public Builder mergeRegistrationStatusMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage value) { if (((bitField0_ & 0x00000008) == 0x00000008) && registrationStatusMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance()) { registrationStatusMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.newBuilder(registrationStatusMessage_).mergeFrom(value).buildPartial(); } else { registrationStatusMessage_ = value; } bitField0_ |= 0x00000008; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationStatusMessage registration_status_message = 4;</code> * * <pre> * Registration operation replies. * </pre> */ public Builder clearRegistrationStatusMessage() { registrationStatusMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000008); return this; } // optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage registrationSyncRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public boolean hasRegistrationSyncRequestMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage getRegistrationSyncRequestMessage() { return registrationSyncRequestMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public Builder setRegistrationSyncRequestMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage value) { if (value == null) { throw new NullPointerException(); } registrationSyncRequestMessage_ = value; bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public Builder setRegistrationSyncRequestMessage( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.Builder builderForValue) { registrationSyncRequestMessage_ = builderForValue.build(); bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public Builder mergeRegistrationSyncRequestMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage value) { if (((bitField0_ & 0x00000010) == 0x00000010) && registrationSyncRequestMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance()) { registrationSyncRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.newBuilder(registrationSyncRequestMessage_).mergeFrom(value).buildPartial(); } else { registrationSyncRequestMessage_ = value; } bitField0_ |= 0x00000010; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage registration_sync_request_message = 5;</code> * * <pre> * Request for client registration state. * </pre> */ public Builder clearRegistrationSyncRequestMessage() { registrationSyncRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000010); return this; } // optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6; private com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage configChangeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public boolean hasConfigChangeMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage getConfigChangeMessage() { return configChangeMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public Builder setConfigChangeMessage(com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage value) { if (value == null) { throw new NullPointerException(); } configChangeMessage_ = value; bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public Builder setConfigChangeMessage( com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.Builder builderForValue) { configChangeMessage_ = builderForValue.build(); bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public Builder mergeConfigChangeMessage(com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage value) { if (((bitField0_ & 0x00000020) == 0x00000020) && configChangeMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance()) { configChangeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.newBuilder(configChangeMessage_).mergeFrom(value).buildPartial(); } else { configChangeMessage_ = value; } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ConfigChangeMessage config_change_message = 6;</code> * * <pre> * Request to change config from the server. * </pre> */ public Builder clearConfigChangeMessage() { configChangeMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000020); return this; } // optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7; private com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage infoRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public boolean hasInfoRequestMessage() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage getInfoRequestMessage() { return infoRequestMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public Builder setInfoRequestMessage(com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage value) { if (value == null) { throw new NullPointerException(); } infoRequestMessage_ = value; bitField0_ |= 0x00000040; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public Builder setInfoRequestMessage( com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.Builder builderForValue) { infoRequestMessage_ = builderForValue.build(); bitField0_ |= 0x00000040; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public Builder mergeInfoRequestMessage(com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage value) { if (((bitField0_ & 0x00000040) == 0x00000040) && infoRequestMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance()) { infoRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.newBuilder(infoRequestMessage_).mergeFrom(value).buildPartial(); } else { infoRequestMessage_ = value; } bitField0_ |= 0x00000040; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.InfoRequestMessage info_request_message = 7;</code> * * <pre> * Request for client information. * </pre> */ public Builder clearInfoRequestMessage() { infoRequestMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000040); return this; } // optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8; private com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage errorMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public boolean hasErrorMessage() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage getErrorMessage() { return errorMessage_; } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public Builder setErrorMessage(com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage value) { if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000080; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public Builder setErrorMessage( com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Builder builderForValue) { errorMessage_ = builderForValue.build(); bitField0_ |= 0x00000080; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public Builder mergeErrorMessage(com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage value) { if (((bitField0_ & 0x00000080) == 0x00000080) && errorMessage_ != com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance()) { errorMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.newBuilder(errorMessage_).mergeFrom(value).buildPartial(); } else { errorMessage_ = value; } bitField0_ |= 0x00000080; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage error_message = 8;</code> * * <pre> * Asynchronous error information that the server sends to the client. * </pre> */ public Builder clearErrorMessage() { errorMessage_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000080); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ServerToClientMessage) } static { defaultInstance = new ServerToClientMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ServerToClientMessage) } public interface TokenControlMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional bytes new_token = 1; /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ boolean hasNewToken(); /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ com.google.protobuf.ByteString getNewToken(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.TokenControlMessage} * * <pre> * Message used to supply a new client token or invalidate an existing one. * </pre> */ public static final class TokenControlMessage extends com.google.protobuf.GeneratedMessageLite implements TokenControlMessageOrBuilder { // Use TokenControlMessage.newBuilder() to construct. private TokenControlMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private TokenControlMessage(boolean noInit) {} private static final TokenControlMessage defaultInstance; public static TokenControlMessage getDefaultInstance() { return defaultInstance; } public TokenControlMessage getDefaultInstanceForType() { return defaultInstance; } private TokenControlMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; newToken_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<TokenControlMessage> PARSER = new com.google.protobuf.AbstractParser<TokenControlMessage>() { public TokenControlMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenControlMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<TokenControlMessage> getParserForType() { return PARSER; } private int bitField0_; // optional bytes new_token = 1; public static final int NEW_TOKEN_FIELD_NUMBER = 1; private com.google.protobuf.ByteString newToken_; /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ public boolean hasNewToken() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ public com.google.protobuf.ByteString getNewToken() { return newToken_; } private void initFields() { newToken_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, newToken_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, newToken_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.TokenControlMessage} * * <pre> * Message used to supply a new client token or invalidate an existing one. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); newToken_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.newToken_ = newToken_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage.getDefaultInstance()) return this; if (other.hasNewToken()) { setNewToken(other.getNewToken()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.TokenControlMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bytes new_token = 1; private com.google.protobuf.ByteString newToken_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ public boolean hasNewToken() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ public com.google.protobuf.ByteString getNewToken() { return newToken_; } /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ public Builder setNewToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; newToken_ = value; return this; } /** * <code>optional bytes new_token = 1;</code> * * <pre> * If status is failure, new_token cannot be set. * </pre> */ public Builder clearNewToken() { bitField0_ = (bitField0_ & ~0x00000001); newToken_ = getDefaultInstance().getNewToken(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.TokenControlMessage) } static { defaultInstance = new TokenControlMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.TokenControlMessage) } public interface RegistrationStatusOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ boolean hasRegistration(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getRegistration(); // optional .com.google.protos.ipc.invalidation.StatusP status = 2; /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ boolean hasStatus(); /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.StatusP getStatus(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationStatus} * * <pre> * Status of a particular registration (could be sent spontaneously by the * server or in response to a registration request). * </pre> */ public static final class RegistrationStatus extends com.google.protobuf.GeneratedMessageLite implements RegistrationStatusOrBuilder { // Use RegistrationStatus.newBuilder() to construct. private RegistrationStatus(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationStatus(boolean noInit) {} private static final RegistrationStatus defaultInstance; public static RegistrationStatus getDefaultInstance() { return defaultInstance; } public RegistrationStatus getDefaultInstanceForType() { return defaultInstance; } private RegistrationStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = registration_.toBuilder(); } registration_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registration_); registration_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.StatusP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationStatus> PARSER = new com.google.protobuf.AbstractParser<RegistrationStatus>() { public RegistrationStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationStatus(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationStatus> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1; public static final int REGISTRATION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP registration_; /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public boolean hasRegistration() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getRegistration() { return registration_; } // optional .com.google.protos.ipc.invalidation.StatusP status = 2; public static final int STATUS_FIELD_NUMBER = 2; private com.google.protos.ipc.invalidation.ClientProtocol.StatusP status_; /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.StatusP getStatus() { return status_; } private void initFields() { registration_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance(); status_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, registration_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, status_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, registration_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, status_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationStatus} * * <pre> * Status of a particular registration (could be sent spontaneously by the * server or in response to a registration request). * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); registration_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); status_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.registration_ = registration_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.getDefaultInstance()) return this; if (other.hasRegistration()) { mergeRegistration(other.getRegistration()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1; private com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP registration_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public boolean hasRegistration() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP getRegistration() { return registration_; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder setRegistration(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP value) { if (value == null) { throw new NullPointerException(); } registration_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder setRegistration( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.Builder builderForValue) { registration_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder mergeRegistration(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP value) { if (((bitField0_ & 0x00000001) == 0x00000001) && registration_ != com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance()) { registration_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.newBuilder(registration_).mergeFrom(value).buildPartial(); } else { registration_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.RegistrationP registration = 1;</code> */ public Builder clearRegistration() { registration_ = com.google.protos.ipc.invalidation.ClientProtocol.RegistrationP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional .com.google.protos.ipc.invalidation.StatusP status = 2; private com.google.protos.ipc.invalidation.ClientProtocol.StatusP status_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.StatusP getStatus() { return status_; } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public Builder setStatus(com.google.protos.ipc.invalidation.ClientProtocol.StatusP value) { if (value == null) { throw new NullPointerException(); } status_ = value; bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public Builder setStatus( com.google.protos.ipc.invalidation.ClientProtocol.StatusP.Builder builderForValue) { status_ = builderForValue.build(); bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public Builder mergeStatus(com.google.protos.ipc.invalidation.ClientProtocol.StatusP value) { if (((bitField0_ & 0x00000002) == 0x00000002) && status_ != com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance()) { status_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.StatusP status = 2;</code> */ public Builder clearStatus() { status_ = com.google.protos.ipc.invalidation.ClientProtocol.StatusP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000002); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationStatus) } static { defaultInstance = new RegistrationStatus(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationStatus) } public interface RegistrationStatusMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1; /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus> getRegistrationStatusList(); /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus getRegistrationStatus(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ int getRegistrationStatusCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationStatusMessage} * * <pre> * Registration status of several messages from the server to the client. * </pre> */ public static final class RegistrationStatusMessage extends com.google.protobuf.GeneratedMessageLite implements RegistrationStatusMessageOrBuilder { // Use RegistrationStatusMessage.newBuilder() to construct. private RegistrationStatusMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationStatusMessage(boolean noInit) {} private static final RegistrationStatusMessage defaultInstance; public static RegistrationStatusMessage getDefaultInstance() { return defaultInstance; } public RegistrationStatusMessage getDefaultInstanceForType() { return defaultInstance; } private RegistrationStatusMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { registrationStatus_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus>(); mutable_bitField0_ |= 0x00000001; } registrationStatus_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { registrationStatus_ = java.util.Collections.unmodifiableList(registrationStatus_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationStatusMessage> PARSER = new com.google.protobuf.AbstractParser<RegistrationStatusMessage>() { public RegistrationStatusMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationStatusMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationStatusMessage> getParserForType() { return PARSER; } // repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1; public static final int REGISTRATION_STATUS_FIELD_NUMBER = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus> registrationStatus_; /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus> getRegistrationStatusList() { return registrationStatus_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusOrBuilder> getRegistrationStatusOrBuilderList() { return registrationStatus_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public int getRegistrationStatusCount() { return registrationStatus_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus getRegistrationStatus(int index) { return registrationStatus_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusOrBuilder getRegistrationStatusOrBuilder( int index) { return registrationStatus_.get(index); } private void initFields() { registrationStatus_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < registrationStatus_.size(); i++) { output.writeMessage(1, registrationStatus_.get(i)); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < registrationStatus_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, registrationStatus_.get(i)); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationStatusMessage} * * <pre> * Registration status of several messages from the server to the client. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); registrationStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { registrationStatus_ = java.util.Collections.unmodifiableList(registrationStatus_); bitField0_ = (bitField0_ & ~0x00000001); } result.registrationStatus_ = registrationStatus_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage.getDefaultInstance()) return this; if (!other.registrationStatus_.isEmpty()) { if (registrationStatus_.isEmpty()) { registrationStatus_ = other.registrationStatus_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegistrationStatusIsMutable(); registrationStatus_.addAll(other.registrationStatus_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatusMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus> registrationStatus_ = java.util.Collections.emptyList(); private void ensureRegistrationStatusIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { registrationStatus_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus>(registrationStatus_); bitField0_ |= 0x00000001; } } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus> getRegistrationStatusList() { return java.util.Collections.unmodifiableList(registrationStatus_); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public int getRegistrationStatusCount() { return registrationStatus_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus getRegistrationStatus(int index) { return registrationStatus_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder setRegistrationStatus( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus value) { if (value == null) { throw new NullPointerException(); } ensureRegistrationStatusIsMutable(); registrationStatus_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder setRegistrationStatus( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.Builder builderForValue) { ensureRegistrationStatusIsMutable(); registrationStatus_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder addRegistrationStatus(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus value) { if (value == null) { throw new NullPointerException(); } ensureRegistrationStatusIsMutable(); registrationStatus_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder addRegistrationStatus( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus value) { if (value == null) { throw new NullPointerException(); } ensureRegistrationStatusIsMutable(); registrationStatus_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder addRegistrationStatus( com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.Builder builderForValue) { ensureRegistrationStatusIsMutable(); registrationStatus_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder addRegistrationStatus( int index, com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus.Builder builderForValue) { ensureRegistrationStatusIsMutable(); registrationStatus_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder addAllRegistrationStatus( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.RegistrationStatus> values) { ensureRegistrationStatusIsMutable(); super.addAll(values, registrationStatus_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder clearRegistrationStatus() { registrationStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RegistrationStatus registration_status = 1;</code> */ public Builder removeRegistrationStatus(int index) { ensureRegistrationStatusIsMutable(); registrationStatus_.remove(index); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationStatusMessage) } static { defaultInstance = new RegistrationStatusMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationStatusMessage) } public interface RegistrationSyncRequestMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage} * * <pre> * Request from the server to get the registration info from the client for * sync purposes. * </pre> */ public static final class RegistrationSyncRequestMessage extends com.google.protobuf.GeneratedMessageLite implements RegistrationSyncRequestMessageOrBuilder { // Use RegistrationSyncRequestMessage.newBuilder() to construct. private RegistrationSyncRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RegistrationSyncRequestMessage(boolean noInit) {} private static final RegistrationSyncRequestMessage defaultInstance; public static RegistrationSyncRequestMessage getDefaultInstance() { return defaultInstance; } public RegistrationSyncRequestMessage getDefaultInstanceForType() { return defaultInstance; } private RegistrationSyncRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RegistrationSyncRequestMessage> PARSER = new com.google.protobuf.AbstractParser<RegistrationSyncRequestMessage>() { public RegistrationSyncRequestMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistrationSyncRequestMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RegistrationSyncRequestMessage> getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage} * * <pre> * Request from the server to get the registration info from the client for * sync purposes. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage(this); return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage.getDefaultInstance()) return this; return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RegistrationSyncRequestMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage) } static { defaultInstance = new RegistrationSyncRequestMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationSyncRequestMessage) } public interface InvalidationMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1; /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP> getInvalidationList(); /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getInvalidation(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ int getInvalidationCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InvalidationMessage} * * <pre> * A set of invalidations from the client to the server or vice-versa * </pre> */ public static final class InvalidationMessage extends com.google.protobuf.GeneratedMessageLite implements InvalidationMessageOrBuilder { // Use InvalidationMessage.newBuilder() to construct. private InvalidationMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private InvalidationMessage(boolean noInit) {} private static final InvalidationMessage defaultInstance; public static InvalidationMessage getDefaultInstance() { return defaultInstance; } public InvalidationMessage getDefaultInstanceForType() { return defaultInstance; } private InvalidationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { invalidation_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP>(); mutable_bitField0_ |= 0x00000001; } invalidation_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { invalidation_ = java.util.Collections.unmodifiableList(invalidation_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<InvalidationMessage> PARSER = new com.google.protobuf.AbstractParser<InvalidationMessage>() { public InvalidationMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InvalidationMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InvalidationMessage> getParserForType() { return PARSER; } // repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1; public static final int INVALIDATION_FIELD_NUMBER = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP> invalidation_; /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP> getInvalidationList() { return invalidation_; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.InvalidationPOrBuilder> getInvalidationOrBuilderList() { return invalidation_; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public int getInvalidationCount() { return invalidation_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getInvalidation(int index) { return invalidation_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationPOrBuilder getInvalidationOrBuilder( int index) { return invalidation_.get(index); } private void initFields() { invalidation_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < invalidation_.size(); i++) { output.writeMessage(1, invalidation_.get(i)); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < invalidation_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, invalidation_.get(i)); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InvalidationMessage} * * <pre> * A set of invalidations from the client to the server or vice-versa * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); invalidation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { invalidation_ = java.util.Collections.unmodifiableList(invalidation_); bitField0_ = (bitField0_ & ~0x00000001); } result.invalidation_ = invalidation_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage.getDefaultInstance()) return this; if (!other.invalidation_.isEmpty()) { if (invalidation_.isEmpty()) { invalidation_ = other.invalidation_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInvalidationIsMutable(); invalidation_.addAll(other.invalidation_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.InvalidationMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP> invalidation_ = java.util.Collections.emptyList(); private void ensureInvalidationIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { invalidation_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP>(invalidation_); bitField0_ |= 0x00000001; } } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP> getInvalidationList() { return java.util.Collections.unmodifiableList(invalidation_); } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public int getInvalidationCount() { return invalidation_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getInvalidation(int index) { return invalidation_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder setInvalidation( int index, com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP value) { if (value == null) { throw new NullPointerException(); } ensureInvalidationIsMutable(); invalidation_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder setInvalidation( int index, com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.Builder builderForValue) { ensureInvalidationIsMutable(); invalidation_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder addInvalidation(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP value) { if (value == null) { throw new NullPointerException(); } ensureInvalidationIsMutable(); invalidation_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder addInvalidation( int index, com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP value) { if (value == null) { throw new NullPointerException(); } ensureInvalidationIsMutable(); invalidation_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder addInvalidation( com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.Builder builderForValue) { ensureInvalidationIsMutable(); invalidation_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder addInvalidation( int index, com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.Builder builderForValue) { ensureInvalidationIsMutable(); invalidation_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder addAllInvalidation( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP> values) { ensureInvalidationIsMutable(); super.addAll(values, invalidation_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder clearInvalidation() { invalidation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InvalidationP invalidation = 1;</code> */ public Builder removeInvalidation(int index) { ensureInvalidationIsMutable(); invalidation_.remove(index); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InvalidationMessage) } static { defaultInstance = new InvalidationMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InvalidationMessage) } public interface InfoRequestMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1; /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType> getInfoTypeList(); /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ int getInfoTypeCount(); /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType getInfoType(int index); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InfoRequestMessage} * * <pre> * A request from the server to the client for information such as * performance counters, client os, etc * </pre> */ public static final class InfoRequestMessage extends com.google.protobuf.GeneratedMessageLite implements InfoRequestMessageOrBuilder { // Use InfoRequestMessage.newBuilder() to construct. private InfoRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private InfoRequestMessage(boolean noInit) {} private static final InfoRequestMessage defaultInstance; public static InfoRequestMessage getDefaultInstance() { return defaultInstance; } public InfoRequestMessage getDefaultInstanceForType() { return defaultInstance; } private InfoRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType value = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType.valueOf(rawValue); if (value != null) { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { infoType_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType>(); mutable_bitField0_ |= 0x00000001; } infoType_.add(value); } break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType value = com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType.valueOf(rawValue); if (value != null) { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { infoType_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType>(); mutable_bitField0_ |= 0x00000001; } infoType_.add(value); } } input.popLimit(oldLimit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { infoType_ = java.util.Collections.unmodifiableList(infoType_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<InfoRequestMessage> PARSER = new com.google.protobuf.AbstractParser<InfoRequestMessage>() { public InfoRequestMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InfoRequestMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InfoRequestMessage> getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType} */ public enum InfoType implements com.google.protobuf.Internal.EnumLite { /** * <code>GET_PERFORMANCE_COUNTERS = 1;</code> */ GET_PERFORMANCE_COUNTERS(0, 1), ; /** * <code>GET_PERFORMANCE_COUNTERS = 1;</code> */ public static final int GET_PERFORMANCE_COUNTERS_VALUE = 1; public final int getNumber() { return value; } public static InfoType valueOf(int value) { switch (value) { case 1: return GET_PERFORMANCE_COUNTERS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<InfoType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<InfoType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<InfoType>() { public InfoType findValueByNumber(int number) { return InfoType.valueOf(number); } }; private final int value; private InfoType(int index, int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType) } // repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1; public static final int INFO_TYPE_FIELD_NUMBER = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType> infoType_; /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType> getInfoTypeList() { return infoType_; } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public int getInfoTypeCount() { return infoType_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType getInfoType(int index) { return infoType_.get(index); } private void initFields() { infoType_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < infoType_.size(); i++) { output.writeEnum(1, infoType_.get(i).getNumber()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < infoType_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(infoType_.get(i).getNumber()); } size += dataSize; size += 1 * infoType_.size(); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.InfoRequestMessage} * * <pre> * A request from the server to the client for information such as * performance counters, client os, etc * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); infoType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { infoType_ = java.util.Collections.unmodifiableList(infoType_); bitField0_ = (bitField0_ & ~0x00000001); } result.infoType_ = infoType_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.getDefaultInstance()) return this; if (!other.infoType_.isEmpty()) { if (infoType_.isEmpty()) { infoType_ = other.infoType_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInfoTypeIsMutable(); infoType_.addAll(other.infoType_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType> infoType_ = java.util.Collections.emptyList(); private void ensureInfoTypeIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { infoType_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType>(infoType_); bitField0_ |= 0x00000001; } } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType> getInfoTypeList() { return java.util.Collections.unmodifiableList(infoType_); } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public int getInfoTypeCount() { return infoType_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType getInfoType(int index) { return infoType_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public Builder setInfoType( int index, com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType value) { if (value == null) { throw new NullPointerException(); } ensureInfoTypeIsMutable(); infoType_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public Builder addInfoType(com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType value) { if (value == null) { throw new NullPointerException(); } ensureInfoTypeIsMutable(); infoType_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public Builder addAllInfoType( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.InfoRequestMessage.InfoType> values) { ensureInfoTypeIsMutable(); super.addAll(values, infoType_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.InfoRequestMessage.InfoType info_type = 1;</code> */ public Builder clearInfoType() { infoType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InfoRequestMessage) } static { defaultInstance = new InfoRequestMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InfoRequestMessage) } public interface RateLimitPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 window_ms = 1; /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ boolean hasWindowMs(); /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ int getWindowMs(); // optional int32 count = 2; /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ boolean hasCount(); /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ int getCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RateLimitP} * * <pre> * A rate limit: a count of events and a window duration in which the events * may occur. * </pre> */ public static final class RateLimitP extends com.google.protobuf.GeneratedMessageLite implements RateLimitPOrBuilder { // Use RateLimitP.newBuilder() to construct. private RateLimitP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private RateLimitP(boolean noInit) {} private static final RateLimitP defaultInstance; public static RateLimitP getDefaultInstance() { return defaultInstance; } public RateLimitP getDefaultInstanceForType() { return defaultInstance; } private RateLimitP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; windowMs_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; count_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<RateLimitP> PARSER = new com.google.protobuf.AbstractParser<RateLimitP>() { public RateLimitP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RateLimitP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RateLimitP> getParserForType() { return PARSER; } private int bitField0_; // optional int32 window_ms = 1; public static final int WINDOW_MS_FIELD_NUMBER = 1; private int windowMs_; /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ public boolean hasWindowMs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ public int getWindowMs() { return windowMs_; } // optional int32 count = 2; public static final int COUNT_FIELD_NUMBER = 2; private int count_; /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ public boolean hasCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ public int getCount() { return count_; } private void initFields() { windowMs_ = 0; count_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, windowMs_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, count_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, windowMs_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, count_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.RateLimitP} * * <pre> * A rate limit: a count of events and a window duration in which the events * may occur. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.RateLimitPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); windowMs_ = 0; bitField0_ = (bitField0_ & ~0x00000001); count_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP build() { com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP result = new com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.windowMs_ = windowMs_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.count_ = count_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.getDefaultInstance()) return this; if (other.hasWindowMs()) { setWindowMs(other.getWindowMs()); } if (other.hasCount()) { setCount(other.getCount()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 window_ms = 1; private int windowMs_ ; /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ public boolean hasWindowMs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ public int getWindowMs() { return windowMs_; } /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ public Builder setWindowMs(int value) { bitField0_ |= 0x00000001; windowMs_ = value; return this; } /** * <code>optional int32 window_ms = 1;</code> * * <pre> * The size of the window over which the rate limit applies. * </pre> */ public Builder clearWindowMs() { bitField0_ = (bitField0_ & ~0x00000001); windowMs_ = 0; return this; } // optional int32 count = 2; private int count_ ; /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ public boolean hasCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ public int getCount() { return count_; } /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ public Builder setCount(int value) { bitField0_ |= 0x00000002; count_ = value; return this; } /** * <code>optional int32 count = 2;</code> * * <pre> * The number of events allowed within a given window. * </pre> */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RateLimitP) } static { defaultInstance = new RateLimitP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RateLimitP) } public interface ProtocolHandlerConfigPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int32 batching_delay_ms = 1 [default = 500]; /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ boolean hasBatchingDelayMs(); /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ int getBatchingDelayMs(); // repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2; /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP> getRateLimitList(); /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP getRateLimit(int index); /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ int getRateLimitCount(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ProtocolHandlerConfigP} * * <pre> * Configuration parameters for the protocol handler in the Ticl. * </pre> */ public static final class ProtocolHandlerConfigP extends com.google.protobuf.GeneratedMessageLite implements ProtocolHandlerConfigPOrBuilder { // Use ProtocolHandlerConfigP.newBuilder() to construct. private ProtocolHandlerConfigP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ProtocolHandlerConfigP(boolean noInit) {} private static final ProtocolHandlerConfigP defaultInstance; public static ProtocolHandlerConfigP getDefaultInstance() { return defaultInstance; } public ProtocolHandlerConfigP getDefaultInstanceForType() { return defaultInstance; } private ProtocolHandlerConfigP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; batchingDelayMs_ = input.readInt32(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rateLimit_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP>(); mutable_bitField0_ |= 0x00000002; } rateLimit_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rateLimit_ = java.util.Collections.unmodifiableList(rateLimit_); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ProtocolHandlerConfigP> PARSER = new com.google.protobuf.AbstractParser<ProtocolHandlerConfigP>() { public ProtocolHandlerConfigP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtocolHandlerConfigP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ProtocolHandlerConfigP> getParserForType() { return PARSER; } private int bitField0_; // optional int32 batching_delay_ms = 1 [default = 500]; public static final int BATCHING_DELAY_MS_FIELD_NUMBER = 1; private int batchingDelayMs_; /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ public boolean hasBatchingDelayMs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ public int getBatchingDelayMs() { return batchingDelayMs_; } // repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2; public static final int RATE_LIMIT_FIELD_NUMBER = 2; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP> rateLimit_; /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP> getRateLimitList() { return rateLimit_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.RateLimitPOrBuilder> getRateLimitOrBuilderList() { return rateLimit_; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public int getRateLimitCount() { return rateLimit_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP getRateLimit(int index) { return rateLimit_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RateLimitPOrBuilder getRateLimitOrBuilder( int index) { return rateLimit_.get(index); } private void initFields() { batchingDelayMs_ = 500; rateLimit_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, batchingDelayMs_); } for (int i = 0; i < rateLimit_.size(); i++) { output.writeMessage(2, rateLimit_.get(i)); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, batchingDelayMs_); } for (int i = 0; i < rateLimit_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rateLimit_.get(i)); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ProtocolHandlerConfigP} * * <pre> * Configuration parameters for the protocol handler in the Ticl. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); batchingDelayMs_ = 500; bitField0_ = (bitField0_ & ~0x00000001); rateLimit_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP build() { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP result = new com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.batchingDelayMs_ = batchingDelayMs_; if (((bitField0_ & 0x00000002) == 0x00000002)) { rateLimit_ = java.util.Collections.unmodifiableList(rateLimit_); bitField0_ = (bitField0_ & ~0x00000002); } result.rateLimit_ = rateLimit_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance()) return this; if (other.hasBatchingDelayMs()) { setBatchingDelayMs(other.getBatchingDelayMs()); } if (!other.rateLimit_.isEmpty()) { if (rateLimit_.isEmpty()) { rateLimit_ = other.rateLimit_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRateLimitIsMutable(); rateLimit_.addAll(other.rateLimit_); } } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 batching_delay_ms = 1 [default = 500]; private int batchingDelayMs_ = 500; /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ public boolean hasBatchingDelayMs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ public int getBatchingDelayMs() { return batchingDelayMs_; } /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ public Builder setBatchingDelayMs(int value) { bitField0_ |= 0x00000001; batchingDelayMs_ = value; return this; } /** * <code>optional int32 batching_delay_ms = 1 [default = 500];</code> * * <pre> * Batching delay - certain messages (e.g., registrations, invalidation acks) * are sent to the server after this delay. * </pre> */ public Builder clearBatchingDelayMs() { bitField0_ = (bitField0_ & ~0x00000001); batchingDelayMs_ = 500; return this; } // repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2; private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP> rateLimit_ = java.util.Collections.emptyList(); private void ensureRateLimitIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rateLimit_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP>(rateLimit_); bitField0_ |= 0x00000002; } } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP> getRateLimitList() { return java.util.Collections.unmodifiableList(rateLimit_); } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public int getRateLimitCount() { return rateLimit_.size(); } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP getRateLimit(int index) { return rateLimit_.get(index); } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder setRateLimit( int index, com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP value) { if (value == null) { throw new NullPointerException(); } ensureRateLimitIsMutable(); rateLimit_.set(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder setRateLimit( int index, com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.Builder builderForValue) { ensureRateLimitIsMutable(); rateLimit_.set(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder addRateLimit(com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP value) { if (value == null) { throw new NullPointerException(); } ensureRateLimitIsMutable(); rateLimit_.add(value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder addRateLimit( int index, com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP value) { if (value == null) { throw new NullPointerException(); } ensureRateLimitIsMutable(); rateLimit_.add(index, value); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder addRateLimit( com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.Builder builderForValue) { ensureRateLimitIsMutable(); rateLimit_.add(builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder addRateLimit( int index, com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP.Builder builderForValue) { ensureRateLimitIsMutable(); rateLimit_.add(index, builderForValue.build()); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder addAllRateLimit( java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.RateLimitP> values) { ensureRateLimitIsMutable(); super.addAll(values, rateLimit_); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder clearRateLimit() { rateLimit_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>repeated .com.google.protos.ipc.invalidation.RateLimitP rate_limit = 2;</code> * * <pre> * Rate limits for sending messages. Only two levels allowed currently. * </pre> */ public Builder removeRateLimit(int index) { ensureRateLimitIsMutable(); rateLimit_.remove(index); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ProtocolHandlerConfigP) } static { defaultInstance = new ProtocolHandlerConfigP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ProtocolHandlerConfigP) } public interface ClientConfigPOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.Version version = 1; /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ boolean hasVersion(); /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion(); // optional int32 network_timeout_delay_ms = 2 [default = 60000]; /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ boolean hasNetworkTimeoutDelayMs(); /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ int getNetworkTimeoutDelayMs(); // optional int32 write_retry_delay_ms = 3 [default = 10000]; /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ boolean hasWriteRetryDelayMs(); /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ int getWriteRetryDelayMs(); // optional int32 heartbeat_interval_ms = 4 [default = 1200000]; /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ boolean hasHeartbeatIntervalMs(); /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ int getHeartbeatIntervalMs(); // optional int32 perf_counter_delay_ms = 5 [default = 21600000]; /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ boolean hasPerfCounterDelayMs(); /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ int getPerfCounterDelayMs(); // optional int32 max_exponential_backoff_factor = 6 [default = 500]; /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ boolean hasMaxExponentialBackoffFactor(); /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ int getMaxExponentialBackoffFactor(); // optional int32 smear_percent = 7 [default = 20]; /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ boolean hasSmearPercent(); /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ int getSmearPercent(); // optional bool is_transient = 8 [default = false]; /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ boolean hasIsTransient(); /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ boolean getIsTransient(); // optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000]; /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ boolean hasInitialPersistentHeartbeatDelayMs(); /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ int getInitialPersistentHeartbeatDelayMs(); // optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10; /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ boolean hasProtocolHandlerConfig(); /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP getProtocolHandlerConfig(); // optional bool channel_supports_offline_delivery = 11 [default = false]; /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ boolean hasChannelSupportsOfflineDelivery(); /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ boolean getChannelSupportsOfflineDelivery(); // optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000]; /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ boolean hasOfflineHeartbeatThresholdMs(); /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ int getOfflineHeartbeatThresholdMs(); // optional bool allow_suppression = 13 [default = true]; /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ boolean hasAllowSuppression(); /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ boolean getAllowSuppression(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientConfigP} * * <pre> * Configuration parameters for the Ticl. * </pre> */ public static final class ClientConfigP extends com.google.protobuf.GeneratedMessageLite implements ClientConfigPOrBuilder { // Use ClientConfigP.newBuilder() to construct. private ClientConfigP(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ClientConfigP(boolean noInit) {} private static final ClientConfigP defaultInstance; public static ClientConfigP getDefaultInstance() { return defaultInstance; } public ClientConfigP getDefaultInstanceForType() { return defaultInstance; } private ClientConfigP( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; networkTimeoutDelayMs_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; writeRetryDelayMs_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; heartbeatIntervalMs_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; perfCounterDelayMs_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; maxExponentialBackoffFactor_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; smearPercent_ = input.readInt32(); break; } case 64: { bitField0_ |= 0x00000080; isTransient_ = input.readBool(); break; } case 72: { bitField0_ |= 0x00000100; initialPersistentHeartbeatDelayMs_ = input.readInt32(); break; } case 82: { com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = protocolHandlerConfig_.toBuilder(); } protocolHandlerConfig_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(protocolHandlerConfig_); protocolHandlerConfig_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 88: { bitField0_ |= 0x00000400; channelSupportsOfflineDelivery_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000800; offlineHeartbeatThresholdMs_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00001000; allowSuppression_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ClientConfigP> PARSER = new com.google.protobuf.AbstractParser<ClientConfigP>() { public ClientConfigP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientConfigP(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ClientConfigP> getParserForType() { return PARSER; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.Version version = 1; public static final int VERSION_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.Version version_; /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() { return version_; } // optional int32 network_timeout_delay_ms = 2 [default = 60000]; public static final int NETWORK_TIMEOUT_DELAY_MS_FIELD_NUMBER = 2; private int networkTimeoutDelayMs_; /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ public boolean hasNetworkTimeoutDelayMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ public int getNetworkTimeoutDelayMs() { return networkTimeoutDelayMs_; } // optional int32 write_retry_delay_ms = 3 [default = 10000]; public static final int WRITE_RETRY_DELAY_MS_FIELD_NUMBER = 3; private int writeRetryDelayMs_; /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ public boolean hasWriteRetryDelayMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ public int getWriteRetryDelayMs() { return writeRetryDelayMs_; } // optional int32 heartbeat_interval_ms = 4 [default = 1200000]; public static final int HEARTBEAT_INTERVAL_MS_FIELD_NUMBER = 4; private int heartbeatIntervalMs_; /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ public boolean hasHeartbeatIntervalMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ public int getHeartbeatIntervalMs() { return heartbeatIntervalMs_; } // optional int32 perf_counter_delay_ms = 5 [default = 21600000]; public static final int PERF_COUNTER_DELAY_MS_FIELD_NUMBER = 5; private int perfCounterDelayMs_; /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ public boolean hasPerfCounterDelayMs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ public int getPerfCounterDelayMs() { return perfCounterDelayMs_; } // optional int32 max_exponential_backoff_factor = 6 [default = 500]; public static final int MAX_EXPONENTIAL_BACKOFF_FACTOR_FIELD_NUMBER = 6; private int maxExponentialBackoffFactor_; /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ public boolean hasMaxExponentialBackoffFactor() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ public int getMaxExponentialBackoffFactor() { return maxExponentialBackoffFactor_; } // optional int32 smear_percent = 7 [default = 20]; public static final int SMEAR_PERCENT_FIELD_NUMBER = 7; private int smearPercent_; /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ public boolean hasSmearPercent() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ public int getSmearPercent() { return smearPercent_; } // optional bool is_transient = 8 [default = false]; public static final int IS_TRANSIENT_FIELD_NUMBER = 8; private boolean isTransient_; /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ public boolean hasIsTransient() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ public boolean getIsTransient() { return isTransient_; } // optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000]; public static final int INITIAL_PERSISTENT_HEARTBEAT_DELAY_MS_FIELD_NUMBER = 9; private int initialPersistentHeartbeatDelayMs_; /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ public boolean hasInitialPersistentHeartbeatDelayMs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ public int getInitialPersistentHeartbeatDelayMs() { return initialPersistentHeartbeatDelayMs_; } // optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10; public static final int PROTOCOL_HANDLER_CONFIG_FIELD_NUMBER = 10; private com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP protocolHandlerConfig_; /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public boolean hasProtocolHandlerConfig() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP getProtocolHandlerConfig() { return protocolHandlerConfig_; } // optional bool channel_supports_offline_delivery = 11 [default = false]; public static final int CHANNEL_SUPPORTS_OFFLINE_DELIVERY_FIELD_NUMBER = 11; private boolean channelSupportsOfflineDelivery_; /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ public boolean hasChannelSupportsOfflineDelivery() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ public boolean getChannelSupportsOfflineDelivery() { return channelSupportsOfflineDelivery_; } // optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000]; public static final int OFFLINE_HEARTBEAT_THRESHOLD_MS_FIELD_NUMBER = 12; private int offlineHeartbeatThresholdMs_; /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ public boolean hasOfflineHeartbeatThresholdMs() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ public int getOfflineHeartbeatThresholdMs() { return offlineHeartbeatThresholdMs_; } // optional bool allow_suppression = 13 [default = true]; public static final int ALLOW_SUPPRESSION_FIELD_NUMBER = 13; private boolean allowSuppression_; /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ public boolean hasAllowSuppression() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ public boolean getAllowSuppression() { return allowSuppression_; } private void initFields() { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); networkTimeoutDelayMs_ = 60000; writeRetryDelayMs_ = 10000; heartbeatIntervalMs_ = 1200000; perfCounterDelayMs_ = 21600000; maxExponentialBackoffFactor_ = 500; smearPercent_ = 20; isTransient_ = false; initialPersistentHeartbeatDelayMs_ = 2000; protocolHandlerConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance(); channelSupportsOfflineDelivery_ = false; offlineHeartbeatThresholdMs_ = 60000; allowSuppression_ = true; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, networkTimeoutDelayMs_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, writeRetryDelayMs_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, heartbeatIntervalMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, perfCounterDelayMs_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, maxExponentialBackoffFactor_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, smearPercent_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(8, isTransient_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, initialPersistentHeartbeatDelayMs_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(10, protocolHandlerConfig_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, channelSupportsOfflineDelivery_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(12, offlineHeartbeatThresholdMs_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(13, allowSuppression_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, networkTimeoutDelayMs_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, writeRetryDelayMs_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, heartbeatIntervalMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, perfCounterDelayMs_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, maxExponentialBackoffFactor_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, smearPercent_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isTransient_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, initialPersistentHeartbeatDelayMs_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, protocolHandlerConfig_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, channelSupportsOfflineDelivery_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, offlineHeartbeatThresholdMs_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, allowSuppression_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ClientConfigP} * * <pre> * Configuration parameters for the Ticl. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigPOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); networkTimeoutDelayMs_ = 60000; bitField0_ = (bitField0_ & ~0x00000002); writeRetryDelayMs_ = 10000; bitField0_ = (bitField0_ & ~0x00000004); heartbeatIntervalMs_ = 1200000; bitField0_ = (bitField0_ & ~0x00000008); perfCounterDelayMs_ = 21600000; bitField0_ = (bitField0_ & ~0x00000010); maxExponentialBackoffFactor_ = 500; bitField0_ = (bitField0_ & ~0x00000020); smearPercent_ = 20; bitField0_ = (bitField0_ & ~0x00000040); isTransient_ = false; bitField0_ = (bitField0_ & ~0x00000080); initialPersistentHeartbeatDelayMs_ = 2000; bitField0_ = (bitField0_ & ~0x00000100); protocolHandlerConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000200); channelSupportsOfflineDelivery_ = false; bitField0_ = (bitField0_ & ~0x00000400); offlineHeartbeatThresholdMs_ = 60000; bitField0_ = (bitField0_ & ~0x00000800); allowSuppression_ = true; bitField0_ = (bitField0_ & ~0x00001000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP build() { com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP result = new com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.networkTimeoutDelayMs_ = networkTimeoutDelayMs_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.writeRetryDelayMs_ = writeRetryDelayMs_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.heartbeatIntervalMs_ = heartbeatIntervalMs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.perfCounterDelayMs_ = perfCounterDelayMs_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.maxExponentialBackoffFactor_ = maxExponentialBackoffFactor_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.smearPercent_ = smearPercent_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.isTransient_ = isTransient_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.initialPersistentHeartbeatDelayMs_ = initialPersistentHeartbeatDelayMs_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.protocolHandlerConfig_ = protocolHandlerConfig_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.channelSupportsOfflineDelivery_ = channelSupportsOfflineDelivery_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.offlineHeartbeatThresholdMs_ = offlineHeartbeatThresholdMs_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.allowSuppression_ = allowSuppression_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (other.hasNetworkTimeoutDelayMs()) { setNetworkTimeoutDelayMs(other.getNetworkTimeoutDelayMs()); } if (other.hasWriteRetryDelayMs()) { setWriteRetryDelayMs(other.getWriteRetryDelayMs()); } if (other.hasHeartbeatIntervalMs()) { setHeartbeatIntervalMs(other.getHeartbeatIntervalMs()); } if (other.hasPerfCounterDelayMs()) { setPerfCounterDelayMs(other.getPerfCounterDelayMs()); } if (other.hasMaxExponentialBackoffFactor()) { setMaxExponentialBackoffFactor(other.getMaxExponentialBackoffFactor()); } if (other.hasSmearPercent()) { setSmearPercent(other.getSmearPercent()); } if (other.hasIsTransient()) { setIsTransient(other.getIsTransient()); } if (other.hasInitialPersistentHeartbeatDelayMs()) { setInitialPersistentHeartbeatDelayMs(other.getInitialPersistentHeartbeatDelayMs()); } if (other.hasProtocolHandlerConfig()) { mergeProtocolHandlerConfig(other.getProtocolHandlerConfig()); } if (other.hasChannelSupportsOfflineDelivery()) { setChannelSupportsOfflineDelivery(other.getChannelSupportsOfflineDelivery()); } if (other.hasOfflineHeartbeatThresholdMs()) { setOfflineHeartbeatThresholdMs(other.getOfflineHeartbeatThresholdMs()); } if (other.hasAllowSuppression()) { setAllowSuppression(other.getAllowSuppression()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.Version version = 1; private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() { return version_; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder setVersion( com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) { version_ = builderForValue.build(); bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) { if (((bitField0_ & 0x00000001) == 0x00000001) && version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } bitField0_ |= 0x00000001; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code> */ public Builder clearVersion() { version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000001); return this; } // optional int32 network_timeout_delay_ms = 2 [default = 60000]; private int networkTimeoutDelayMs_ = 60000; /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ public boolean hasNetworkTimeoutDelayMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ public int getNetworkTimeoutDelayMs() { return networkTimeoutDelayMs_; } /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ public Builder setNetworkTimeoutDelayMs(int value) { bitField0_ |= 0x00000002; networkTimeoutDelayMs_ = value; return this; } /** * <code>optional int32 network_timeout_delay_ms = 2 [default = 60000];</code> * * <pre> * The delay after which a network message sent to the server is considered * timed out. * </pre> */ public Builder clearNetworkTimeoutDelayMs() { bitField0_ = (bitField0_ & ~0x00000002); networkTimeoutDelayMs_ = 60000; return this; } // optional int32 write_retry_delay_ms = 3 [default = 10000]; private int writeRetryDelayMs_ = 10000; /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ public boolean hasWriteRetryDelayMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ public int getWriteRetryDelayMs() { return writeRetryDelayMs_; } /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ public Builder setWriteRetryDelayMs(int value) { bitField0_ |= 0x00000004; writeRetryDelayMs_ = value; return this; } /** * <code>optional int32 write_retry_delay_ms = 3 [default = 10000];</code> * * <pre> * Retry delay for a persistent write if it fails * </pre> */ public Builder clearWriteRetryDelayMs() { bitField0_ = (bitField0_ & ~0x00000004); writeRetryDelayMs_ = 10000; return this; } // optional int32 heartbeat_interval_ms = 4 [default = 1200000]; private int heartbeatIntervalMs_ = 1200000; /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ public boolean hasHeartbeatIntervalMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ public int getHeartbeatIntervalMs() { return heartbeatIntervalMs_; } /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ public Builder setHeartbeatIntervalMs(int value) { bitField0_ |= 0x00000008; heartbeatIntervalMs_ = value; return this; } /** * <code>optional int32 heartbeat_interval_ms = 4 [default = 1200000];</code> * * <pre> * Delay for sending heartbeats to the server. * </pre> */ public Builder clearHeartbeatIntervalMs() { bitField0_ = (bitField0_ & ~0x00000008); heartbeatIntervalMs_ = 1200000; return this; } // optional int32 perf_counter_delay_ms = 5 [default = 21600000]; private int perfCounterDelayMs_ = 21600000; /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ public boolean hasPerfCounterDelayMs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ public int getPerfCounterDelayMs() { return perfCounterDelayMs_; } /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ public Builder setPerfCounterDelayMs(int value) { bitField0_ |= 0x00000010; perfCounterDelayMs_ = value; return this; } /** * <code>optional int32 perf_counter_delay_ms = 5 [default = 21600000];</code> * * <pre> * Delay after which performance counters are sent to the server. * </pre> */ public Builder clearPerfCounterDelayMs() { bitField0_ = (bitField0_ & ~0x00000010); perfCounterDelayMs_ = 21600000; return this; } // optional int32 max_exponential_backoff_factor = 6 [default = 500]; private int maxExponentialBackoffFactor_ = 500; /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ public boolean hasMaxExponentialBackoffFactor() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ public int getMaxExponentialBackoffFactor() { return maxExponentialBackoffFactor_; } /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ public Builder setMaxExponentialBackoffFactor(int value) { bitField0_ |= 0x00000020; maxExponentialBackoffFactor_ = value; return this; } /** * <code>optional int32 max_exponential_backoff_factor = 6 [default = 500];</code> * * <pre> * The maximum exponential backoff factor used for network and persistence * / timeouts. * </pre> */ public Builder clearMaxExponentialBackoffFactor() { bitField0_ = (bitField0_ & ~0x00000020); maxExponentialBackoffFactor_ = 500; return this; } // optional int32 smear_percent = 7 [default = 20]; private int smearPercent_ = 20; /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ public boolean hasSmearPercent() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ public int getSmearPercent() { return smearPercent_; } /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ public Builder setSmearPercent(int value) { bitField0_ |= 0x00000040; smearPercent_ = value; return this; } /** * <code>optional int32 smear_percent = 7 [default = 20];</code> * * <pre> * Smearing percent for randomizing delays. * </pre> */ public Builder clearSmearPercent() { bitField0_ = (bitField0_ & ~0x00000040); smearPercent_ = 20; return this; } // optional bool is_transient = 8 [default = false]; private boolean isTransient_ ; /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ public boolean hasIsTransient() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ public boolean getIsTransient() { return isTransient_; } /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ public Builder setIsTransient(boolean value) { bitField0_ |= 0x00000080; isTransient_ = value; return this; } /** * <code>optional bool is_transient = 8 [default = false];</code> * * <pre> * Whether the client is transient, that is, does not write its session * token to durable storage. * TODO: need to expose to the clients. * </pre> */ public Builder clearIsTransient() { bitField0_ = (bitField0_ & ~0x00000080); isTransient_ = false; return this; } // optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000]; private int initialPersistentHeartbeatDelayMs_ = 2000; /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ public boolean hasInitialPersistentHeartbeatDelayMs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ public int getInitialPersistentHeartbeatDelayMs() { return initialPersistentHeartbeatDelayMs_; } /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ public Builder setInitialPersistentHeartbeatDelayMs(int value) { bitField0_ |= 0x00000100; initialPersistentHeartbeatDelayMs_ = value; return this; } /** * <code>optional int32 initial_persistent_heartbeat_delay_ms = 9 [default = 2000];</code> * * <pre> * Initial delay for a heartbeat after restarting from persistent state. We * use this so that the application has a chance to respond to the * reissueRegistrations call. * </pre> */ public Builder clearInitialPersistentHeartbeatDelayMs() { bitField0_ = (bitField0_ & ~0x00000100); initialPersistentHeartbeatDelayMs_ = 2000; return this; } // optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10; private com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP protocolHandlerConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance(); /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public boolean hasProtocolHandlerConfig() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP getProtocolHandlerConfig() { return protocolHandlerConfig_; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public Builder setProtocolHandlerConfig(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP value) { if (value == null) { throw new NullPointerException(); } protocolHandlerConfig_ = value; bitField0_ |= 0x00000200; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public Builder setProtocolHandlerConfig( com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.Builder builderForValue) { protocolHandlerConfig_ = builderForValue.build(); bitField0_ |= 0x00000200; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public Builder mergeProtocolHandlerConfig(com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP value) { if (((bitField0_ & 0x00000200) == 0x00000200) && protocolHandlerConfig_ != com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance()) { protocolHandlerConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.newBuilder(protocolHandlerConfig_).mergeFrom(value).buildPartial(); } else { protocolHandlerConfig_ = value; } bitField0_ |= 0x00000200; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ProtocolHandlerConfigP protocol_handler_config = 10;</code> * * <pre> * Configuration for the protocol client to control batching etc. * </pre> */ public Builder clearProtocolHandlerConfig() { protocolHandlerConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ProtocolHandlerConfigP.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000200); return this; } // optional bool channel_supports_offline_delivery = 11 [default = false]; private boolean channelSupportsOfflineDelivery_ ; /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ public boolean hasChannelSupportsOfflineDelivery() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ public boolean getChannelSupportsOfflineDelivery() { return channelSupportsOfflineDelivery_; } /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ public Builder setChannelSupportsOfflineDelivery(boolean value) { bitField0_ |= 0x00000400; channelSupportsOfflineDelivery_ = value; return this; } /** * <code>optional bool channel_supports_offline_delivery = 11 [default = false];</code> * * <pre> * Whether the channel supports delivery while the client is offline. If * true, then the servers' use of the channel is such that the * following holds: if any number of messages are sent to the client while * the client is unreachable, then the channel will eventually deliver at * least one message to the client such that, on receiving the message, the * client will send a message to the server. E.g., the channel could deliver * a single invalidation or a single registration sync request. C2DM is * an example of a suitable channel. * * When this is true, the Ticl will record in persistent storage the last * time it sent a message to the server. On persistent restart, it will not * send a message to the server unless the last one was sent more than a * heartbeat-interval ago. This is designed to support efficient Android * clients, which will destroy and recreate the Ticl when transitioning * between foreground and background states. * </pre> */ public Builder clearChannelSupportsOfflineDelivery() { bitField0_ = (bitField0_ & ~0x00000400); channelSupportsOfflineDelivery_ = false; return this; } // optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000]; private int offlineHeartbeatThresholdMs_ = 60000; /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ public boolean hasOfflineHeartbeatThresholdMs() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ public int getOfflineHeartbeatThresholdMs() { return offlineHeartbeatThresholdMs_; } /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ public Builder setOfflineHeartbeatThresholdMs(int value) { bitField0_ |= 0x00000800; offlineHeartbeatThresholdMs_ = value; return this; } /** * <code>optional int32 offline_heartbeat_threshold_ms = 12 [default = 60000];</code> * * <pre> * If the client loses network connectivity, it will send a heartbeat after it * comes online, unless it had already sent a message more recently than this * threshold. * </pre> */ public Builder clearOfflineHeartbeatThresholdMs() { bitField0_ = (bitField0_ & ~0x00000800); offlineHeartbeatThresholdMs_ = 60000; return this; } // optional bool allow_suppression = 13 [default = true]; private boolean allowSuppression_ = true; /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ public boolean hasAllowSuppression() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ public boolean getAllowSuppression() { return allowSuppression_; } /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ public Builder setAllowSuppression(boolean value) { bitField0_ |= 0x00001000; allowSuppression_ = value; return this; } /** * <code>optional bool allow_suppression = 13 [default = true];</code> * * <pre> * Whether the client allows suppression. If true (the default), then * both continuous and restarted invalidations result in an invalidate() * upcall, which is appropriate for invalidation clients. If false, * then restarted invalidations result in an invalidateUnknownVersion() * upcall, which provides correct semantics for Trickles clients. * </pre> */ public Builder clearAllowSuppression() { bitField0_ = (bitField0_ & ~0x00001000); allowSuppression_ = true; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientConfigP) } static { defaultInstance = new ClientConfigP(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientConfigP) } public interface ConfigChangeMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional int64 next_message_delay_ms = 1; /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ boolean hasNextMessageDelayMs(); /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ long getNextMessageDelayMs(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ConfigChangeMessage} * * <pre> * A message asking the client to change its configuration parameters * </pre> */ public static final class ConfigChangeMessage extends com.google.protobuf.GeneratedMessageLite implements ConfigChangeMessageOrBuilder { // Use ConfigChangeMessage.newBuilder() to construct. private ConfigChangeMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ConfigChangeMessage(boolean noInit) {} private static final ConfigChangeMessage defaultInstance; public static ConfigChangeMessage getDefaultInstance() { return defaultInstance; } public ConfigChangeMessage getDefaultInstanceForType() { return defaultInstance; } private ConfigChangeMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; nextMessageDelayMs_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ConfigChangeMessage> PARSER = new com.google.protobuf.AbstractParser<ConfigChangeMessage>() { public ConfigChangeMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigChangeMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ConfigChangeMessage> getParserForType() { return PARSER; } private int bitField0_; // optional int64 next_message_delay_ms = 1; public static final int NEXT_MESSAGE_DELAY_MS_FIELD_NUMBER = 1; private long nextMessageDelayMs_; /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ public boolean hasNextMessageDelayMs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ public long getNextMessageDelayMs() { return nextMessageDelayMs_; } private void initFields() { nextMessageDelayMs_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, nextMessageDelayMs_); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, nextMessageDelayMs_); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ConfigChangeMessage} * * <pre> * A message asking the client to change its configuration parameters * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); nextMessageDelayMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nextMessageDelayMs_ = nextMessageDelayMs_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage.getDefaultInstance()) return this; if (other.hasNextMessageDelayMs()) { setNextMessageDelayMs(other.getNextMessageDelayMs()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ConfigChangeMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 next_message_delay_ms = 1; private long nextMessageDelayMs_ ; /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ public boolean hasNextMessageDelayMs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ public long getNextMessageDelayMs() { return nextMessageDelayMs_; } /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ public Builder setNextMessageDelayMs(long value) { bitField0_ |= 0x00000001; nextMessageDelayMs_ = value; return this; } /** * <code>optional int64 next_message_delay_ms = 1;</code> * * <pre> * On receipt of this value, do not send any new message to the server * for the specified delay (this message needs to be accepted without * any token check). A zero value is ignored by the client. So the lowest * value for this field is 1. This concept exists to allow the server * to tell the clients that they should not come back to the server * for some period of time. * </pre> */ public Builder clearNextMessageDelayMs() { bitField0_ = (bitField0_ & ~0x00000001); nextMessageDelayMs_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ConfigChangeMessage) } static { defaultInstance = new ConfigChangeMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ConfigChangeMessage) } public interface ErrorMessageOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1; /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ boolean hasCode(); /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code getCode(); // optional string description = 2; /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ boolean hasDescription(); /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ java.lang.String getDescription(); /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ com.google.protobuf.ByteString getDescriptionBytes(); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ErrorMessage} * * <pre> * An error message that contains an enum for different types of failures with a * textual description of the failure (as the need arises new error codes will * be added to this message). * </pre> */ public static final class ErrorMessage extends com.google.protobuf.GeneratedMessageLite implements ErrorMessageOrBuilder { // Use ErrorMessage.newBuilder() to construct. private ErrorMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ErrorMessage(boolean noInit) {} private static final ErrorMessage defaultInstance; public static ErrorMessage getDefaultInstance() { return defaultInstance; } public ErrorMessage getDefaultInstanceForType() { return defaultInstance; } private ErrorMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code value = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code.valueOf(rawValue); if (value != null) { bitField0_ |= 0x00000001; code_ = value; } break; } case 18: { bitField0_ |= 0x00000002; description_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ErrorMessage> PARSER = new com.google.protobuf.AbstractParser<ErrorMessage>() { public ErrorMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ErrorMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ErrorMessage> getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.ipc.invalidation.ErrorMessage.Code} */ public enum Code implements com.google.protobuf.Internal.EnumLite { /** * <code>AUTH_FAILURE = 1;</code> * * <pre> * Authorization or authentication failure. * </pre> */ AUTH_FAILURE(0, 1), /** * <code>UNKNOWN_FAILURE = 10000;</code> * * <pre> * Some failure which is not described above. * </pre> */ UNKNOWN_FAILURE(1, 10000), ; /** * <code>AUTH_FAILURE = 1;</code> * * <pre> * Authorization or authentication failure. * </pre> */ public static final int AUTH_FAILURE_VALUE = 1; /** * <code>UNKNOWN_FAILURE = 10000;</code> * * <pre> * Some failure which is not described above. * </pre> */ public static final int UNKNOWN_FAILURE_VALUE = 10000; public final int getNumber() { return value; } public static Code valueOf(int value) { switch (value) { case 1: return AUTH_FAILURE; case 10000: return UNKNOWN_FAILURE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Code> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Code>() { public Code findValueByNumber(int number) { return Code.valueOf(number); } }; private final int value; private Code(int index, int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.ipc.invalidation.ErrorMessage.Code) } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1; public static final int CODE_FIELD_NUMBER = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code code_; /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ public boolean hasCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code getCode() { return code_; } // optional string description = 2; public static final int DESCRIPTION_FIELD_NUMBER = 2; private java.lang.Object description_; /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { code_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code.AUTH_FAILURE; description_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, code_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDescriptionBytes()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDescriptionBytes()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code com.google.protos.ipc.invalidation.ErrorMessage} * * <pre> * An error message that contains an enum for different types of failures with a * textual description of the failure (as the need arises new error codes will * be added to this message). * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage, Builder> implements com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessageOrBuilder { // Construct using com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); code_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code.AUTH_FAILURE; bitField0_ = (bitField0_ & ~0x00000001); description_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage getDefaultInstanceForType() { return com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance(); } public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage build() { com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage buildPartial() { com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage result = new com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.code_ = code_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.description_ = description_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage other) { if (other == com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.getDefaultInstance()) return this; if (other.hasCode()) { setCode(other.getCode()); } if (other.hasDescription()) { bitField0_ |= 0x00000002; description_ = other.description_; } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1; private com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code code_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code.AUTH_FAILURE; /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ public boolean hasCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ public com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code getCode() { return code_; } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ public Builder setCode(com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; code_ = value; return this; } /** * <code>optional .com.google.protos.ipc.invalidation.ErrorMessage.Code code = 1;</code> */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); code_ = com.google.protos.ipc.invalidation.ClientProtocol.ErrorMessage.Code.AUTH_FAILURE; return this; } // optional string description = 2; private java.lang.Object description_ = ""; /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; return this; } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); return this; } /** * <code>optional string description = 2;</code> * * <pre> * Textual description of the error * </pre> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ErrorMessage) } static { defaultInstance = new ErrorMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ErrorMessage) } static { } // @@protoc_insertion_point(outer_class_scope) }