// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: android_service.proto
package com.google.protos.ipc.invalidation;
public final class AndroidService {
private AndroidService() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface ClientDowncallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional int64 serial = 1;
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
boolean hasSerial();
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
long getSerial();
// optional .com.google.protos.ipc.invalidation.Version version = 2;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
boolean hasVersion();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion();
// optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
boolean hasStart();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall getStart();
// optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
boolean hasStop();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall getStop();
// optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
boolean hasAck();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall getAck();
// optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
boolean hasRegistrations();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall getRegistrations();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall}
*/
public static final class ClientDowncall extends
com.google.protobuf.GeneratedMessageLite
implements ClientDowncallOrBuilder {
// Use ClientDowncall.newBuilder() to construct.
private ClientDowncall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ClientDowncall(boolean noInit) {}
private static final ClientDowncall defaultInstance;
public static ClientDowncall getDefaultInstance() {
return defaultInstance;
}
public ClientDowncall getDefaultInstanceForType() {
return defaultInstance;
}
private ClientDowncall(
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;
serial_ = input.readInt64();
break;
}
case 18: {
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = start_.toBuilder();
}
start_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(start_);
start_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = stop_.toBuilder();
}
stop_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stop_);
stop_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = ack_.toBuilder();
}
ack_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ack_);
ack_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = registrations_.toBuilder();
}
registrations_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(registrations_);
registrations_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<ClientDowncall> PARSER =
new com.google.protobuf.AbstractParser<ClientDowncall>() {
public ClientDowncall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientDowncall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ClientDowncall> getParserForType() {
return PARSER;
}
public interface StartDowncallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall}
*/
public static final class StartDowncall extends
com.google.protobuf.GeneratedMessageLite
implements StartDowncallOrBuilder {
// Use StartDowncall.newBuilder() to construct.
private StartDowncall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private StartDowncall(boolean noInit) {}
private static final StartDowncall defaultInstance;
public static StartDowncall getDefaultInstance() {
return defaultInstance;
}
public StartDowncall getDefaultInstanceForType() {
return defaultInstance;
}
private StartDowncall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<StartDowncall> PARSER =
new com.google.protobuf.AbstractParser<StartDowncall>() {
public StartDowncall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartDowncall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<StartDowncall> getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall 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.AndroidService.ClientDowncall.StartDowncall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall 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.AndroidService.ClientDowncall.StartDowncall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall 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.AndroidService.ClientDowncall.StartDowncall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall 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.AndroidService.ClientDowncall.StartDowncall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall 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.AndroidService.ClientDowncall.StartDowncall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall build() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall result = new com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall(this);
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance()) return this;
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall)
}
static {
defaultInstance = new StartDowncall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall)
}
public interface StopDowncallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall}
*/
public static final class StopDowncall extends
com.google.protobuf.GeneratedMessageLite
implements StopDowncallOrBuilder {
// Use StopDowncall.newBuilder() to construct.
private StopDowncall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private StopDowncall(boolean noInit) {}
private static final StopDowncall defaultInstance;
public static StopDowncall getDefaultInstance() {
return defaultInstance;
}
public StopDowncall getDefaultInstanceForType() {
return defaultInstance;
}
private StopDowncall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<StopDowncall> PARSER =
new com.google.protobuf.AbstractParser<StopDowncall>() {
public StopDowncall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StopDowncall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<StopDowncall> getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall 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.AndroidService.ClientDowncall.StopDowncall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall 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.AndroidService.ClientDowncall.StopDowncall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall 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.AndroidService.ClientDowncall.StopDowncall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall 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.AndroidService.ClientDowncall.StopDowncall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall 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.AndroidService.ClientDowncall.StopDowncall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall build() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall result = new com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall(this);
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance()) return this;
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall)
}
static {
defaultInstance = new StopDowncall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall)
}
public interface AckDowncallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional bytes ack_handle = 1;
/**
* <code>optional bytes ack_handle = 1;</code>
*/
boolean hasAckHandle();
/**
* <code>optional bytes ack_handle = 1;</code>
*/
com.google.protobuf.ByteString getAckHandle();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall}
*/
public static final class AckDowncall extends
com.google.protobuf.GeneratedMessageLite
implements AckDowncallOrBuilder {
// Use AckDowncall.newBuilder() to construct.
private AckDowncall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private AckDowncall(boolean noInit) {}
private static final AckDowncall defaultInstance;
public static AckDowncall getDefaultInstance() {
return defaultInstance;
}
public AckDowncall getDefaultInstanceForType() {
return defaultInstance;
}
private AckDowncall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
ackHandle_ = 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<AckDowncall> PARSER =
new com.google.protobuf.AbstractParser<AckDowncall>() {
public AckDowncall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AckDowncall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AckDowncall> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes ack_handle = 1;
public static final int ACK_HANDLE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ackHandle_;
/**
* <code>optional bytes ack_handle = 1;</code>
*/
public boolean hasAckHandle() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes ack_handle = 1;</code>
*/
public com.google.protobuf.ByteString getAckHandle() {
return ackHandle_;
}
private void initFields() {
ackHandle_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, ackHandle_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ackHandle_);
}
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.AndroidService.ClientDowncall.AckDowncall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall 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.AndroidService.ClientDowncall.AckDowncall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall 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.AndroidService.ClientDowncall.AckDowncall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall 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.AndroidService.ClientDowncall.AckDowncall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall 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.AndroidService.ClientDowncall.AckDowncall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall 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.AndroidService.ClientDowncall.AckDowncall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
ackHandle_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall build() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall result = new com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ackHandle_ = ackHandle_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance()) return this;
if (other.hasAckHandle()) {
setAckHandle(other.getAckHandle());
}
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.AndroidService.ClientDowncall.AckDowncall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes ack_handle = 1;
private com.google.protobuf.ByteString ackHandle_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes ack_handle = 1;</code>
*/
public boolean hasAckHandle() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes ack_handle = 1;</code>
*/
public com.google.protobuf.ByteString getAckHandle() {
return ackHandle_;
}
/**
* <code>optional bytes ack_handle = 1;</code>
*/
public Builder setAckHandle(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ackHandle_ = value;
return this;
}
/**
* <code>optional bytes ack_handle = 1;</code>
*/
public Builder clearAckHandle() {
bitField0_ = (bitField0_ & ~0x00000001);
ackHandle_ = getDefaultInstance().getAckHandle();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall)
}
static {
defaultInstance = new AckDowncall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall)
}
public interface RegistrationDowncallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>
getRegistrationsList();
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegistrations(int index);
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
int getRegistrationsCount();
// repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>
getUnregistrationsList();
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getUnregistrations(int index);
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
int getUnregistrationsCount();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall}
*/
public static final class RegistrationDowncall extends
com.google.protobuf.GeneratedMessageLite
implements RegistrationDowncallOrBuilder {
// Use RegistrationDowncall.newBuilder() to construct.
private RegistrationDowncall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private RegistrationDowncall(boolean noInit) {}
private static final RegistrationDowncall defaultInstance;
public static RegistrationDowncall getDefaultInstance() {
return defaultInstance;
}
public RegistrationDowncall getDefaultInstanceForType() {
return defaultInstance;
}
private RegistrationDowncall(
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)) {
registrations_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>();
mutable_bitField0_ |= 0x00000001;
}
registrations_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
unregistrations_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>();
mutable_bitField0_ |= 0x00000002;
}
unregistrations_.add(input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
registrations_ = java.util.Collections.unmodifiableList(registrations_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
unregistrations_ = java.util.Collections.unmodifiableList(unregistrations_);
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<RegistrationDowncall> PARSER =
new com.google.protobuf.AbstractParser<RegistrationDowncall>() {
public RegistrationDowncall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegistrationDowncall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<RegistrationDowncall> getParserForType() {
return PARSER;
}
// repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;
public static final int REGISTRATIONS_FIELD_NUMBER = 1;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> registrations_;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegistrationsList() {
return registrations_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder>
getRegistrationsOrBuilderList() {
return registrations_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public int getRegistrationsCount() {
return registrations_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegistrations(int index) {
return registrations_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder getRegistrationsOrBuilder(
int index) {
return registrations_.get(index);
}
// repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;
public static final int UNREGISTRATIONS_FIELD_NUMBER = 2;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> unregistrations_;
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getUnregistrationsList() {
return unregistrations_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public java.util.List<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder>
getUnregistrationsOrBuilderList() {
return unregistrations_;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public int getUnregistrationsCount() {
return unregistrations_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getUnregistrations(int index) {
return unregistrations_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdPOrBuilder getUnregistrationsOrBuilder(
int index) {
return unregistrations_.get(index);
}
private void initFields() {
registrations_ = java.util.Collections.emptyList();
unregistrations_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < registrations_.size(); i++) {
output.writeMessage(1, registrations_.get(i));
}
for (int i = 0; i < unregistrations_.size(); i++) {
output.writeMessage(2, unregistrations_.get(i));
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < registrations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, registrations_.get(i));
}
for (int i = 0; i < unregistrations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, unregistrations_.get(i));
}
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall 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.AndroidService.ClientDowncall.RegistrationDowncall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall 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.AndroidService.ClientDowncall.RegistrationDowncall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall 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.AndroidService.ClientDowncall.RegistrationDowncall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall 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.AndroidService.ClientDowncall.RegistrationDowncall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall 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.AndroidService.ClientDowncall.RegistrationDowncall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
registrations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
unregistrations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall build() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall result = new com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
registrations_ = java.util.Collections.unmodifiableList(registrations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.registrations_ = registrations_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
unregistrations_ = java.util.Collections.unmodifiableList(unregistrations_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.unregistrations_ = unregistrations_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.getDefaultInstance()) return this;
if (!other.registrations_.isEmpty()) {
if (registrations_.isEmpty()) {
registrations_ = other.registrations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegistrationsIsMutable();
registrations_.addAll(other.registrations_);
}
}
if (!other.unregistrations_.isEmpty()) {
if (unregistrations_.isEmpty()) {
unregistrations_ = other.unregistrations_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUnregistrationsIsMutable();
unregistrations_.addAll(other.unregistrations_);
}
}
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.AndroidService.ClientDowncall.RegistrationDowncall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> registrations_ =
java.util.Collections.emptyList();
private void ensureRegistrationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
registrations_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>(registrations_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getRegistrationsList() {
return java.util.Collections.unmodifiableList(registrations_);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public int getRegistrationsCount() {
return registrations_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getRegistrations(int index) {
return registrations_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder setRegistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistrationsIsMutable();
registrations_.set(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder setRegistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureRegistrationsIsMutable();
registrations_.set(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder addRegistrations(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistrationsIsMutable();
registrations_.add(value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder addRegistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistrationsIsMutable();
registrations_.add(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder addRegistrations(
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureRegistrationsIsMutable();
registrations_.add(builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder addRegistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureRegistrationsIsMutable();
registrations_.add(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder addAllRegistrations(
java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> values) {
ensureRegistrationsIsMutable();
super.addAll(values, registrations_);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder clearRegistrations() {
registrations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP registrations = 1;</code>
*/
public Builder removeRegistrations(int index) {
ensureRegistrationsIsMutable();
registrations_.remove(index);
return this;
}
// repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;
private java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> unregistrations_ =
java.util.Collections.emptyList();
private void ensureUnregistrationsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
unregistrations_ = new java.util.ArrayList<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP>(unregistrations_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public java.util.List<com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> getUnregistrationsList() {
return java.util.Collections.unmodifiableList(unregistrations_);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public int getUnregistrationsCount() {
return unregistrations_.size();
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getUnregistrations(int index) {
return unregistrations_.get(index);
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder setUnregistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnregistrationsIsMutable();
unregistrations_.set(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder setUnregistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureUnregistrationsIsMutable();
unregistrations_.set(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder addUnregistrations(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnregistrationsIsMutable();
unregistrations_.add(value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder addUnregistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnregistrationsIsMutable();
unregistrations_.add(index, value);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder addUnregistrations(
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureUnregistrationsIsMutable();
unregistrations_.add(builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder addUnregistrations(
int index, com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
ensureUnregistrationsIsMutable();
unregistrations_.add(index, builderForValue.build());
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder addAllUnregistrations(
java.lang.Iterable<? extends com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP> values) {
ensureUnregistrationsIsMutable();
super.addAll(values, unregistrations_);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder clearUnregistrations() {
unregistrations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>repeated .com.google.protos.ipc.invalidation.ObjectIdP unregistrations = 2;</code>
*/
public Builder removeUnregistrations(int index) {
ensureUnregistrationsIsMutable();
unregistrations_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall)
}
static {
defaultInstance = new RegistrationDowncall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall)
}
private int bitField0_;
// optional int64 serial = 1;
public static final int SERIAL_FIELD_NUMBER = 1;
private long serial_;
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
public boolean hasSerial() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
public long getSerial() {
return serial_;
}
// optional .com.google.protos.ipc.invalidation.Version version = 2;
public static final int VERSION_FIELD_NUMBER = 2;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;
public static final int START_FIELD_NUMBER = 3;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall start_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall getStart() {
return start_;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;
public static final int STOP_FIELD_NUMBER = 4;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall stop_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall getStop() {
return stop_;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;
public static final int ACK_FIELD_NUMBER = 5;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall ack_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public boolean hasAck() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall getAck() {
return ack_;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;
public static final int REGISTRATIONS_FIELD_NUMBER = 6;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall registrations_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public boolean hasRegistrations() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall getRegistrations() {
return registrations_;
}
private void initFields() {
serial_ = 0L;
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
start_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance();
stop_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance();
ack_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance();
registrations_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.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.writeInt64(1, serial_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, start_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, stop_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, ack_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, registrations_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, serial_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, start_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, stop_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, ack_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, registrations_);
}
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.AndroidService.ClientDowncall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall 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.AndroidService.ClientDowncall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall 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.AndroidService.ClientDowncall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall 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.AndroidService.ClientDowncall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall 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.AndroidService.ClientDowncall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ClientDowncall 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.AndroidService.ClientDowncall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ClientDowncall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ClientDowncallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
serial_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
start_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
stop_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
ack_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
registrations_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall build() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall result = new com.google.protos.ipc.invalidation.AndroidService.ClientDowncall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.serial_ = serial_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.start_ = start_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.stop_ = stop_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.ack_ = ack_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.registrations_ = registrations_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.getDefaultInstance()) return this;
if (other.hasSerial()) {
setSerial(other.getSerial());
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasStart()) {
mergeStart(other.getStart());
}
if (other.hasStop()) {
mergeStop(other.getStop());
}
if (other.hasAck()) {
mergeAck(other.getAck());
}
if (other.hasRegistrations()) {
mergeRegistrations(other.getRegistrations());
}
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.AndroidService.ClientDowncall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ClientDowncall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 serial = 1;
private long serial_ ;
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
public boolean hasSerial() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
public long getSerial() {
return serial_;
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
public Builder setSerial(long value) {
bitField0_ |= 0x00000001;
serial_ = value;
return this;
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering.
* TODO: use.
* </pre>
*/
public Builder clearSerial() {
bitField0_ = (bitField0_ & ~0x00000001);
serial_ = 0L;
return this;
}
// optional .com.google.protos.ipc.invalidation.Version version = 2;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder setVersion(
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) {
version_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) {
version_ =
com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder clearVersion() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall start_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall getStart() {
return start_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public Builder setStart(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall value) {
if (value == null) {
throw new NullPointerException();
}
start_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public Builder setStart(
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.Builder builderForValue) {
start_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public Builder mergeStart(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
start_ != com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance()) {
start_ =
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.newBuilder(start_).mergeFrom(value).buildPartial();
} else {
start_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StartDowncall start = 3;</code>
*
* <pre>
* Exactly one of the following fields must be set.
* </pre>
*/
public Builder clearStart() {
start_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StartDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall stop_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall getStop() {
return stop_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public Builder setStop(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall value) {
if (value == null) {
throw new NullPointerException();
}
stop_ = value;
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public Builder setStop(
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.Builder builderForValue) {
stop_ = builderForValue.build();
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public Builder mergeStop(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall value) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
stop_ != com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance()) {
stop_ =
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.newBuilder(stop_).mergeFrom(value).buildPartial();
} else {
stop_ = value;
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.StopDowncall stop = 4;</code>
*/
public Builder clearStop() {
stop_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.StopDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall ack_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public boolean hasAck() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall getAck() {
return ack_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public Builder setAck(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall value) {
if (value == null) {
throw new NullPointerException();
}
ack_ = value;
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public Builder setAck(
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.Builder builderForValue) {
ack_ = builderForValue.build();
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public Builder mergeAck(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall value) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
ack_ != com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance()) {
ack_ =
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.newBuilder(ack_).mergeFrom(value).buildPartial();
} else {
ack_ = value;
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.AckDowncall ack = 5;</code>
*/
public Builder clearAck() {
ack_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.AckDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
// optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;
private com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall registrations_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public boolean hasRegistrations() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall getRegistrations() {
return registrations_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public Builder setRegistrations(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall value) {
if (value == null) {
throw new NullPointerException();
}
registrations_ = value;
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public Builder setRegistrations(
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.Builder builderForValue) {
registrations_ = builderForValue.build();
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public Builder mergeRegistrations(com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall value) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
registrations_ != com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.getDefaultInstance()) {
registrations_ =
com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.newBuilder(registrations_).mergeFrom(value).buildPartial();
} else {
registrations_ = value;
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientDowncall.RegistrationDowncall registrations = 6;</code>
*/
public Builder clearRegistrations() {
registrations_ = com.google.protos.ipc.invalidation.AndroidService.ClientDowncall.RegistrationDowncall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ClientDowncall)
}
static {
defaultInstance = new ClientDowncall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ClientDowncall)
}
public interface InternalDowncallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional .com.google.protos.ipc.invalidation.Version version = 1;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
boolean hasVersion();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion();
// optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
boolean hasServerMessage();
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage getServerMessage();
// optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
boolean hasNetworkStatus();
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus getNetworkStatus();
// optional bool network_addr_change = 4;
/**
* <code>optional bool network_addr_change = 4;</code>
*/
boolean hasNetworkAddrChange();
/**
* <code>optional bool network_addr_change = 4;</code>
*/
boolean getNetworkAddrChange();
// optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
boolean hasCreateClient();
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient getCreateClient();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall}
*
* <pre>
* Internal (non-public) call from application to Ticl.
* </pre>
*/
public static final class InternalDowncall extends
com.google.protobuf.GeneratedMessageLite
implements InternalDowncallOrBuilder {
// Use InternalDowncall.newBuilder() to construct.
private InternalDowncall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private InternalDowncall(boolean noInit) {}
private static final InternalDowncall defaultInstance;
public static InternalDowncall getDefaultInstance() {
return defaultInstance;
}
public InternalDowncall getDefaultInstanceForType() {
return defaultInstance;
}
private InternalDowncall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = serverMessage_.toBuilder();
}
serverMessage_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(serverMessage_);
serverMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = networkStatus_.toBuilder();
}
networkStatus_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(networkStatus_);
networkStatus_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
networkAddrChange_ = input.readBool();
break;
}
case 42: {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = createClient_.toBuilder();
}
createClient_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createClient_);
createClient_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
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<InternalDowncall> PARSER =
new com.google.protobuf.AbstractParser<InternalDowncall>() {
public InternalDowncall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InternalDowncall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<InternalDowncall> getParserForType() {
return PARSER;
}
public interface ServerMessageOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional bytes data = 1;
/**
* <code>optional bytes data = 1;</code>
*/
boolean hasData();
/**
* <code>optional bytes data = 1;</code>
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage}
*/
public static final class ServerMessage extends
com.google.protobuf.GeneratedMessageLite
implements ServerMessageOrBuilder {
// Use ServerMessage.newBuilder() to construct.
private ServerMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ServerMessage(boolean noInit) {}
private static final ServerMessage defaultInstance;
public static ServerMessage getDefaultInstance() {
return defaultInstance;
}
public ServerMessage getDefaultInstanceForType() {
return defaultInstance;
}
private ServerMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
data_ = 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<ServerMessage> PARSER =
new com.google.protobuf.AbstractParser<ServerMessage>() {
public ServerMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServerMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ServerMessage> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes data = 1;
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* <code>optional bytes data = 1;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes data = 1;</code>
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, data_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
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.AndroidService.InternalDowncall.ServerMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage 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.AndroidService.InternalDowncall.ServerMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage 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.AndroidService.InternalDowncall.ServerMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage 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.AndroidService.InternalDowncall.ServerMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage 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.AndroidService.InternalDowncall.ServerMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage 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.AndroidService.InternalDowncall.ServerMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessageOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage build() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage result = new com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance()) return this;
if (other.hasData()) {
setData(other.getData());
}
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.AndroidService.InternalDowncall.ServerMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes data = 1;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes data = 1;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes data = 1;</code>
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* <code>optional bytes data = 1;</code>
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
data_ = value;
return this;
}
/**
* <code>optional bytes data = 1;</code>
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000001);
data_ = getDefaultInstance().getData();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage)
}
static {
defaultInstance = new ServerMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage)
}
public interface NetworkStatusOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional bool is_online = 1;
/**
* <code>optional bool is_online = 1;</code>
*/
boolean hasIsOnline();
/**
* <code>optional bool is_online = 1;</code>
*/
boolean getIsOnline();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus}
*/
public static final class NetworkStatus extends
com.google.protobuf.GeneratedMessageLite
implements NetworkStatusOrBuilder {
// Use NetworkStatus.newBuilder() to construct.
private NetworkStatus(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private NetworkStatus(boolean noInit) {}
private static final NetworkStatus defaultInstance;
public static NetworkStatus getDefaultInstance() {
return defaultInstance;
}
public NetworkStatus getDefaultInstanceForType() {
return defaultInstance;
}
private NetworkStatus(
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;
isOnline_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<NetworkStatus> PARSER =
new com.google.protobuf.AbstractParser<NetworkStatus>() {
public NetworkStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkStatus(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<NetworkStatus> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool is_online = 1;
public static final int IS_ONLINE_FIELD_NUMBER = 1;
private boolean isOnline_;
/**
* <code>optional bool is_online = 1;</code>
*/
public boolean hasIsOnline() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool is_online = 1;</code>
*/
public boolean getIsOnline() {
return isOnline_;
}
private void initFields() {
isOnline_ = 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, isOnline_);
}
}
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, isOnline_);
}
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.AndroidService.InternalDowncall.NetworkStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus 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.AndroidService.InternalDowncall.NetworkStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus 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.AndroidService.InternalDowncall.NetworkStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus 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.AndroidService.InternalDowncall.NetworkStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus 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.AndroidService.InternalDowncall.NetworkStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus 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.AndroidService.InternalDowncall.NetworkStatus prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatusOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
isOnline_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus build() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus result = new com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.isOnline_ = isOnline_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance()) return this;
if (other.hasIsOnline()) {
setIsOnline(other.getIsOnline());
}
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.AndroidService.InternalDowncall.NetworkStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool is_online = 1;
private boolean isOnline_ ;
/**
* <code>optional bool is_online = 1;</code>
*/
public boolean hasIsOnline() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool is_online = 1;</code>
*/
public boolean getIsOnline() {
return isOnline_;
}
/**
* <code>optional bool is_online = 1;</code>
*/
public Builder setIsOnline(boolean value) {
bitField0_ |= 0x00000001;
isOnline_ = value;
return this;
}
/**
* <code>optional bool is_online = 1;</code>
*/
public Builder clearIsOnline() {
bitField0_ = (bitField0_ & ~0x00000001);
isOnline_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus)
}
static {
defaultInstance = new NetworkStatus(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus)
}
public interface CreateClientOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional int32 client_type = 1;
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* client type code.
* </pre>
*/
boolean hasClientType();
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* client type code.
* </pre>
*/
int getClientType();
// optional bytes client_name = 2;
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
boolean hasClientName();
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
com.google.protobuf.ByteString getClientName();
// optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
boolean hasClientConfig();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig();
// optional bool skip_start_for_test = 4;
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
boolean hasSkipStartForTest();
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
boolean getSkipStartForTest();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall.CreateClient}
*/
public static final class CreateClient extends
com.google.protobuf.GeneratedMessageLite
implements CreateClientOrBuilder {
// Use CreateClient.newBuilder() to construct.
private CreateClient(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private CreateClient(boolean noInit) {}
private static final CreateClient defaultInstance;
public static CreateClient getDefaultInstance() {
return defaultInstance;
}
public CreateClient getDefaultInstanceForType() {
return defaultInstance;
}
private CreateClient(
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;
}
case 26: {
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = clientConfig_.toBuilder();
}
clientConfig_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientConfig_);
clientConfig_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
skipStartForTest_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<CreateClient> PARSER =
new com.google.protobuf.AbstractParser<CreateClient>() {
public CreateClient parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateClient(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CreateClient> 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>
* client type code.
* </pre>
*/
public boolean hasClientType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* client type code.
* </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>
* application client id.
* </pre>
*/
public boolean hasClientName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
public com.google.protobuf.ByteString getClientName() {
return clientName_;
}
// optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;
public static final int CLIENT_CONFIG_FIELD_NUMBER = 3;
private com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP clientConfig_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public boolean hasClientConfig() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig() {
return clientConfig_;
}
// optional bool skip_start_for_test = 4;
public static final int SKIP_START_FOR_TEST_FIELD_NUMBER = 4;
private boolean skipStartForTest_;
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
public boolean hasSkipStartForTest() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
public boolean getSkipStartForTest() {
return skipStartForTest_;
}
private void initFields() {
clientType_ = 0;
clientName_ = com.google.protobuf.ByteString.EMPTY;
clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
skipStartForTest_ = 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.writeInt32(1, clientType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, clientName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, clientConfig_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, skipStartForTest_);
}
}
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_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, clientConfig_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, skipStartForTest_);
}
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.AndroidService.InternalDowncall.CreateClient parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient 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.AndroidService.InternalDowncall.CreateClient parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient 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.AndroidService.InternalDowncall.CreateClient parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient 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.AndroidService.InternalDowncall.CreateClient parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient 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.AndroidService.InternalDowncall.CreateClient parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient 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.AndroidService.InternalDowncall.CreateClient prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall.CreateClient}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClientOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.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);
clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
skipStartForTest_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient build() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient result = new com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient(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_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.clientConfig_ = clientConfig_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.skipStartForTest_ = skipStartForTest_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance()) return this;
if (other.hasClientType()) {
setClientType(other.getClientType());
}
if (other.hasClientName()) {
setClientName(other.getClientName());
}
if (other.hasClientConfig()) {
mergeClientConfig(other.getClientConfig());
}
if (other.hasSkipStartForTest()) {
setSkipStartForTest(other.getSkipStartForTest());
}
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.AndroidService.InternalDowncall.CreateClient parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient) 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>
* client type code.
* </pre>
*/
public boolean hasClientType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* client type code.
* </pre>
*/
public int getClientType() {
return clientType_;
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* client type code.
* </pre>
*/
public Builder setClientType(int value) {
bitField0_ |= 0x00000001;
clientType_ = value;
return this;
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* client type code.
* </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>
* application client id.
* </pre>
*/
public boolean hasClientName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
public com.google.protobuf.ByteString getClientName() {
return clientName_;
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </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>
* application client id.
* </pre>
*/
public Builder clearClientName() {
bitField0_ = (bitField0_ & ~0x00000002);
clientName_ = getDefaultInstance().getClientName();
return this;
}
// optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;
private com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public boolean hasClientConfig() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig() {
return clientConfig_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public Builder setClientConfig(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP value) {
if (value == null) {
throw new NullPointerException();
}
clientConfig_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public Builder setClientConfig(
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.Builder builderForValue) {
clientConfig_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public Builder mergeClientConfig(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
clientConfig_ != com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance()) {
clientConfig_ =
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.newBuilder(clientConfig_).mergeFrom(value).buildPartial();
} else {
clientConfig_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 3;</code>
*
* <pre>
* Client config.
* </pre>
*/
public Builder clearClientConfig() {
clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// optional bool skip_start_for_test = 4;
private boolean skipStartForTest_ ;
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
public boolean hasSkipStartForTest() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
public boolean getSkipStartForTest() {
return skipStartForTest_;
}
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
public Builder setSkipStartForTest(boolean value) {
bitField0_ |= 0x00000008;
skipStartForTest_ = value;
return this;
}
/**
* <code>optional bool skip_start_for_test = 4;</code>
*
* <pre>
* Whether the client should not be started on creation. Must always be
* false for production use.
* </pre>
*/
public Builder clearSkipStartForTest() {
bitField0_ = (bitField0_ & ~0x00000008);
skipStartForTest_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InternalDowncall.CreateClient)
}
static {
defaultInstance = new CreateClient(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InternalDowncall.CreateClient)
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
// optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;
public static final int SERVER_MESSAGE_FIELD_NUMBER = 2;
private com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage serverMessage_;
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public boolean hasServerMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage getServerMessage() {
return serverMessage_;
}
// optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;
public static final int NETWORK_STATUS_FIELD_NUMBER = 3;
private com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus networkStatus_;
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public boolean hasNetworkStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus getNetworkStatus() {
return networkStatus_;
}
// optional bool network_addr_change = 4;
public static final int NETWORK_ADDR_CHANGE_FIELD_NUMBER = 4;
private boolean networkAddrChange_;
/**
* <code>optional bool network_addr_change = 4;</code>
*/
public boolean hasNetworkAddrChange() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool network_addr_change = 4;</code>
*/
public boolean getNetworkAddrChange() {
return networkAddrChange_;
}
// optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;
public static final int CREATE_CLIENT_FIELD_NUMBER = 5;
private com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient createClient_;
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public boolean hasCreateClient() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient getCreateClient() {
return createClient_;
}
private void initFields() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
serverMessage_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance();
networkStatus_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance();
networkAddrChange_ = false;
createClient_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, serverMessage_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, networkStatus_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, networkAddrChange_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, createClient_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, serverMessage_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, networkStatus_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, networkAddrChange_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, createClient_);
}
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.AndroidService.InternalDowncall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall 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.AndroidService.InternalDowncall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall 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.AndroidService.InternalDowncall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall 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.AndroidService.InternalDowncall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall 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.AndroidService.InternalDowncall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.InternalDowncall 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.AndroidService.InternalDowncall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.InternalDowncall}
*
* <pre>
* Internal (non-public) call from application to Ticl.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.InternalDowncallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
serverMessage_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
networkStatus_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
networkAddrChange_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
createClient_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall build() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall result = new com.google.protos.ipc.invalidation.AndroidService.InternalDowncall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.serverMessage_ = serverMessage_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.networkStatus_ = networkStatus_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.networkAddrChange_ = networkAddrChange_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.createClient_ = createClient_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.getDefaultInstance()) return this;
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasServerMessage()) {
mergeServerMessage(other.getServerMessage());
}
if (other.hasNetworkStatus()) {
mergeNetworkStatus(other.getNetworkStatus());
}
if (other.hasNetworkAddrChange()) {
setNetworkAddrChange(other.getNetworkAddrChange());
}
if (other.hasCreateClient()) {
mergeCreateClient(other.getCreateClient());
}
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.AndroidService.InternalDowncall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.InternalDowncall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder setVersion(
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) {
version_ = builderForValue.build();
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) {
version_ =
com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder clearVersion() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;
private com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage serverMessage_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public boolean hasServerMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage getServerMessage() {
return serverMessage_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder setServerMessage(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage value) {
if (value == null) {
throw new NullPointerException();
}
serverMessage_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder setServerMessage(
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.Builder builderForValue) {
serverMessage_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder mergeServerMessage(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
serverMessage_ != com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance()) {
serverMessage_ =
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.newBuilder(serverMessage_).mergeFrom(value).buildPartial();
} else {
serverMessage_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.ServerMessage server_message = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder clearServerMessage() {
serverMessage_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.ServerMessage.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;
private com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus networkStatus_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public boolean hasNetworkStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus getNetworkStatus() {
return networkStatus_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public Builder setNetworkStatus(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus value) {
if (value == null) {
throw new NullPointerException();
}
networkStatus_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public Builder setNetworkStatus(
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.Builder builderForValue) {
networkStatus_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public Builder mergeNetworkStatus(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
networkStatus_ != com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance()) {
networkStatus_ =
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.newBuilder(networkStatus_).mergeFrom(value).buildPartial();
} else {
networkStatus_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.NetworkStatus network_status = 3;</code>
*/
public Builder clearNetworkStatus() {
networkStatus_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.NetworkStatus.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// optional bool network_addr_change = 4;
private boolean networkAddrChange_ ;
/**
* <code>optional bool network_addr_change = 4;</code>
*/
public boolean hasNetworkAddrChange() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool network_addr_change = 4;</code>
*/
public boolean getNetworkAddrChange() {
return networkAddrChange_;
}
/**
* <code>optional bool network_addr_change = 4;</code>
*/
public Builder setNetworkAddrChange(boolean value) {
bitField0_ |= 0x00000008;
networkAddrChange_ = value;
return this;
}
/**
* <code>optional bool network_addr_change = 4;</code>
*/
public Builder clearNetworkAddrChange() {
bitField0_ = (bitField0_ & ~0x00000008);
networkAddrChange_ = false;
return this;
}
// optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;
private com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient createClient_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public boolean hasCreateClient() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient getCreateClient() {
return createClient_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public Builder setCreateClient(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient value) {
if (value == null) {
throw new NullPointerException();
}
createClient_ = value;
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public Builder setCreateClient(
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.Builder builderForValue) {
createClient_ = builderForValue.build();
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public Builder mergeCreateClient(com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient value) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
createClient_ != com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance()) {
createClient_ =
com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.newBuilder(createClient_).mergeFrom(value).buildPartial();
} else {
createClient_ = value;
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InternalDowncall.CreateClient create_client = 5;</code>
*/
public Builder clearCreateClient() {
createClient_ = com.google.protos.ipc.invalidation.AndroidService.InternalDowncall.CreateClient.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.InternalDowncall)
}
static {
defaultInstance = new InternalDowncall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.InternalDowncall)
}
public interface ListenerUpcallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional int64 serial = 1;
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
boolean hasSerial();
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
long getSerial();
// optional .com.google.protos.ipc.invalidation.Version version = 2;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
boolean hasVersion();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion();
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
boolean hasReady();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall getReady();
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
boolean hasInvalidate();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall getInvalidate();
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
boolean hasRegistrationStatus();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall getRegistrationStatus();
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
boolean hasRegistrationFailure();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall getRegistrationFailure();
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
boolean hasReissueRegistrations();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall getReissueRegistrations();
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
boolean hasError();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall getError();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall}
*/
public static final class ListenerUpcall extends
com.google.protobuf.GeneratedMessageLite
implements ListenerUpcallOrBuilder {
// Use ListenerUpcall.newBuilder() to construct.
private ListenerUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ListenerUpcall(boolean noInit) {}
private static final ListenerUpcall defaultInstance;
public static ListenerUpcall getDefaultInstance() {
return defaultInstance;
}
public ListenerUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private ListenerUpcall(
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;
serial_ = input.readInt64();
break;
}
case 18: {
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = ready_.toBuilder();
}
ready_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ready_);
ready_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = invalidate_.toBuilder();
}
invalidate_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(invalidate_);
invalidate_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = registrationStatus_.toBuilder();
}
registrationStatus_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(registrationStatus_);
registrationStatus_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = registrationFailure_.toBuilder();
}
registrationFailure_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(registrationFailure_);
registrationFailure_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = reissueRegistrations_.toBuilder();
}
reissueRegistrations_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reissueRegistrations_);
reissueRegistrations_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<ListenerUpcall> PARSER =
new com.google.protobuf.AbstractParser<ListenerUpcall>() {
public ListenerUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListenerUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ListenerUpcall> getParserForType() {
return PARSER;
}
public interface ReadyUpcallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall}
*/
public static final class ReadyUpcall extends
com.google.protobuf.GeneratedMessageLite
implements ReadyUpcallOrBuilder {
// Use ReadyUpcall.newBuilder() to construct.
private ReadyUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ReadyUpcall(boolean noInit) {}
private static final ReadyUpcall defaultInstance;
public static ReadyUpcall getDefaultInstance() {
return defaultInstance;
}
public ReadyUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private ReadyUpcall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<ReadyUpcall> PARSER =
new com.google.protobuf.AbstractParser<ReadyUpcall>() {
public ReadyUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadyUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ReadyUpcall> getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall 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.AndroidService.ListenerUpcall.ReadyUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall 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.AndroidService.ListenerUpcall.ReadyUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall 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.AndroidService.ListenerUpcall.ReadyUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall 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.AndroidService.ListenerUpcall.ReadyUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall 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.AndroidService.ListenerUpcall.ReadyUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall(this);
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance()) return this;
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall)
}
static {
defaultInstance = new ReadyUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall)
}
public interface InvalidateUpcallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional bytes ack_handle = 1;
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
boolean hasAckHandle();
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
com.google.protobuf.ByteString getAckHandle();
// optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
boolean hasInvalidation();
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getInvalidation();
// optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
boolean hasInvalidateUnknown();
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getInvalidateUnknown();
// optional bool invalidate_all = 4;
/**
* <code>optional bool invalidate_all = 4;</code>
*/
boolean hasInvalidateAll();
/**
* <code>optional bool invalidate_all = 4;</code>
*/
boolean getInvalidateAll();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall}
*/
public static final class InvalidateUpcall extends
com.google.protobuf.GeneratedMessageLite
implements InvalidateUpcallOrBuilder {
// Use InvalidateUpcall.newBuilder() to construct.
private InvalidateUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private InvalidateUpcall(boolean noInit) {}
private static final InvalidateUpcall defaultInstance;
public static InvalidateUpcall getDefaultInstance() {
return defaultInstance;
}
public InvalidateUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private InvalidateUpcall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
ackHandle_ = input.readBytes();
break;
}
case 18: {
com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = invalidation_.toBuilder();
}
invalidation_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(invalidation_);
invalidation_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = invalidateUnknown_.toBuilder();
}
invalidateUnknown_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(invalidateUnknown_);
invalidateUnknown_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
invalidateAll_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<InvalidateUpcall> PARSER =
new com.google.protobuf.AbstractParser<InvalidateUpcall>() {
public InvalidateUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InvalidateUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<InvalidateUpcall> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes ack_handle = 1;
public static final int ACK_HANDLE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ackHandle_;
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
public boolean hasAckHandle() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
public com.google.protobuf.ByteString getAckHandle() {
return ackHandle_;
}
// optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;
public static final int INVALIDATION_FIELD_NUMBER = 2;
private com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP invalidation_;
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public boolean hasInvalidation() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getInvalidation() {
return invalidation_;
}
// optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;
public static final int INVALIDATE_UNKNOWN_FIELD_NUMBER = 3;
private com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP invalidateUnknown_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public boolean hasInvalidateUnknown() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getInvalidateUnknown() {
return invalidateUnknown_;
}
// optional bool invalidate_all = 4;
public static final int INVALIDATE_ALL_FIELD_NUMBER = 4;
private boolean invalidateAll_;
/**
* <code>optional bool invalidate_all = 4;</code>
*/
public boolean hasInvalidateAll() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool invalidate_all = 4;</code>
*/
public boolean getInvalidateAll() {
return invalidateAll_;
}
private void initFields() {
ackHandle_ = com.google.protobuf.ByteString.EMPTY;
invalidation_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance();
invalidateUnknown_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
invalidateAll_ = 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.writeBytes(1, ackHandle_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, invalidation_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, invalidateUnknown_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, invalidateAll_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ackHandle_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, invalidation_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, invalidateUnknown_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, invalidateAll_);
}
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.AndroidService.ListenerUpcall.InvalidateUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall 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.AndroidService.ListenerUpcall.InvalidateUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall 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.AndroidService.ListenerUpcall.InvalidateUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall 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.AndroidService.ListenerUpcall.InvalidateUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall 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.AndroidService.ListenerUpcall.InvalidateUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall 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.AndroidService.ListenerUpcall.InvalidateUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
ackHandle_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
invalidation_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
invalidateUnknown_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
invalidateAll_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ackHandle_ = ackHandle_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.invalidation_ = invalidation_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.invalidateUnknown_ = invalidateUnknown_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.invalidateAll_ = invalidateAll_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance()) return this;
if (other.hasAckHandle()) {
setAckHandle(other.getAckHandle());
}
if (other.hasInvalidation()) {
mergeInvalidation(other.getInvalidation());
}
if (other.hasInvalidateUnknown()) {
mergeInvalidateUnknown(other.getInvalidateUnknown());
}
if (other.hasInvalidateAll()) {
setInvalidateAll(other.getInvalidateAll());
}
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.AndroidService.ListenerUpcall.InvalidateUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes ack_handle = 1;
private com.google.protobuf.ByteString ackHandle_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
public boolean hasAckHandle() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
public com.google.protobuf.ByteString getAckHandle() {
return ackHandle_;
}
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
public Builder setAckHandle(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ackHandle_ = value;
return this;
}
/**
* <code>optional bytes ack_handle = 1;</code>
*
* <pre>
* Required.
* </pre>
*/
public Builder clearAckHandle() {
bitField0_ = (bitField0_ & ~0x00000001);
ackHandle_ = getDefaultInstance().getAckHandle();
return this;
}
// optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;
private com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP invalidation_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public boolean hasInvalidation() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP getInvalidation() {
return invalidation_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder setInvalidation(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP value) {
if (value == null) {
throw new NullPointerException();
}
invalidation_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder setInvalidation(
com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.Builder builderForValue) {
invalidation_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder mergeInvalidation(com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
invalidation_ != com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance()) {
invalidation_ =
com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.newBuilder(invalidation_).mergeFrom(value).buildPartial();
} else {
invalidation_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationP invalidation = 2;</code>
*
* <pre>
* Exactly one must be set.
* </pre>
*/
public Builder clearInvalidation() {
invalidation_ = com.google.protos.ipc.invalidation.ClientProtocol.InvalidationP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;
private com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP invalidateUnknown_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public boolean hasInvalidateUnknown() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getInvalidateUnknown() {
return invalidateUnknown_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public Builder setInvalidateUnknown(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (value == null) {
throw new NullPointerException();
}
invalidateUnknown_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public Builder setInvalidateUnknown(
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder builderForValue) {
invalidateUnknown_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public Builder mergeInvalidateUnknown(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
invalidateUnknown_ != com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance()) {
invalidateUnknown_ =
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.newBuilder(invalidateUnknown_).mergeFrom(value).buildPartial();
} else {
invalidateUnknown_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP invalidate_unknown = 3;</code>
*/
public Builder clearInvalidateUnknown() {
invalidateUnknown_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// optional bool invalidate_all = 4;
private boolean invalidateAll_ ;
/**
* <code>optional bool invalidate_all = 4;</code>
*/
public boolean hasInvalidateAll() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool invalidate_all = 4;</code>
*/
public boolean getInvalidateAll() {
return invalidateAll_;
}
/**
* <code>optional bool invalidate_all = 4;</code>
*/
public Builder setInvalidateAll(boolean value) {
bitField0_ |= 0x00000008;
invalidateAll_ = value;
return this;
}
/**
* <code>optional bool invalidate_all = 4;</code>
*/
public Builder clearInvalidateAll() {
bitField0_ = (bitField0_ & ~0x00000008);
invalidateAll_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall)
}
static {
defaultInstance = new InvalidateUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall)
}
public interface RegistrationStatusUpcallOrBuilder
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>
*/
boolean hasObjectId();
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId();
// optional bool is_registered = 2;
/**
* <code>optional bool is_registered = 2;</code>
*/
boolean hasIsRegistered();
/**
* <code>optional bool is_registered = 2;</code>
*/
boolean getIsRegistered();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall}
*/
public static final class RegistrationStatusUpcall extends
com.google.protobuf.GeneratedMessageLite
implements RegistrationStatusUpcallOrBuilder {
// Use RegistrationStatusUpcall.newBuilder() to construct.
private RegistrationStatusUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private RegistrationStatusUpcall(boolean noInit) {}
private static final RegistrationStatusUpcall defaultInstance;
public static RegistrationStatusUpcall getDefaultInstance() {
return defaultInstance;
}
public RegistrationStatusUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private RegistrationStatusUpcall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = objectId_.toBuilder();
}
objectId_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(objectId_);
objectId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
isRegistered_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<RegistrationStatusUpcall> PARSER =
new com.google.protobuf.AbstractParser<RegistrationStatusUpcall>() {
public RegistrationStatusUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegistrationStatusUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<RegistrationStatusUpcall> 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>
*/
public boolean hasObjectId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() {
return objectId_;
}
// optional bool is_registered = 2;
public static final int IS_REGISTERED_FIELD_NUMBER = 2;
private boolean isRegistered_;
/**
* <code>optional bool is_registered = 2;</code>
*/
public boolean hasIsRegistered() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool is_registered = 2;</code>
*/
public boolean getIsRegistered() {
return isRegistered_;
}
private void initFields() {
objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
isRegistered_ = 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.writeMessage(1, objectId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, isRegistered_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, objectId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isRegistered_);
}
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.AndroidService.ListenerUpcall.RegistrationStatusUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall 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.AndroidService.ListenerUpcall.RegistrationStatusUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall 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.AndroidService.ListenerUpcall.RegistrationStatusUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall 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.AndroidService.ListenerUpcall.RegistrationStatusUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall 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.AndroidService.ListenerUpcall.RegistrationStatusUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall 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.AndroidService.ListenerUpcall.RegistrationStatusUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.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);
isRegistered_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall(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.isRegistered_ = isRegistered_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance()) return this;
if (other.hasObjectId()) {
mergeObjectId(other.getObjectId());
}
if (other.hasIsRegistered()) {
setIsRegistered(other.getIsRegistered());
}
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.AndroidService.ListenerUpcall.RegistrationStatusUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall) 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>
*/
public boolean hasObjectId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() {
return objectId_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
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>
*/
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>
*/
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>
*/
public Builder clearObjectId() {
objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional bool is_registered = 2;
private boolean isRegistered_ ;
/**
* <code>optional bool is_registered = 2;</code>
*/
public boolean hasIsRegistered() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool is_registered = 2;</code>
*/
public boolean getIsRegistered() {
return isRegistered_;
}
/**
* <code>optional bool is_registered = 2;</code>
*/
public Builder setIsRegistered(boolean value) {
bitField0_ |= 0x00000002;
isRegistered_ = value;
return this;
}
/**
* <code>optional bool is_registered = 2;</code>
*/
public Builder clearIsRegistered() {
bitField0_ = (bitField0_ & ~0x00000002);
isRegistered_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall)
}
static {
defaultInstance = new RegistrationStatusUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall)
}
public interface RegistrationFailureUpcallOrBuilder
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>
*/
boolean hasObjectId();
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId();
// optional bool transient = 2;
/**
* <code>optional bool transient = 2;</code>
*/
boolean hasTransient();
/**
* <code>optional bool transient = 2;</code>
*/
boolean getTransient();
// optional string message = 3;
/**
* <code>optional string message = 3;</code>
*/
boolean hasMessage();
/**
* <code>optional string message = 3;</code>
*/
java.lang.String getMessage();
/**
* <code>optional string message = 3;</code>
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall}
*/
public static final class RegistrationFailureUpcall extends
com.google.protobuf.GeneratedMessageLite
implements RegistrationFailureUpcallOrBuilder {
// Use RegistrationFailureUpcall.newBuilder() to construct.
private RegistrationFailureUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private RegistrationFailureUpcall(boolean noInit) {}
private static final RegistrationFailureUpcall defaultInstance;
public static RegistrationFailureUpcall getDefaultInstance() {
return defaultInstance;
}
public RegistrationFailureUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private RegistrationFailureUpcall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = objectId_.toBuilder();
}
objectId_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(objectId_);
objectId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
transient_ = input.readBool();
break;
}
case 26: {
bitField0_ |= 0x00000004;
message_ = 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<RegistrationFailureUpcall> PARSER =
new com.google.protobuf.AbstractParser<RegistrationFailureUpcall>() {
public RegistrationFailureUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegistrationFailureUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<RegistrationFailureUpcall> 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>
*/
public boolean hasObjectId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() {
return objectId_;
}
// optional bool transient = 2;
public static final int TRANSIENT_FIELD_NUMBER = 2;
private boolean transient_;
/**
* <code>optional bool transient = 2;</code>
*/
public boolean hasTransient() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool transient = 2;</code>
*/
public boolean getTransient() {
return transient_;
}
// optional string message = 3;
public static final int MESSAGE_FIELD_NUMBER = 3;
private java.lang.Object message_;
/**
* <code>optional string message = 3;</code>
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional string message = 3;</code>
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
* <code>optional string message = 3;</code>
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
transient_ = false;
message_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, objectId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, transient_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getMessageBytes());
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, objectId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, transient_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getMessageBytes());
}
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.AndroidService.ListenerUpcall.RegistrationFailureUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall 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.AndroidService.ListenerUpcall.RegistrationFailureUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall 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.AndroidService.ListenerUpcall.RegistrationFailureUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall 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.AndroidService.ListenerUpcall.RegistrationFailureUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall 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.AndroidService.ListenerUpcall.RegistrationFailureUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall 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.AndroidService.ListenerUpcall.RegistrationFailureUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.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);
transient_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall(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.transient_ = transient_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance()) return this;
if (other.hasObjectId()) {
mergeObjectId(other.getObjectId());
}
if (other.hasTransient()) {
setTransient(other.getTransient());
}
if (other.hasMessage()) {
bitField0_ |= 0x00000004;
message_ = other.message_;
}
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.AndroidService.ListenerUpcall.RegistrationFailureUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall) 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>
*/
public boolean hasObjectId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP getObjectId() {
return objectId_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ObjectIdP object_id = 1;</code>
*/
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>
*/
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>
*/
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>
*/
public Builder clearObjectId() {
objectId_ = com.google.protos.ipc.invalidation.ClientProtocol.ObjectIdP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional bool transient = 2;
private boolean transient_ ;
/**
* <code>optional bool transient = 2;</code>
*/
public boolean hasTransient() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool transient = 2;</code>
*/
public boolean getTransient() {
return transient_;
}
/**
* <code>optional bool transient = 2;</code>
*/
public Builder setTransient(boolean value) {
bitField0_ |= 0x00000002;
transient_ = value;
return this;
}
/**
* <code>optional bool transient = 2;</code>
*/
public Builder clearTransient() {
bitField0_ = (bitField0_ & ~0x00000002);
transient_ = false;
return this;
}
// optional string message = 3;
private java.lang.Object message_ = "";
/**
* <code>optional string message = 3;</code>
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional string message = 3;</code>
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string message = 3;</code>
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string message = 3;</code>
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
return this;
}
/**
* <code>optional string message = 3;</code>
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
message_ = getDefaultInstance().getMessage();
return this;
}
/**
* <code>optional string message = 3;</code>
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall)
}
static {
defaultInstance = new RegistrationFailureUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall)
}
public interface ReissueRegistrationsUpcallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional bytes prefix = 1;
/**
* <code>optional bytes prefix = 1;</code>
*/
boolean hasPrefix();
/**
* <code>optional bytes prefix = 1;</code>
*/
com.google.protobuf.ByteString getPrefix();
// optional int32 length = 2;
/**
* <code>optional int32 length = 2;</code>
*/
boolean hasLength();
/**
* <code>optional int32 length = 2;</code>
*/
int getLength();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall}
*/
public static final class ReissueRegistrationsUpcall extends
com.google.protobuf.GeneratedMessageLite
implements ReissueRegistrationsUpcallOrBuilder {
// Use ReissueRegistrationsUpcall.newBuilder() to construct.
private ReissueRegistrationsUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ReissueRegistrationsUpcall(boolean noInit) {}
private static final ReissueRegistrationsUpcall defaultInstance;
public static ReissueRegistrationsUpcall getDefaultInstance() {
return defaultInstance;
}
public ReissueRegistrationsUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private ReissueRegistrationsUpcall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
prefix_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
length_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<ReissueRegistrationsUpcall> PARSER =
new com.google.protobuf.AbstractParser<ReissueRegistrationsUpcall>() {
public ReissueRegistrationsUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReissueRegistrationsUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ReissueRegistrationsUpcall> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes prefix = 1;
public static final int PREFIX_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString prefix_;
/**
* <code>optional bytes prefix = 1;</code>
*/
public boolean hasPrefix() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes prefix = 1;</code>
*/
public com.google.protobuf.ByteString getPrefix() {
return prefix_;
}
// optional int32 length = 2;
public static final int LENGTH_FIELD_NUMBER = 2;
private int length_;
/**
* <code>optional int32 length = 2;</code>
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 length = 2;</code>
*/
public int getLength() {
return length_;
}
private void initFields() {
prefix_ = com.google.protobuf.ByteString.EMPTY;
length_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, prefix_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, length_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, prefix_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, length_);
}
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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall 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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall 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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall 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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall 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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall 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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
prefix_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
length_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.prefix_ = prefix_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.length_ = length_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance()) return this;
if (other.hasPrefix()) {
setPrefix(other.getPrefix());
}
if (other.hasLength()) {
setLength(other.getLength());
}
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.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes prefix = 1;
private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes prefix = 1;</code>
*/
public boolean hasPrefix() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes prefix = 1;</code>
*/
public com.google.protobuf.ByteString getPrefix() {
return prefix_;
}
/**
* <code>optional bytes prefix = 1;</code>
*/
public Builder setPrefix(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
prefix_ = value;
return this;
}
/**
* <code>optional bytes prefix = 1;</code>
*/
public Builder clearPrefix() {
bitField0_ = (bitField0_ & ~0x00000001);
prefix_ = getDefaultInstance().getPrefix();
return this;
}
// optional int32 length = 2;
private int length_ ;
/**
* <code>optional int32 length = 2;</code>
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 length = 2;</code>
*/
public int getLength() {
return length_;
}
/**
* <code>optional int32 length = 2;</code>
*/
public Builder setLength(int value) {
bitField0_ |= 0x00000002;
length_ = value;
return this;
}
/**
* <code>optional int32 length = 2;</code>
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall)
}
static {
defaultInstance = new ReissueRegistrationsUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall)
}
public interface ErrorUpcallOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional int32 error_code = 1;
/**
* <code>optional int32 error_code = 1;</code>
*/
boolean hasErrorCode();
/**
* <code>optional int32 error_code = 1;</code>
*/
int getErrorCode();
// optional string error_message = 2;
/**
* <code>optional string error_message = 2;</code>
*/
boolean hasErrorMessage();
/**
* <code>optional string error_message = 2;</code>
*/
java.lang.String getErrorMessage();
/**
* <code>optional string error_message = 2;</code>
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
// optional bool is_transient = 3;
/**
* <code>optional bool is_transient = 3;</code>
*/
boolean hasIsTransient();
/**
* <code>optional bool is_transient = 3;</code>
*/
boolean getIsTransient();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall}
*/
public static final class ErrorUpcall extends
com.google.protobuf.GeneratedMessageLite
implements ErrorUpcallOrBuilder {
// Use ErrorUpcall.newBuilder() to construct.
private ErrorUpcall(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ErrorUpcall(boolean noInit) {}
private static final ErrorUpcall defaultInstance;
public static ErrorUpcall getDefaultInstance() {
return defaultInstance;
}
public ErrorUpcall getDefaultInstanceForType() {
return defaultInstance;
}
private ErrorUpcall(
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;
errorCode_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
errorMessage_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
isTransient_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<ErrorUpcall> PARSER =
new com.google.protobuf.AbstractParser<ErrorUpcall>() {
public ErrorUpcall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ErrorUpcall(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ErrorUpcall> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 error_code = 1;
public static final int ERROR_CODE_FIELD_NUMBER = 1;
private int errorCode_;
/**
* <code>optional int32 error_code = 1;</code>
*/
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 error_code = 1;</code>
*/
public int getErrorCode() {
return errorCode_;
}
// optional string error_message = 2;
public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
private java.lang.Object errorMessage_;
/**
* <code>optional string error_message = 2;</code>
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string error_message = 2;</code>
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
}
}
/**
* <code>optional string error_message = 2;</code>
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool is_transient = 3;
public static final int IS_TRANSIENT_FIELD_NUMBER = 3;
private boolean isTransient_;
/**
* <code>optional bool is_transient = 3;</code>
*/
public boolean hasIsTransient() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool is_transient = 3;</code>
*/
public boolean getIsTransient() {
return isTransient_;
}
private void initFields() {
errorCode_ = 0;
errorMessage_ = "";
isTransient_ = 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.writeInt32(1, errorCode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getErrorMessageBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, isTransient_);
}
}
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, errorCode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getErrorMessageBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isTransient_);
}
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.AndroidService.ListenerUpcall.ErrorUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall 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.AndroidService.ListenerUpcall.ErrorUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall 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.AndroidService.ListenerUpcall.ErrorUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall 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.AndroidService.ListenerUpcall.ErrorUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall 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.AndroidService.ListenerUpcall.ErrorUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall 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.AndroidService.ListenerUpcall.ErrorUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
errorCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
errorMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
isTransient_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.errorCode_ = errorCode_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.errorMessage_ = errorMessage_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.isTransient_ = isTransient_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.getDefaultInstance()) return this;
if (other.hasErrorCode()) {
setErrorCode(other.getErrorCode());
}
if (other.hasErrorMessage()) {
bitField0_ |= 0x00000002;
errorMessage_ = other.errorMessage_;
}
if (other.hasIsTransient()) {
setIsTransient(other.getIsTransient());
}
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.AndroidService.ListenerUpcall.ErrorUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 error_code = 1;
private int errorCode_ ;
/**
* <code>optional int32 error_code = 1;</code>
*/
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 error_code = 1;</code>
*/
public int getErrorCode() {
return errorCode_;
}
/**
* <code>optional int32 error_code = 1;</code>
*/
public Builder setErrorCode(int value) {
bitField0_ |= 0x00000001;
errorCode_ = value;
return this;
}
/**
* <code>optional int32 error_code = 1;</code>
*/
public Builder clearErrorCode() {
bitField0_ = (bitField0_ & ~0x00000001);
errorCode_ = 0;
return this;
}
// optional string error_message = 2;
private java.lang.Object errorMessage_ = "";
/**
* <code>optional string error_message = 2;</code>
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string error_message = 2;</code>
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string error_message = 2;</code>
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string error_message = 2;</code>
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
errorMessage_ = value;
return this;
}
/**
* <code>optional string error_message = 2;</code>
*/
public Builder clearErrorMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
errorMessage_ = getDefaultInstance().getErrorMessage();
return this;
}
/**
* <code>optional string error_message = 2;</code>
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
errorMessage_ = value;
return this;
}
// optional bool is_transient = 3;
private boolean isTransient_ ;
/**
* <code>optional bool is_transient = 3;</code>
*/
public boolean hasIsTransient() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool is_transient = 3;</code>
*/
public boolean getIsTransient() {
return isTransient_;
}
/**
* <code>optional bool is_transient = 3;</code>
*/
public Builder setIsTransient(boolean value) {
bitField0_ |= 0x00000004;
isTransient_ = value;
return this;
}
/**
* <code>optional bool is_transient = 3;</code>
*/
public Builder clearIsTransient() {
bitField0_ = (bitField0_ & ~0x00000004);
isTransient_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall)
}
static {
defaultInstance = new ErrorUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall)
}
private int bitField0_;
// optional int64 serial = 1;
public static final int SERIAL_FIELD_NUMBER = 1;
private long serial_;
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
public boolean hasSerial() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
public long getSerial() {
return serial_;
}
// optional .com.google.protos.ipc.invalidation.Version version = 2;
public static final int VERSION_FIELD_NUMBER = 2;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;
public static final int READY_FIELD_NUMBER = 3;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall ready_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public boolean hasReady() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall getReady() {
return ready_;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;
public static final int INVALIDATE_FIELD_NUMBER = 4;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall invalidate_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public boolean hasInvalidate() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall getInvalidate() {
return invalidate_;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;
public static final int REGISTRATION_STATUS_FIELD_NUMBER = 5;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall registrationStatus_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public boolean hasRegistrationStatus() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall getRegistrationStatus() {
return registrationStatus_;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;
public static final int REGISTRATION_FAILURE_FIELD_NUMBER = 6;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall registrationFailure_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public boolean hasRegistrationFailure() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall getRegistrationFailure() {
return registrationFailure_;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;
public static final int REISSUE_REGISTRATIONS_FIELD_NUMBER = 7;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall reissueRegistrations_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public boolean hasReissueRegistrations() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall getReissueRegistrations() {
return reissueRegistrations_;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;
public static final int ERROR_FIELD_NUMBER = 8;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall error_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public boolean hasError() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall getError() {
return error_;
}
private void initFields() {
serial_ = 0L;
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
ready_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance();
invalidate_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance();
registrationStatus_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance();
registrationFailure_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance();
reissueRegistrations_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance();
error_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.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.writeInt64(1, serial_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, ready_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, invalidate_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, registrationStatus_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, registrationFailure_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, reissueRegistrations_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, error_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, serial_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, ready_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, invalidate_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, registrationStatus_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, registrationFailure_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, reissueRegistrations_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, error_);
}
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.AndroidService.ListenerUpcall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall 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.AndroidService.ListenerUpcall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall 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.AndroidService.ListenerUpcall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall 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.AndroidService.ListenerUpcall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall 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.AndroidService.ListenerUpcall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall 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.AndroidService.ListenerUpcall prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.ListenerUpcall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.ListenerUpcallOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
serial_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
ready_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
invalidate_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
registrationStatus_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
registrationFailure_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000020);
reissueRegistrations_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000040);
error_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall build() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall result = new com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.serial_ = serial_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ready_ = ready_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.invalidate_ = invalidate_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.registrationStatus_ = registrationStatus_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.registrationFailure_ = registrationFailure_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.reissueRegistrations_ = reissueRegistrations_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.error_ = error_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.getDefaultInstance()) return this;
if (other.hasSerial()) {
setSerial(other.getSerial());
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasReady()) {
mergeReady(other.getReady());
}
if (other.hasInvalidate()) {
mergeInvalidate(other.getInvalidate());
}
if (other.hasRegistrationStatus()) {
mergeRegistrationStatus(other.getRegistrationStatus());
}
if (other.hasRegistrationFailure()) {
mergeRegistrationFailure(other.getRegistrationFailure());
}
if (other.hasReissueRegistrations()) {
mergeReissueRegistrations(other.getReissueRegistrations());
}
if (other.hasError()) {
mergeError(other.getError());
}
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.AndroidService.ListenerUpcall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 serial = 1;
private long serial_ ;
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
public boolean hasSerial() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
public long getSerial() {
return serial_;
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
public Builder setSerial(long value) {
bitField0_ |= 0x00000001;
serial_ = value;
return this;
}
/**
* <code>optional int64 serial = 1;</code>
*
* <pre>
* Serial number to prevent intent reordering. Not currently used.
* TODO: use
* </pre>
*/
public Builder clearSerial() {
bitField0_ = (bitField0_ & ~0x00000001);
serial_ = 0L;
return this;
}
// optional .com.google.protos.ipc.invalidation.Version version = 2;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder setVersion(
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) {
version_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) {
version_ =
com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 2;</code>
*/
public Builder clearVersion() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall ready_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public boolean hasReady() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall getReady() {
return ready_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public Builder setReady(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall value) {
if (value == null) {
throw new NullPointerException();
}
ready_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public Builder setReady(
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.Builder builderForValue) {
ready_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public Builder mergeReady(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
ready_ != com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance()) {
ready_ =
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.newBuilder(ready_).mergeFrom(value).buildPartial();
} else {
ready_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReadyUpcall ready = 3;</code>
*
* <pre>
* Exactly one must be sent.
* </pre>
*/
public Builder clearReady() {
ready_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReadyUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall invalidate_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public boolean hasInvalidate() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall getInvalidate() {
return invalidate_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public Builder setInvalidate(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall value) {
if (value == null) {
throw new NullPointerException();
}
invalidate_ = value;
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public Builder setInvalidate(
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.Builder builderForValue) {
invalidate_ = builderForValue.build();
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public Builder mergeInvalidate(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall value) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
invalidate_ != com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance()) {
invalidate_ =
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.newBuilder(invalidate_).mergeFrom(value).buildPartial();
} else {
invalidate_ = value;
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.InvalidateUpcall invalidate = 4;</code>
*/
public Builder clearInvalidate() {
invalidate_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.InvalidateUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall registrationStatus_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public boolean hasRegistrationStatus() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall getRegistrationStatus() {
return registrationStatus_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public Builder setRegistrationStatus(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall value) {
if (value == null) {
throw new NullPointerException();
}
registrationStatus_ = value;
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public Builder setRegistrationStatus(
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.Builder builderForValue) {
registrationStatus_ = builderForValue.build();
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public Builder mergeRegistrationStatus(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall value) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
registrationStatus_ != com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance()) {
registrationStatus_ =
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.newBuilder(registrationStatus_).mergeFrom(value).buildPartial();
} else {
registrationStatus_ = value;
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationStatusUpcall registration_status = 5;</code>
*/
public Builder clearRegistrationStatus() {
registrationStatus_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationStatusUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall registrationFailure_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public boolean hasRegistrationFailure() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall getRegistrationFailure() {
return registrationFailure_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public Builder setRegistrationFailure(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall value) {
if (value == null) {
throw new NullPointerException();
}
registrationFailure_ = value;
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public Builder setRegistrationFailure(
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.Builder builderForValue) {
registrationFailure_ = builderForValue.build();
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public Builder mergeRegistrationFailure(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall value) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
registrationFailure_ != com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance()) {
registrationFailure_ =
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.newBuilder(registrationFailure_).mergeFrom(value).buildPartial();
} else {
registrationFailure_ = value;
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.RegistrationFailureUpcall registration_failure = 6;</code>
*/
public Builder clearRegistrationFailure() {
registrationFailure_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.RegistrationFailureUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall reissueRegistrations_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public boolean hasReissueRegistrations() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall getReissueRegistrations() {
return reissueRegistrations_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public Builder setReissueRegistrations(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall value) {
if (value == null) {
throw new NullPointerException();
}
reissueRegistrations_ = value;
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public Builder setReissueRegistrations(
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.Builder builderForValue) {
reissueRegistrations_ = builderForValue.build();
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public Builder mergeReissueRegistrations(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall value) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
reissueRegistrations_ != com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance()) {
reissueRegistrations_ =
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.newBuilder(reissueRegistrations_).mergeFrom(value).buildPartial();
} else {
reissueRegistrations_ = value;
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ReissueRegistrationsUpcall reissue_registrations = 7;</code>
*/
public Builder clearReissueRegistrations() {
reissueRegistrations_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ReissueRegistrationsUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
// optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;
private com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall error_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public boolean hasError() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall getError() {
return error_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public Builder setError(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall value) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public Builder setError(
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.Builder builderForValue) {
error_ = builderForValue.build();
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public Builder mergeError(com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall value) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
error_ != com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.getDefaultInstance()) {
error_ =
com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ListenerUpcall.ErrorUpcall error = 8;</code>
*/
public Builder clearError() {
error_ = com.google.protos.ipc.invalidation.AndroidService.ListenerUpcall.ErrorUpcall.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.ListenerUpcall)
}
static {
defaultInstance = new ListenerUpcall(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.ListenerUpcall)
}
public interface AndroidSchedulerEventOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional .com.google.protos.ipc.invalidation.Version version = 1;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
boolean hasVersion();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion();
// optional string event_name = 2;
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
boolean hasEventName();
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
java.lang.String getEventName();
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
com.google.protobuf.ByteString
getEventNameBytes();
// optional int64 ticl_id = 3;
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
boolean hasTiclId();
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
long getTiclId();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidSchedulerEvent}
*
* <pre>
* Internal proto used by the Android scheduler to represent an event to run.
* </pre>
*/
public static final class AndroidSchedulerEvent extends
com.google.protobuf.GeneratedMessageLite
implements AndroidSchedulerEventOrBuilder {
// Use AndroidSchedulerEvent.newBuilder() to construct.
private AndroidSchedulerEvent(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private AndroidSchedulerEvent(boolean noInit) {}
private static final AndroidSchedulerEvent defaultInstance;
public static AndroidSchedulerEvent getDefaultInstance() {
return defaultInstance;
}
public AndroidSchedulerEvent getDefaultInstanceForType() {
return defaultInstance;
}
private AndroidSchedulerEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
eventName_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
ticlId_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<AndroidSchedulerEvent> PARSER =
new com.google.protobuf.AbstractParser<AndroidSchedulerEvent>() {
public AndroidSchedulerEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AndroidSchedulerEvent(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AndroidSchedulerEvent> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
// optional string event_name = 2;
public static final int EVENT_NAME_FIELD_NUMBER = 2;
private java.lang.Object eventName_;
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public boolean hasEventName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public java.lang.String getEventName() {
java.lang.Object ref = eventName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
eventName_ = s;
}
return s;
}
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public com.google.protobuf.ByteString
getEventNameBytes() {
java.lang.Object ref = eventName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int64 ticl_id = 3;
public static final int TICL_ID_FIELD_NUMBER = 3;
private long ticlId_;
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
public boolean hasTiclId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
public long getTiclId() {
return ticlId_;
}
private void initFields() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
eventName_ = "";
ticlId_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getEventNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, ticlId_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getEventNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, ticlId_);
}
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.AndroidService.AndroidSchedulerEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent 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.AndroidService.AndroidSchedulerEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent 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.AndroidService.AndroidSchedulerEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent 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.AndroidService.AndroidSchedulerEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent 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.AndroidService.AndroidSchedulerEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent 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.AndroidService.AndroidSchedulerEvent prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidSchedulerEvent}
*
* <pre>
* Internal proto used by the Android scheduler to represent an event to run.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEventOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
eventName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
ticlId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent build() {
com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent result = new com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.eventName_ = eventName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ticlId_ = ticlId_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent.getDefaultInstance()) return this;
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasEventName()) {
bitField0_ |= 0x00000002;
eventName_ = other.eventName_;
}
if (other.hasTiclId()) {
setTiclId(other.getTiclId());
}
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.AndroidService.AndroidSchedulerEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.AndroidSchedulerEvent) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder setVersion(
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) {
version_ = builderForValue.build();
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) {
version_ =
com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder clearVersion() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional string event_name = 2;
private java.lang.Object eventName_ = "";
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public boolean hasEventName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public java.lang.String getEventName() {
java.lang.Object ref = eventName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
eventName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public com.google.protobuf.ByteString
getEventNameBytes() {
java.lang.Object ref = eventName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public Builder setEventName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
eventName_ = value;
return this;
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public Builder clearEventName() {
bitField0_ = (bitField0_ & ~0x00000002);
eventName_ = getDefaultInstance().getEventName();
return this;
}
/**
* <code>optional string event_name = 2;</code>
*
* <pre>
* Name of the recurring task to execute.
* </pre>
*/
public Builder setEventNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
eventName_ = value;
return this;
}
// optional int64 ticl_id = 3;
private long ticlId_ ;
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
public boolean hasTiclId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
public long getTiclId() {
return ticlId_;
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
public Builder setTiclId(long value) {
bitField0_ |= 0x00000004;
ticlId_ = value;
return this;
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Generation number of the Ticl with which this event is associated. Used to
* prevent old events from accidentally firing on new Ticls.
* </pre>
*/
public Builder clearTiclId() {
bitField0_ = (bitField0_ & ~0x00000004);
ticlId_ = 0L;
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidSchedulerEvent)
}
static {
defaultInstance = new AndroidSchedulerEvent(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidSchedulerEvent)
}
public interface AndroidNetworkSendRequestOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional .com.google.protos.ipc.invalidation.Version version = 1;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
boolean hasVersion();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion();
// optional bytes message = 2;
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
boolean hasMessage();
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
com.google.protobuf.ByteString getMessage();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidNetworkSendRequest}
*
* <pre>
* Internal proto used by the Android network to represent a message to send
* to the data center from the client.
* </pre>
*/
public static final class AndroidNetworkSendRequest extends
com.google.protobuf.GeneratedMessageLite
implements AndroidNetworkSendRequestOrBuilder {
// Use AndroidNetworkSendRequest.newBuilder() to construct.
private AndroidNetworkSendRequest(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private AndroidNetworkSendRequest(boolean noInit) {}
private static final AndroidNetworkSendRequest defaultInstance;
public static AndroidNetworkSendRequest getDefaultInstance() {
return defaultInstance;
}
public AndroidNetworkSendRequest getDefaultInstanceForType() {
return defaultInstance;
}
private AndroidNetworkSendRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
message_ = 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<AndroidNetworkSendRequest> PARSER =
new com.google.protobuf.AbstractParser<AndroidNetworkSendRequest>() {
public AndroidNetworkSendRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AndroidNetworkSendRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AndroidNetworkSendRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
// optional bytes message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString message_;
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
public com.google.protobuf.ByteString getMessage() {
return message_;
}
private void initFields() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
message_ = 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.writeMessage(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, message_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, message_);
}
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.AndroidService.AndroidNetworkSendRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest 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.AndroidService.AndroidNetworkSendRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest 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.AndroidService.AndroidNetworkSendRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest 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.AndroidService.AndroidNetworkSendRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest 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.AndroidService.AndroidNetworkSendRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest 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.AndroidService.AndroidNetworkSendRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidNetworkSendRequest}
*
* <pre>
* Internal proto used by the Android network to represent a message to send
* to the data center from the client.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequestOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
message_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest build() {
com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest result = new com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest.getDefaultInstance()) return this;
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasMessage()) {
setMessage(other.getMessage());
}
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.AndroidService.AndroidNetworkSendRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.AndroidNetworkSendRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public Builder setVersion(
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) {
version_ = builderForValue.build();
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) {
version_ =
com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*
* <pre>
* Required
* </pre>
*/
public Builder clearVersion() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional bytes message = 2;
private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
public com.google.protobuf.ByteString getMessage() {
return message_;
}
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
public Builder setMessage(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
return this;
}
/**
* <code>optional bytes message = 2;</code>
*
* <pre>
* Required
* </pre>
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
message_ = getDefaultInstance().getMessage();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidNetworkSendRequest)
}
static {
defaultInstance = new AndroidNetworkSendRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidNetworkSendRequest)
}
public interface AndroidTiclStateOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional .com.google.protos.ipc.invalidation.Version version = 1;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
boolean hasVersion();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion();
// optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
boolean hasTiclState();
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState getTiclState();
// optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
boolean hasMetadata();
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata getMetadata();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidTiclState}
*
* <pre>
* Protocol buffer used to store state for a persisted Ticl.
* </pre>
*/
public static final class AndroidTiclState extends
com.google.protobuf.GeneratedMessageLite
implements AndroidTiclStateOrBuilder {
// Use AndroidTiclState.newBuilder() to construct.
private AndroidTiclState(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private AndroidTiclState(boolean noInit) {}
private static final AndroidTiclState defaultInstance;
public static AndroidTiclState getDefaultInstance() {
return defaultInstance;
}
public AndroidTiclState getDefaultInstanceForType() {
return defaultInstance;
}
private AndroidTiclState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.Version.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = ticlState_.toBuilder();
}
ticlState_ = input.readMessage(com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ticlState_);
ticlState_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser<AndroidTiclState> PARSER =
new com.google.protobuf.AbstractParser<AndroidTiclState>() {
public AndroidTiclState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AndroidTiclState(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AndroidTiclState> getParserForType() {
return PARSER;
}
public interface MetadataOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional int32 client_type = 1;
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* All fields are required.
* </pre>
*/
boolean hasClientType();
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* All fields are required.
* </pre>
*/
int getClientType();
// optional bytes client_name = 2;
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
boolean hasClientName();
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
com.google.protobuf.ByteString getClientName();
// optional int64 ticl_id = 3;
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
boolean hasTiclId();
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
long getTiclId();
// optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
boolean hasClientConfig();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidTiclState.Metadata}
*/
public static final class Metadata extends
com.google.protobuf.GeneratedMessageLite
implements MetadataOrBuilder {
// Use Metadata.newBuilder() to construct.
private Metadata(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private Metadata(boolean noInit) {}
private static final Metadata defaultInstance;
public static Metadata getDefaultInstance() {
return defaultInstance;
}
public Metadata getDefaultInstanceForType() {
return defaultInstance;
}
private Metadata(
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;
}
case 24: {
bitField0_ |= 0x00000004;
ticlId_ = input.readInt64();
break;
}
case 34: {
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = clientConfig_.toBuilder();
}
clientConfig_ = input.readMessage(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientConfig_);
clientConfig_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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<Metadata> PARSER =
new com.google.protobuf.AbstractParser<Metadata>() {
public Metadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Metadata(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Metadata> 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>
* All fields are required.
* </pre>
*/
public boolean hasClientType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* All fields are required.
* </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>
* application client id.
* </pre>
*/
public boolean hasClientName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
public com.google.protobuf.ByteString getClientName() {
return clientName_;
}
// optional int64 ticl_id = 3;
public static final int TICL_ID_FIELD_NUMBER = 3;
private long ticlId_;
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
public boolean hasTiclId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
public long getTiclId() {
return ticlId_;
}
// optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;
public static final int CLIENT_CONFIG_FIELD_NUMBER = 4;
private com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP clientConfig_;
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public boolean hasClientConfig() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig() {
return clientConfig_;
}
private void initFields() {
clientType_ = 0;
clientName_ = com.google.protobuf.ByteString.EMPTY;
ticlId_ = 0L;
clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, clientType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, clientName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, ticlId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, clientConfig_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, clientType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, clientName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, ticlId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, clientConfig_);
}
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata 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.AndroidService.AndroidTiclState.Metadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata 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.AndroidService.AndroidTiclState.Metadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata 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.AndroidService.AndroidTiclState.Metadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata 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.AndroidService.AndroidTiclState.Metadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata 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.AndroidService.AndroidTiclState.Metadata prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidTiclState.Metadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.MetadataOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.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);
ticlId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata build() {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata result = new com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata(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_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ticlId_ = ticlId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.clientConfig_ = clientConfig_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance()) return this;
if (other.hasClientType()) {
setClientType(other.getClientType());
}
if (other.hasClientName()) {
setClientName(other.getClientName());
}
if (other.hasTiclId()) {
setTiclId(other.getTiclId());
}
if (other.hasClientConfig()) {
mergeClientConfig(other.getClientConfig());
}
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata) 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>
* All fields are required.
* </pre>
*/
public boolean hasClientType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* All fields are required.
* </pre>
*/
public int getClientType() {
return clientType_;
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* All fields are required.
* </pre>
*/
public Builder setClientType(int value) {
bitField0_ |= 0x00000001;
clientType_ = value;
return this;
}
/**
* <code>optional int32 client_type = 1;</code>
*
* <pre>
* All fields are required.
* </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>
* application client id.
* </pre>
*/
public boolean hasClientName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </pre>
*/
public com.google.protobuf.ByteString getClientName() {
return clientName_;
}
/**
* <code>optional bytes client_name = 2;</code>
*
* <pre>
* application client id.
* </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>
* application client id.
* </pre>
*/
public Builder clearClientName() {
bitField0_ = (bitField0_ & ~0x00000002);
clientName_ = getDefaultInstance().getClientName();
return this;
}
// optional int64 ticl_id = 3;
private long ticlId_ ;
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
public boolean hasTiclId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
public long getTiclId() {
return ticlId_;
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
public Builder setTiclId(long value) {
bitField0_ |= 0x00000004;
ticlId_ = value;
return this;
}
/**
* <code>optional int64 ticl_id = 3;</code>
*
* <pre>
* Ticl uniquifier.
* </pre>
*/
public Builder clearTiclId() {
bitField0_ = (bitField0_ & ~0x00000004);
ticlId_ = 0L;
return this;
}
// optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;
private com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public boolean hasClientConfig() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP getClientConfig() {
return clientConfig_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public Builder setClientConfig(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP value) {
if (value == null) {
throw new NullPointerException();
}
clientConfig_ = value;
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public Builder setClientConfig(
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.Builder builderForValue) {
clientConfig_ = builderForValue.build();
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public Builder mergeClientConfig(com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP value) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
clientConfig_ != com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance()) {
clientConfig_ =
com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.newBuilder(clientConfig_).mergeFrom(value).buildPartial();
} else {
clientConfig_ = value;
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.ClientConfigP client_config = 4;</code>
*
* <pre>
* client config.
* </pre>
*/
public Builder clearClientConfig() {
clientConfig_ = com.google.protos.ipc.invalidation.ClientProtocol.ClientConfigP.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidTiclState.Metadata)
}
static {
defaultInstance = new Metadata(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidTiclState.Metadata)
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_;
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
// optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;
public static final int TICL_STATE_FIELD_NUMBER = 2;
private com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState ticlState_;
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public boolean hasTiclState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState getTiclState() {
return ticlState_;
}
// optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;
public static final int METADATA_FIELD_NUMBER = 3;
private com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata metadata_;
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata getMetadata() {
return metadata_;
}
private void initFields() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
ticlState_ = com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.getDefaultInstance();
metadata_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, ticlState_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, metadata_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, ticlState_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, metadata_);
}
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.AndroidService.AndroidTiclState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState 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.AndroidService.AndroidTiclState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState 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.AndroidService.AndroidTiclState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState 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.AndroidService.AndroidTiclState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState 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.AndroidService.AndroidTiclState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState 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.AndroidService.AndroidTiclState prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidTiclState}
*
* <pre>
* Protocol buffer used to store state for a persisted Ticl.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
ticlState_ = com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
metadata_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState build() {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState result = new com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.ticlState_ = ticlState_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.metadata_ = metadata_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance()) return this;
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasTiclState()) {
mergeTiclState(other.getTiclState());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.AndroidService.AndroidTiclState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.Version version = 1;
private com.google.protos.ipc.invalidation.ClientProtocol.Version version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public com.google.protos.ipc.invalidation.ClientProtocol.Version getVersion() {
return version_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder setVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder setVersion(
com.google.protos.ipc.invalidation.ClientProtocol.Version.Builder builderForValue) {
version_ = builderForValue.build();
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder mergeVersion(com.google.protos.ipc.invalidation.ClientProtocol.Version value) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
version_ != com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance()) {
version_ =
com.google.protos.ipc.invalidation.ClientProtocol.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.Version version = 1;</code>
*/
public Builder clearVersion() {
version_ = com.google.protos.ipc.invalidation.ClientProtocol.Version.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;
private com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState ticlState_ = com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public boolean hasTiclState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState getTiclState() {
return ticlState_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public Builder setTiclState(com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState value) {
if (value == null) {
throw new NullPointerException();
}
ticlState_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public Builder setTiclState(
com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.Builder builderForValue) {
ticlState_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public Builder mergeTiclState(com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
ticlState_ != com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.getDefaultInstance()) {
ticlState_ =
com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.newBuilder(ticlState_).mergeFrom(value).buildPartial();
} else {
ticlState_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.InvalidationClientState ticl_state = 2;</code>
*
* <pre>
* Marshalled Ticl.
* </pre>
*/
public Builder clearTiclState() {
ticlState_ = com.google.protos.ipc.invalidation.JavaClient.InvalidationClientState.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;
private com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata metadata_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata getMetadata() {
return metadata_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public Builder setMetadata(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata value) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public Builder setMetadata(
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.Builder builderForValue) {
metadata_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public Builder mergeMetadata(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
metadata_ != com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance()) {
metadata_ =
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState.Metadata metadata = 3;</code>
*
* <pre>
* Extra state needed to construct a Ticl.
* </pre>
*/
public Builder clearMetadata() {
metadata_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Metadata.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidTiclState)
}
static {
defaultInstance = new AndroidTiclState(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidTiclState)
}
public interface AndroidTiclStateWithDigestOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
boolean hasState();
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState getState();
// optional bytes digest = 2;
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
boolean hasDigest();
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
com.google.protobuf.ByteString getDigest();
}
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidTiclStateWithDigest}
*
* <pre>
* An AndroidTiclState state plus a digest; this is the protocol buffer actually
* stored persistently by the service.
* </pre>
*/
public static final class AndroidTiclStateWithDigest extends
com.google.protobuf.GeneratedMessageLite
implements AndroidTiclStateWithDigestOrBuilder {
// Use AndroidTiclStateWithDigest.newBuilder() to construct.
private AndroidTiclStateWithDigest(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private AndroidTiclStateWithDigest(boolean noInit) {}
private static final AndroidTiclStateWithDigest defaultInstance;
public static AndroidTiclStateWithDigest getDefaultInstance() {
return defaultInstance;
}
public AndroidTiclStateWithDigest getDefaultInstanceForType() {
return defaultInstance;
}
private AndroidTiclStateWithDigest(
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.AndroidService.AndroidTiclState.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = state_.toBuilder();
}
state_ = input.readMessage(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(state_);
state_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
digest_ = 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<AndroidTiclStateWithDigest> PARSER =
new com.google.protobuf.AbstractParser<AndroidTiclStateWithDigest>() {
public AndroidTiclStateWithDigest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AndroidTiclStateWithDigest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AndroidTiclStateWithDigest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;
public static final int STATE_FIELD_NUMBER = 1;
private com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState state_;
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState getState() {
return state_;
}
// optional bytes digest = 2;
public static final int DIGEST_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString digest_;
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
public boolean hasDigest() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
public com.google.protobuf.ByteString getDigest() {
return digest_;
}
private void initFields() {
state_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance();
digest_ = 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.writeMessage(1, state_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, digest_);
}
}
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, state_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, digest_);
}
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.AndroidService.AndroidTiclStateWithDigest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest 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.AndroidService.AndroidTiclStateWithDigest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest 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.AndroidService.AndroidTiclStateWithDigest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest 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.AndroidService.AndroidTiclStateWithDigest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest 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.AndroidService.AndroidTiclStateWithDigest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest 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.AndroidService.AndroidTiclStateWithDigest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code com.google.protos.ipc.invalidation.AndroidTiclStateWithDigest}
*
* <pre>
* An AndroidTiclState state plus a digest; this is the protocol buffer actually
* stored persistently by the service.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest, Builder>
implements com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigestOrBuilder {
// Construct using com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
state_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
digest_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest getDefaultInstanceForType() {
return com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest.getDefaultInstance();
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest build() {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest buildPartial() {
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest result = new com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.state_ = state_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.digest_ = digest_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest other) {
if (other == com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest.getDefaultInstance()) return this;
if (other.hasState()) {
mergeState(other.getState());
}
if (other.hasDigest()) {
setDigest(other.getDigest());
}
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.AndroidService.AndroidTiclStateWithDigest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.ipc.invalidation.AndroidService.AndroidTiclStateWithDigest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;
private com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState state_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance();
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState getState() {
return state_;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public Builder setState(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public Builder setState(
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.Builder builderForValue) {
state_ = builderForValue.build();
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public Builder mergeState(com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState value) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
state_ != com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance()) {
state_ =
com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.newBuilder(state_).mergeFrom(value).buildPartial();
} else {
state_ = value;
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.google.protos.ipc.invalidation.AndroidTiclState state = 1;</code>
*/
public Builder clearState() {
state_ = com.google.protos.ipc.invalidation.AndroidService.AndroidTiclState.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional bytes digest = 2;
private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
public boolean hasDigest() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
public com.google.protobuf.ByteString getDigest() {
return digest_;
}
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
public Builder setDigest(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
digest_ = value;
return this;
}
/**
* <code>optional bytes digest = 2;</code>
*
* <pre>
* Digest of "state."
* </pre>
*/
public Builder clearDigest() {
bitField0_ = (bitField0_ & ~0x00000002);
digest_ = getDefaultInstance().getDigest();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.ipc.invalidation.AndroidTiclStateWithDigest)
}
static {
defaultInstance = new AndroidTiclStateWithDigest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.ipc.invalidation.AndroidTiclStateWithDigest)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}