// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: android_listener.proto
package com.google.protos.ipc.invalidation;
public final class AndroidListenerProtocol {
private AndroidListenerProtocol() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface AndroidListenerStateOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>
getRegistrationList();
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegistration(int index);
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
int getRegistrationCount();
// repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
java.util.List<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState>
getRetryRegistrationStateList();
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState getRetryRegistrationState(int index);
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
int getRetryRegistrationStateCount();
// optional bytes client_id = 3;
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
boolean hasClientId();
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
com.google.protobuf.ByteString getClientId();
// optional int32 request_code_seq_num = 4;
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
boolean hasRequestCodeSeqNum();
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
int getRequestCodeSeqNum();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidListenerState}
*
* <pre>
* Used to persist internal state between instantiations of Android listener
* objects.
* </pre>
*/
public static final class AndroidListenerState extends
com.google.protobuf.GeneratedMessageLite
implements AndroidListenerStateOrBuilder {
// Use AndroidListenerState.newBuilder() to construct.
private AndroidListenerState(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private AndroidListenerState(boolean noInit) {}
private static final AndroidListenerState defaultInstance;
public static AndroidListenerState getDefaultInstance() {
return defaultInstance;
}
public AndroidListenerState getDefaultInstanceForType() {
return defaultInstance;
}
private AndroidListenerState(
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.ObjectIdP>();
mutable_bitField0_ |= 0x00000001;
}
registration_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
retryRegistrationState_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState>();
mutable_bitField0_ |= 0x00000002;
}
retryRegistrationState_.add(input.readMessage(com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.PARSER, extensionRegistry));
break;
}
case 26: {
bitField0_ |= 0x00000001;
clientId_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000002;
requestCodeSeqNum_ = 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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
registration_ = java.util.Collections.unmodifiableList(registration_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
retryRegistrationState_ = java.util.Collections.unmodifiableList(retryRegistrationState_);
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<AndroidListenerState> PARSER =
new com.google.protobuf.AbstractParser<AndroidListenerState>() {
public AndroidListenerState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AndroidListenerState(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AndroidListenerState> getParserForType() {
return PARSER;
}
public interface RetryRegistrationStateOrBuilder
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>
* Identifier of the object for which there has been a failure.
* </pre>
*/
boolean hasObjectId();
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*
* <pre>
* Identifier of the object for which there has been a failure.
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId();
// optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
boolean hasExponentialBackoffState();
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
com.google.protos.ipc.invalidation.Client.ExponentialBackoffState getExponentialBackoffState();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState}
*
* <pre>
* When a registration request has failed, we track state for that object that
* allows retries to be delayed using exponential backoff.
* </pre>
*/
public static final class RetryRegistrationState extends
com.google.protobuf.GeneratedMessageLite
implements RetryRegistrationStateOrBuilder {
// Use RetryRegistrationState.newBuilder() to construct.
private RetryRegistrationState(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private RetryRegistrationState(boolean noInit) {}
private static final RetryRegistrationState defaultInstance;
public static RetryRegistrationState getDefaultInstance() {
return defaultInstance;
}
public RetryRegistrationState getDefaultInstanceForType() {
return defaultInstance;
}
private RetryRegistrationState(
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 18: {
com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = exponentialBackoffState_.toBuilder();
}
exponentialBackoffState_ = input.readMessage(com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exponentialBackoffState_);
exponentialBackoffState_ = 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<RetryRegistrationState> PARSER =
new com.google.protobuf.AbstractParser<RetryRegistrationState>() {
public RetryRegistrationState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RetryRegistrationState(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<RetryRegistrationState> 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>
* Identifier of the object for which there has been a failure.
* </pre>
*/
public boolean hasObjectId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*
* <pre>
* Identifier of the object for which there has been a failure.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() {
return objectId_;
}
// optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;
public static final int EXPONENTIAL_BACKOFF_STATE_FIELD_NUMBER = 2;
private com.google.protos.ipc.invalidation.Client.ExponentialBackoffState exponentialBackoffState_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public boolean hasExponentialBackoffState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public com.google.protos.ipc.invalidation.Client.ExponentialBackoffState getExponentialBackoffState() {
return exponentialBackoffState_;
}
private void initFields() {
objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
exponentialBackoffState_ = com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.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, objectId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, exponentialBackoffState_);
}
}
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
.computeMessageSize(2, exponentialBackoffState_);
}
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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState 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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState 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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState 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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState 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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState 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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState}
*
* <pre>
* When a registration request has failed, we track state for that object that
* allows retries to be delayed using exponential backoff.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState, Builder>
implements com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationStateOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.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);
exponentialBackoffState_ = com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState build() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState buildPartial() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState result = new com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState(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.exponentialBackoffState_ = exponentialBackoffState_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState other) {
if (other == com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.getDefaultInstance()) return this;
if (other.hasObjectId()) {
mergeObjectId(other.getObjectId());
}
if (other.hasExponentialBackoffState()) {
mergeExponentialBackoffState(other.getExponentialBackoffState());
}
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.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState) 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>
* Identifier of the object for which there has been a failure.
* </pre>
*/
public boolean hasObjectId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*
* <pre>
* Identifier of the object for which there has been a failure.
* </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>
* Identifier of the object for which there has been a failure.
* </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>
* Identifier of the object for which there has been a failure.
* </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>
* Identifier of the object for which there has been a failure.
* </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>
* Identifier of the object for which there has been a failure.
* </pre>
*/
public Builder clearObjectId() {
objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;
private com.google.protos.ipc.invalidation.Client.ExponentialBackoffState exponentialBackoffState_ = com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public boolean hasExponentialBackoffState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public com.google.protos.ipc.invalidation.Client.ExponentialBackoffState getExponentialBackoffState() {
return exponentialBackoffState_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public Builder setExponentialBackoffState(com.google.protos.ipc.invalidation.Client.ExponentialBackoffState value) {
if (value == null) {
throw new NullPointerException();
}
exponentialBackoffState_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public Builder setExponentialBackoffState(
com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.Builder builderForValue) {
exponentialBackoffState_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public Builder mergeExponentialBackoffState(com.google.protos.ipc.invalidation.Client.ExponentialBackoffState value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
exponentialBackoffState_ != com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.getDefaultInstance()) {
exponentialBackoffState_ =
com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.newBuilder(exponentialBackoffState_).mergeFrom(value).buildPartial();
} else {
exponentialBackoffState_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ExponentialBackoffState exponential_backoff_state = 2;</code>
*
* <pre>
* State of exponential backoff delay generator that is used to delay any
* registration retries for the object.
* </pre>
*/
public Builder clearExponentialBackoffState() {
exponentialBackoffState_ = com.google.protos.ipc.invalidation.Client.ExponentialBackoffState.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState)
}
static {
defaultInstance = new RetryRegistrationState(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState)
}
private int bitField0_;
// repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;
public static final int REGISTRATION_FIELD_NUMBER = 1;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> registration_;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegistrationList() {
return registration_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder>
getRegistrationOrBuilderList() {
return registration_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public int getRegistrationCount() {
return registration_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegistration(int index) {
return registration_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder getRegistrationOrBuilder(
int index) {
return registration_.get(index);
}
// repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;
public static final int RETRY_REGISTRATION_STATE_FIELD_NUMBER = 2;
private java.util.List<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState> retryRegistrationState_;
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public java.util.List<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState> getRetryRegistrationStateList() {
return retryRegistrationState_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public java.util.List<? extends com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationStateOrBuilder>
getRetryRegistrationStateOrBuilderList() {
return retryRegistrationState_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public int getRetryRegistrationStateCount() {
return retryRegistrationState_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState getRetryRegistrationState(int index) {
return retryRegistrationState_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationStateOrBuilder getRetryRegistrationStateOrBuilder(
int index) {
return retryRegistrationState_.get(index);
}
// optional bytes client_id = 3;
public static final int CLIENT_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString clientId_;
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
public boolean hasClientId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
public com.google.protobuf.ByteString getClientId() {
return clientId_;
}
// optional int32 request_code_seq_num = 4;
public static final int REQUEST_CODE_SEQ_NUM_FIELD_NUMBER = 4;
private int requestCodeSeqNum_;
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
public boolean hasRequestCodeSeqNum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
public int getRequestCodeSeqNum() {
return requestCodeSeqNum_;
}
private void initFields() {
registration_ = java.util.Collections.emptyList();
retryRegistrationState_ = java.util.Collections.emptyList();
clientId_ = com.google.protobuf.ByteString.EMPTY;
requestCodeSeqNum_ = 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();
for (int i = 0; i < registration_.size(); i++) {
output.writeMessage(1, registration_.get(i));
}
for (int i = 0; i < retryRegistrationState_.size(); i++) {
output.writeMessage(2, retryRegistrationState_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(3, clientId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(4, requestCodeSeqNum_);
}
}
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));
}
for (int i = 0; i < retryRegistrationState_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, retryRegistrationState_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, clientId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, requestCodeSeqNum_);
}
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.AndroidListenerProtocol.AndroidListenerState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState 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.AndroidListenerProtocol.AndroidListenerState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState 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.AndroidListenerProtocol.AndroidListenerState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState 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.AndroidListenerProtocol.AndroidListenerState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState 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.AndroidListenerProtocol.AndroidListenerState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState 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.AndroidListenerProtocol.AndroidListenerState prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidListenerState}
*
* <pre>
* Used to persist internal state between instantiations of Android listener
* objects.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState, Builder>
implements com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerStateOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.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);
retryRegistrationState_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
clientId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
requestCodeSeqNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState build() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState buildPartial() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState result = new com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
registration_ = java.util.Collections.unmodifiableList(registration_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.registration_ = registration_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
retryRegistrationState_ = java.util.Collections.unmodifiableList(retryRegistrationState_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.retryRegistrationState_ = retryRegistrationState_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000001;
}
result.clientId_ = clientId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
result.requestCodeSeqNum_ = requestCodeSeqNum_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState other) {
if (other == com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.getDefaultInstance()) return this;
if (!other.registration_.isEmpty()) {
if (registration_.isEmpty()) {
registration_ = other.registration_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegistrationIsMutable();
registration_.addAll(other.registration_);
}
}
if (!other.retryRegistrationState_.isEmpty()) {
if (retryRegistrationState_.isEmpty()) {
retryRegistrationState_ = other.retryRegistrationState_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.addAll(other.retryRegistrationState_);
}
}
if (other.hasClientId()) {
setClientId(other.getClientId());
}
if (other.hasRequestCodeSeqNum()) {
setRequestCodeSeqNum(other.getRequestCodeSeqNum());
}
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.AndroidListenerProtocol.AndroidListenerState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> registration_ =
java.util.Collections.emptyList();
private void ensureRegistrationIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
registration_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>(registration_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegistrationList() {
return java.util.Collections.unmodifiableList(registration_);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public int getRegistrationCount() {
return registration_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegistration(int index) {
return registration_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder setRegistration(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistrationIsMutable();
registration_.set(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder setRegistration(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureRegistrationIsMutable();
registration_.set(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder addRegistration(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistrationIsMutable();
registration_.add(value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder addRegistration(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistrationIsMutable();
registration_.add(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder addRegistration(
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureRegistrationIsMutable();
registration_.add(builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder addRegistration(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureRegistrationIsMutable();
registration_.add(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder addAllRegistration(
java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> values) {
ensureRegistrationIsMutable();
super.addAll(values, registration_);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder clearRegistration() {
registration_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registration = 1;</code>
*
* <pre>
* Set of object ids tracking the application's desired registrations.
* </pre>
*/
public Builder removeRegistration(int index) {
ensureRegistrationIsMutable();
registration_.remove(index);
return this;
}
// repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;
private java.util.List<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState> retryRegistrationState_ =
java.util.Collections.emptyList();
private void ensureRetryRegistrationStateIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
retryRegistrationState_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState>(retryRegistrationState_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public java.util.List<com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState> getRetryRegistrationStateList() {
return java.util.Collections.unmodifiableList(retryRegistrationState_);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public int getRetryRegistrationStateCount() {
return retryRegistrationState_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState getRetryRegistrationState(int index) {
return retryRegistrationState_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder setRetryRegistrationState(
int index, com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState value) {
if (value == null) {
throw new NullPointerException();
}
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.set(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder setRetryRegistrationState(
int index, com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.Builder builderForValue) {
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.set(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder addRetryRegistrationState(com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState value) {
if (value == null) {
throw new NullPointerException();
}
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.add(value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder addRetryRegistrationState(
int index, com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState value) {
if (value == null) {
throw new NullPointerException();
}
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.add(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder addRetryRegistrationState(
com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.Builder builderForValue) {
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.add(builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder addRetryRegistrationState(
int index, com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState.Builder builderForValue) {
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.add(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder addAllRetryRegistrationState(
java.lang.Iterable<? extends com.google.protos.ipc.invalidation.AndroidListenerProtocol.AndroidListenerState.RetryRegistrationState> values) {
ensureRetryRegistrationStateIsMutable();
super.addAll(values, retryRegistrationState_);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder clearRetryRegistrationState() {
retryRegistrationState_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.AndroidListenerState.RetryRegistrationState retry_registration_state = 2;</code>
*
* <pre>
* Set of states for registrations retries. When there is a transient
* registration failure relative to an object, an entry is added. If
* registration is successful or the user gives up on the request, the entry
* is removed.
* </pre>
*/
public Builder removeRetryRegistrationState(int index) {
ensureRetryRegistrationStateIsMutable();
retryRegistrationState_.remove(index);
return this;
}
// optional bytes client_id = 3;
private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
public boolean hasClientId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
public com.google.protobuf.ByteString getClientId() {
return clientId_;
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
public Builder setClientId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
clientId_ = value;
return this;
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated. This client ID
* is randomly generated by the Android listener whenever a new client is
* started and has no relationship to 's application client ID.
* </pre>
*/
public Builder clearClientId() {
bitField0_ = (bitField0_ & ~0x00000004);
clientId_ = getDefaultInstance().getClientId();
return this;
}
// optional int32 request_code_seq_num = 4;
private int requestCodeSeqNum_ ;
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
public boolean hasRequestCodeSeqNum() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
public int getRequestCodeSeqNum() {
return requestCodeSeqNum_;
}
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
public Builder setRequestCodeSeqNum(int value) {
bitField0_ |= 0x00000008;
requestCodeSeqNum_ = value;
return this;
}
/**
* <code>optional int32 request_code_seq_num = 4;</code>
*
* <pre>
* Sequence number for alarm manager request codes. Sequence numbers are
* assigned serially for each distinct client_id. This value indicates
* the request code used for the last request.
* </pre>
*/
public Builder clearRequestCodeSeqNum() {
bitField0_ = (bitField0_ & ~0x00000008);
requestCodeSeqNum_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidListenerState)
}
static {
defaultInstance = new AndroidListenerState(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidListenerState)
}
public interface RegistrationCommandOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional bool is_register = 1;
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
boolean hasIsRegister();
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
boolean getIsRegister();
// repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>
getObjectIdList();
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId(int index);
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
int getObjectIdCount();
// optional bytes client_id = 3;
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
boolean hasClientId();
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
com.google.protobuf.ByteString getClientId();
// optional bool is_delayed = 4;
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
boolean hasIsDelayed();
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
boolean getIsDelayed();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationCommand}
*
* <pre>
* Represents a command that registers or unregisters a set of objects. The
* command may be initiated by the application or by the Android listener when
* there is a registration failure.
* </pre>
*/
public static final class RegistrationCommand extends
com.google.protobuf.GeneratedMessageLite
implements RegistrationCommandOrBuilder {
// Use RegistrationCommand.newBuilder() to construct.
private RegistrationCommand(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private RegistrationCommand(boolean noInit) {}
private static final RegistrationCommand defaultInstance;
public static RegistrationCommand getDefaultInstance() {
return defaultInstance;
}
public RegistrationCommand getDefaultInstanceForType() {
return defaultInstance;
}
private RegistrationCommand(
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;
isRegister_ = input.readBool();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
objectId_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>();
mutable_bitField0_ |= 0x00000002;
}
objectId_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry));
break;
}
case 26: {
bitField0_ |= 0x00000002;
clientId_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000004;
isDelayed_ = 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 {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
objectId_ = java.util.Collections.unmodifiableList(objectId_);
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<RegistrationCommand> PARSER =
new com.google.protobuf.AbstractParser<RegistrationCommand>() {
public RegistrationCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegistrationCommand(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<RegistrationCommand> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool is_register = 1;
public static final int IS_REGISTER_FIELD_NUMBER = 1;
private boolean isRegister_;
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
public boolean hasIsRegister() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
public boolean getIsRegister() {
return isRegister_;
}
// repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;
public static final int OBJECT_ID_FIELD_NUMBER = 2;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> objectId_;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getObjectIdList() {
return objectId_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder>
getObjectIdOrBuilderList() {
return objectId_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public int getObjectIdCount() {
return objectId_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId(int index) {
return objectId_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder getObjectIdOrBuilder(
int index) {
return objectId_.get(index);
}
// optional bytes client_id = 3;
public static final int CLIENT_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString clientId_;
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
public boolean hasClientId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
public com.google.protobuf.ByteString getClientId() {
return clientId_;
}
// optional bool is_delayed = 4;
public static final int IS_DELAYED_FIELD_NUMBER = 4;
private boolean isDelayed_;
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
public boolean hasIsDelayed() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
public boolean getIsDelayed() {
return isDelayed_;
}
private void initFields() {
isRegister_ = false;
objectId_ = java.util.Collections.emptyList();
clientId_ = com.google.protobuf.ByteString.EMPTY;
isDelayed_ = false;
}
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.writeBool(1, isRegister_);
}
for (int i = 0; i < objectId_.size(); i++) {
output.writeMessage(2, objectId_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(3, clientId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(4, isDelayed_);
}
}
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
.computeBoolSize(1, isRegister_);
}
for (int i = 0; i < objectId_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, objectId_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, clientId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isDelayed_);
}
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.AndroidListenerProtocol.RegistrationCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand 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.AndroidListenerProtocol.RegistrationCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand 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.AndroidListenerProtocol.RegistrationCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand 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.AndroidListenerProtocol.RegistrationCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand 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.AndroidListenerProtocol.RegistrationCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand 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.AndroidListenerProtocol.RegistrationCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.RegistrationCommand}
*
* <pre>
* Represents a command that registers or unregisters a set of objects. The
* command may be initiated by the application or by the Android listener when
* there is a registration failure.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand, Builder>
implements com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommandOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
isRegister_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
objectId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
clientId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
isDelayed_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand build() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand buildPartial() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand result = new com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.isRegister_ = isRegister_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
objectId_ = java.util.Collections.unmodifiableList(objectId_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.objectId_ = objectId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.clientId_ = clientId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.isDelayed_ = isDelayed_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand other) {
if (other == com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand.getDefaultInstance()) return this;
if (other.hasIsRegister()) {
setIsRegister(other.getIsRegister());
}
if (!other.objectId_.isEmpty()) {
if (objectId_.isEmpty()) {
objectId_ = other.objectId_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureObjectIdIsMutable();
objectId_.addAll(other.objectId_);
}
}
if (other.hasClientId()) {
setClientId(other.getClientId());
}
if (other.hasIsDelayed()) {
setIsDelayed(other.getIsDelayed());
}
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.AndroidListenerProtocol.RegistrationCommand parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidListenerProtocol.RegistrationCommand) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool is_register = 1;
private boolean isRegister_ ;
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
public boolean hasIsRegister() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
public boolean getIsRegister() {
return isRegister_;
}
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
public Builder setIsRegister(boolean value) {
bitField0_ |= 0x00000001;
isRegister_ = value;
return this;
}
/**
* <code>optional bool is_register = 1;</code>
*
* <pre>
* Indicates whether this is a register command (when true) or unregister
* (when false) request.
* </pre>
*/
public Builder clearIsRegister() {
bitField0_ = (bitField0_ & ~0x00000001);
isRegister_ = false;
return this;
}
// repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> objectId_ =
java.util.Collections.emptyList();
private void ensureObjectIdIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
objectId_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>(objectId_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getObjectIdList() {
return java.util.Collections.unmodifiableList(objectId_);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public int getObjectIdCount() {
return objectId_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId(int index) {
return objectId_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder setObjectId(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIdIsMutable();
objectId_.set(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder setObjectId(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureObjectIdIsMutable();
objectId_.set(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder addObjectId(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIdIsMutable();
objectId_.add(value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder addObjectId(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIdIsMutable();
objectId_.add(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder addObjectId(
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureObjectIdIsMutable();
objectId_.add(builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder addObjectId(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureObjectIdIsMutable();
objectId_.add(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder addAllObjectId(
java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> values) {
ensureObjectIdIsMutable();
super.addAll(values, objectId_);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder clearObjectId() {
objectId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP object_id = 2;</code>
*
* <pre>
* Identifies the objects to register or unregister.
* </pre>
*/
public Builder removeObjectId(int index) {
ensureObjectIdIsMutable();
objectId_.remove(index);
return this;
}
// optional bytes client_id = 3;
private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
public boolean hasClientId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
public com.google.protobuf.ByteString getClientId() {
return clientId_;
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
public Builder setClientId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
clientId_ = value;
return this;
}
/**
* <code>optional bytes client_id = 3;</code>
*
* <pre>
* Identifier of client with which this listener is associated.
* </pre>
*/
public Builder clearClientId() {
bitField0_ = (bitField0_ & ~0x00000004);
clientId_ = getDefaultInstance().getClientId();
return this;
}
// optional bool is_delayed = 4;
private boolean isDelayed_ ;
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
public boolean hasIsDelayed() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
public boolean getIsDelayed() {
return isDelayed_;
}
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
public Builder setIsDelayed(boolean value) {
bitField0_ |= 0x00000008;
isDelayed_ = value;
return this;
}
/**
* <code>optional bool is_delayed = 4;</code>
*
* <pre>
* Indicates whether this is a delayed registration command. When a
* registration command intent is handled by the Android listener, this field
* is used to determine whether the command has been delayed yet or not. If it
* has not already been delayed, the listener may choose to defer the command
* until later.
* </pre>
*/
public Builder clearIsDelayed() {
bitField0_ = (bitField0_ & ~0x00000008);
isDelayed_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.RegistrationCommand)
}
static {
defaultInstance = new RegistrationCommand(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.RegistrationCommand)
}
public interface StartCommandOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional int32 client_type = 1;
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* Type of client to start.
* </pre>
*/
boolean hasClientType();
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* Type of client to start.
* </pre>
*/
int getClientType();
// optional bytes client_name = 2;
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* Name of client to start.
* </pre>
*/
boolean hasClientName();
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* Name of client to start.
* </pre>
*/
com.google.protobuf.ByteString getClientName();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.StartCommand}
*
* <pre>
* Represents a command that starts an Android invalidation client.
* </pre>
*/
public static final class StartCommand extends
com.google.protobuf.GeneratedMessageLite
implements StartCommandOrBuilder {
// Use StartCommand.newBuilder() to construct.
private StartCommand(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private StartCommand(boolean noInit) {}
private static final StartCommand defaultInstance;
public static StartCommand getDefaultInstance() {
return defaultInstance;
}
public StartCommand getDefaultInstanceForType() {
return defaultInstance;
}
private StartCommand(
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<StartCommand> PARSER =
new com.google.protobuf.AbstractParser<StartCommand>() {
public StartCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartCommand(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<StartCommand> 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>
* Type of client to start.
* </pre>
*/
public boolean hasClientType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* Type of client to start.
* </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>
* Name of client to start.
* </pre>
*/
public boolean hasClientName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* Name of client to start.
* </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.AndroidListenerProtocol.StartCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand 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.AndroidListenerProtocol.StartCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand 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.AndroidListenerProtocol.StartCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand 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.AndroidListenerProtocol.StartCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand 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.AndroidListenerProtocol.StartCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand 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.AndroidListenerProtocol.StartCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.StartCommand}
*
* <pre>
* Represents a command that starts an Android invalidation client.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand, Builder>
implements com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommandOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand.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.AndroidListenerProtocol.StartCommand getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand build() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand buildPartial() {
com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand result = new com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand(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.AndroidListenerProtocol.StartCommand other) {
if (other == com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand.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.AndroidListenerProtocol.StartCommand parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidListenerProtocol.StartCommand) 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 client to start.
* </pre>
*/
public boolean hasClientType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* Type of client to start.
* </pre>
*/
public int getClientType() {
return clientType_;
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* Type of client to start.
* </pre>
*/
public Builder setClientType(int value) {
bitField0_ |= 0x00000001;
clientType_ = value;
return this;
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* Type of client to start.
* </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>
* Name of client to start.
* </pre>
*/
public boolean hasClientName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* Name of client to start.
* </pre>
*/
public com.google.protobuf.ByteString getClientName() {
return clientName_;
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* Name of client to start.
* </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>
* Name of client to start.
* </pre>
*/
public Builder clearClientName() {
bitField0_ = (bitField0_ & ~0x00000002);
clientName_ = getDefaultInstance().getClientName();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.StartCommand)
}
static {
defaultInstance = new StartCommand(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.StartCommand)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}