/java-api/src/net/stateupdateservice/StateUpdateService.java
Java | 1429 lines | 905 code | 81 blank | 443 comment | 104 complexity | 5b6367cea37f54d297e5432db8a642ff MD5 | raw file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: state_update_service.proto
- package net.stateupdateservice;
- public final class StateUpdateService {
- private StateUpdateService() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public interface PartialUpdateOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
- // required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- boolean hasType();
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType getType();
- // optional bytes appendBytes = 2;
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- boolean hasAppendBytes();
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- com.google.protobuf.ByteString getAppendBytes();
- // optional string protobufField = 4;
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- boolean hasProtobufField();
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- java.lang.String getProtobufField();
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- com.google.protobuf.ByteString
- getProtobufFieldBytes();
- // optional sint64 protobufBeginSlice = 5;
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- boolean hasProtobufBeginSlice();
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- long getProtobufBeginSlice();
- // optional sint64 protobufEndSlice = 6;
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- boolean hasProtobufEndSlice();
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- long getProtobufEndSlice();
- }
- /**
- * Protobuf type {@code stateupdateservice.PartialUpdate}
- */
- public static final class PartialUpdate extends
- com.google.protobuf.GeneratedMessage
- implements PartialUpdateOrBuilder {
- // Use PartialUpdate.newBuilder() to construct.
- private PartialUpdate(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private PartialUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final PartialUpdate defaultInstance;
- public static PartialUpdate getDefaultInstance() {
- return defaultInstance;
- }
- public PartialUpdate getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private PartialUpdate(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- int rawValue = input.readEnum();
- net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType value = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- bitField0_ |= 0x00000001;
- type_ = value;
- }
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- appendBytes_ = input.readBytes();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- protobufField_ = input.readBytes();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000008;
- protobufBeginSlice_ = input.readSInt64();
- break;
- }
- case 48: {
- bitField0_ |= 0x00000010;
- protobufEndSlice_ = input.readSInt64();
- 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 {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- net.stateupdateservice.StateUpdateService.PartialUpdate.class, net.stateupdateservice.StateUpdateService.PartialUpdate.Builder.class);
- }
- public static com.google.protobuf.Parser<PartialUpdate> PARSER =
- new com.google.protobuf.AbstractParser<PartialUpdate>() {
- public PartialUpdate parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PartialUpdate(input, extensionRegistry);
- }
- };
- @java.lang.Override
- public com.google.protobuf.Parser<PartialUpdate> getParserForType() {
- return PARSER;
- }
- /**
- * Protobuf enum {@code stateupdateservice.PartialUpdate.PartialUpdateType}
- */
- public enum PartialUpdateType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>APPEND = 0;</code>
- *
- * <pre>
- * Basic append type, supported in protocol version 1
- * </pre>
- */
- APPEND(0, 0),
- /**
- * <code>PROTOBUF_MERGE = 1;</code>
- *
- * <pre>
- * Protobuf merge type, supported in protocol version 1, you should have set an original value and included a protobuf descriptor
- * </pre>
- */
- PROTOBUF_MERGE(1, 1),
- /**
- * <code>PROTOBUF_REPEATED_SLICE = 2;</code>
- *
- * <pre>
- * Protobuf repeated field slice, additional operation supported in protocol version 2, not yet implemented
- * </pre>
- */
- PROTOBUF_REPEATED_SLICE(2, 2),
- ;
- /**
- * <code>APPEND = 0;</code>
- *
- * <pre>
- * Basic append type, supported in protocol version 1
- * </pre>
- */
- public static final int APPEND_VALUE = 0;
- /**
- * <code>PROTOBUF_MERGE = 1;</code>
- *
- * <pre>
- * Protobuf merge type, supported in protocol version 1, you should have set an original value and included a protobuf descriptor
- * </pre>
- */
- public static final int PROTOBUF_MERGE_VALUE = 1;
- /**
- * <code>PROTOBUF_REPEATED_SLICE = 2;</code>
- *
- * <pre>
- * Protobuf repeated field slice, additional operation supported in protocol version 2, not yet implemented
- * </pre>
- */
- public static final int PROTOBUF_REPEATED_SLICE_VALUE = 2;
- public final int getNumber() { return value; }
- public static PartialUpdateType valueOf(int value) {
- switch (value) {
- case 0: return APPEND;
- case 1: return PROTOBUF_MERGE;
- case 2: return PROTOBUF_REPEATED_SLICE;
- default: return null;
- }
- }
- public static com.google.protobuf.Internal.EnumLiteMap<PartialUpdateType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<PartialUpdateType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<PartialUpdateType>() {
- public PartialUpdateType findValueByNumber(int number) {
- return PartialUpdateType.valueOf(number);
- }
- };
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return net.stateupdateservice.StateUpdateService.PartialUpdate.getDescriptor().getEnumTypes().get(0);
- }
- private static final PartialUpdateType[] VALUES = values();
- public static PartialUpdateType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int index;
- private final int value;
- private PartialUpdateType(int index, int value) {
- this.index = index;
- this.value = value;
- }
- // @@protoc_insertion_point(enum_scope:stateupdateservice.PartialUpdate.PartialUpdateType)
- }
- private int bitField0_;
- // required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;
- public static final int TYPE_FIELD_NUMBER = 1;
- private net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType type_;
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- public net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType getType() {
- return type_;
- }
- // optional bytes appendBytes = 2;
- public static final int APPENDBYTES_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString appendBytes_;
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- public boolean hasAppendBytes() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- public com.google.protobuf.ByteString getAppendBytes() {
- return appendBytes_;
- }
- // optional string protobufField = 4;
- public static final int PROTOBUFFIELD_FIELD_NUMBER = 4;
- private java.lang.Object protobufField_;
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public boolean hasProtobufField() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public java.lang.String getProtobufField() {
- java.lang.Object ref = protobufField_;
- 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()) {
- protobufField_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public com.google.protobuf.ByteString
- getProtobufFieldBytes() {
- java.lang.Object ref = protobufField_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- protobufField_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- // optional sint64 protobufBeginSlice = 5;
- public static final int PROTOBUFBEGINSLICE_FIELD_NUMBER = 5;
- private long protobufBeginSlice_;
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- public boolean hasProtobufBeginSlice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- public long getProtobufBeginSlice() {
- return protobufBeginSlice_;
- }
- // optional sint64 protobufEndSlice = 6;
- public static final int PROTOBUFENDSLICE_FIELD_NUMBER = 6;
- private long protobufEndSlice_;
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- public boolean hasProtobufEndSlice() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- public long getProtobufEndSlice() {
- return protobufEndSlice_;
- }
- private void initFields() {
- type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
- appendBytes_ = com.google.protobuf.ByteString.EMPTY;
- protobufField_ = "";
- protobufBeginSlice_ = 0L;
- protobufEndSlice_ = 0L;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, type_.getNumber());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, appendBytes_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getProtobufFieldBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeSInt64(5, protobufBeginSlice_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeSInt64(6, protobufEndSlice_);
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, type_.getNumber());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, appendBytes_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getProtobufFieldBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(5, protobufBeginSlice_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(6, protobufEndSlice_);
- }
- size += getUnknownFields().getSerializedSize();
- 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 net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static net.stateupdateservice.StateUpdateService.PartialUpdate 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(net.stateupdateservice.StateUpdateService.PartialUpdate prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code stateupdateservice.PartialUpdate}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements net.stateupdateservice.StateUpdateService.PartialUpdateOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- net.stateupdateservice.StateUpdateService.PartialUpdate.class, net.stateupdateservice.StateUpdateService.PartialUpdate.Builder.class);
- }
- // Construct using net.stateupdateservice.StateUpdateService.PartialUpdate.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
- bitField0_ = (bitField0_ & ~0x00000001);
- appendBytes_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- protobufField_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- protobufBeginSlice_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- protobufEndSlice_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_descriptor;
- }
- public net.stateupdateservice.StateUpdateService.PartialUpdate getDefaultInstanceForType() {
- return net.stateupdateservice.StateUpdateService.PartialUpdate.getDefaultInstance();
- }
- public net.stateupdateservice.StateUpdateService.PartialUpdate build() {
- net.stateupdateservice.StateUpdateService.PartialUpdate result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public net.stateupdateservice.StateUpdateService.PartialUpdate buildPartial() {
- net.stateupdateservice.StateUpdateService.PartialUpdate result = new net.stateupdateservice.StateUpdateService.PartialUpdate(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.appendBytes_ = appendBytes_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.protobufField_ = protobufField_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.protobufBeginSlice_ = protobufBeginSlice_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.protobufEndSlice_ = protobufEndSlice_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof net.stateupdateservice.StateUpdateService.PartialUpdate) {
- return mergeFrom((net.stateupdateservice.StateUpdateService.PartialUpdate)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(net.stateupdateservice.StateUpdateService.PartialUpdate other) {
- if (other == net.stateupdateservice.StateUpdateService.PartialUpdate.getDefaultInstance()) return this;
- if (other.hasType()) {
- setType(other.getType());
- }
- if (other.hasAppendBytes()) {
- setAppendBytes(other.getAppendBytes());
- }
- if (other.hasProtobufField()) {
- bitField0_ |= 0x00000004;
- protobufField_ = other.protobufField_;
- onChanged();
- }
- if (other.hasProtobufBeginSlice()) {
- setProtobufBeginSlice(other.getProtobufBeginSlice());
- }
- if (other.hasProtobufEndSlice()) {
- setProtobufEndSlice(other.getProtobufEndSlice());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
- public final boolean isInitialized() {
- if (!hasType()) {
-
- return false;
- }
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- net.stateupdateservice.StateUpdateService.PartialUpdate parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (net.stateupdateservice.StateUpdateService.PartialUpdate) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- // required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;
- private net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- public net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType getType() {
- return type_;
- }
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- public Builder setType(net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
- *
- * <pre>
- * Operation type
- * </pre>
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
- onChanged();
- return this;
- }
- // optional bytes appendBytes = 2;
- private com.google.protobuf.ByteString appendBytes_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- public boolean hasAppendBytes() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- public com.google.protobuf.ByteString getAppendBytes() {
- return appendBytes_;
- }
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- public Builder setAppendBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- appendBytes_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bytes appendBytes = 2;</code>
- *
- * <pre>
- * Bytes to append
- * </pre>
- */
- public Builder clearAppendBytes() {
- bitField0_ = (bitField0_ & ~0x00000002);
- appendBytes_ = getDefaultInstance().getAppendBytes();
- onChanged();
- return this;
- }
- // optional string protobufField = 4;
- private java.lang.Object protobufField_ = "";
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public boolean hasProtobufField() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public java.lang.String getProtobufField() {
- java.lang.Object ref = protobufField_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- protobufField_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public com.google.protobuf.ByteString
- getProtobufFieldBytes() {
- java.lang.Object ref = protobufField_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- protobufField_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public Builder setProtobufField(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- protobufField_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public Builder clearProtobufField() {
- bitField0_ = (bitField0_ & ~0x00000004);
- protobufField_ = getDefaultInstance().getProtobufField();
- onChanged();
- return this;
- }
- /**
- * <code>optional string protobufField = 4;</code>
- *
- * <pre>
- * Used for protobuf field update, NOT YET IMPLEMENTED
- * </pre>
- */
- public Builder setProtobufFieldBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- protobufField_ = value;
- onChanged();
- return this;
- }
- // optional sint64 protobufBeginSlice = 5;
- private long protobufBeginSlice_ ;
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- public boolean hasProtobufBeginSlice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- public long getProtobufBeginSlice() {
- return protobufBeginSlice_;
- }
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- public Builder setProtobufBeginSlice(long value) {
- bitField0_ |= 0x00000008;
- protobufBeginSlice_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional sint64 protobufBeginSlice = 5;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, begin index, not yet implemented
- * </pre>
- */
- public Builder clearProtobufBeginSlice() {
- bitField0_ = (bitField0_ & ~0x00000008);
- protobufBeginSlice_ = 0L;
- onChanged();
- return this;
- }
- // optional sint64 protobufEndSlice = 6;
- private long protobufEndSlice_ ;
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- public boolean hasProtobufEndSlice() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- public long getProtobufEndSlice() {
- return protobufEndSlice_;
- }
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- public Builder setProtobufEndSlice(long value) {
- bitField0_ |= 0x00000010;
- protobufEndSlice_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional sint64 protobufEndSlice = 6;</code>
- *
- * <pre>
- * Used for protobuf repeated field slice, end index, not yet implemented
- * </pre>
- */
- public Builder clearProtobufEndSlice() {
- bitField0_ = (bitField0_ & ~0x00000010);
- protobufEndSlice_ = 0L;
- onChanged();
- return this;
- }
- // @@protoc_insertion_point(builder_scope:stateupdateservice.PartialUpdate)
- }
- static {
- defaultInstance = new PartialUpdate(true);
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:stateupdateservice.PartialUpdate)
- }
- public interface UpdateStateRequestSetOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
- // repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;
- /**
- * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
- */
- java.util.List<net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest>
- getUpdatesList();
- /**
- * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
- */
- net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest getUpdates(int index);
- /**
- * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
- */
- int getUpdatesCount();
- /**
- * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
- */
- java.util.List<? extends net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequestOrBuilder>
- getUpdatesOrBuilderList();
- /**
- * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
- */
- net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequestOrBuilder getUpdatesOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code stateupdateservice.UpdateStateRequestSet}
- */
- public static final class UpdateStateRequestSet extends
- com.google.protobuf.GeneratedMessage
- implements UpdateStateRequestSetOrBuilder {
- // Use UpdateStateRequestSet.newBuilder() to construct.
- private UpdateStateRequestSet(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private UpdateStateRequestSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final UpdateStateRequestSet defaultInstance;
- public static UpdateStateRequestSet getDefaultInstance() {
- return defaultInstance;
- }
- public UpdateStateRequestSet getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private UpdateStateRequestSet(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- updates_ = new java.util.ArrayList<net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest>();
- mutable_bitField0_ |= 0x00000001;
- }
- updates_.add(input.readMessage(net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest.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)) {
- updates_ = java.util.Collections.unmodifiableList(updates_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.class, net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.Builder.class);
- }
- public static com.google.protobuf.Parser<UpdateStateRequestSet> PARSER =
- new com.google.protobuf.AbstractParser<UpdateStateRequestSet>() {
- public UpdateStateRequestSet parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateStateRequestSet(input, extensionRegistry);
- }
- };
- @java.lang.Override
- public com.google.protobuf.Parser<UpdateStateRequestSet> getParserForType() {
- return PARSER;
- }
- public interface UpdateStateRequestOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
- // required string key = 1;
- /**
- * <code>required string key = 1;</code>
- */
- boolean hasKey();
- /**
- * <code>required string key = 1;</code>
- */
- java.lang.String getKey();
- /**
- * <code>required string key = 1;</code>
- */
- com.google.protobuf.ByteString
- getKeyBytes();
- // optional bytes value = 2;
- /**
- * <code>optional bytes value = 2;</code>
- */
- boolean hasValue();
- /**
- * <code>optional bytes value = 2;</code>
- */
- com.google.protobuf.ByteString getValue();
- // optional .stateupdateservice.PartialUpdate partialUpdate = 3;
- /**
- * <code>optional .stateupdateservice.PartialUpdate partialUpdate = 3;</code>
- */
- boolean hasPartialUpdate();
- /**
- * <code>optional .stateupdateservice.PartialUpdate partialUpdate = 3;</code>
- */
- net.stateupdateservice.StateUpdateService.PartialUpdate getPartialUpdate();
- /**
- * <code>optional .stateupdateservice.PartialUpdate partialUpdate = 3;</code>
- */
- net.stateupdateservice.StateUpdateService.PartialUpdateOrBuilder getPartialUpdateOrBuilder();
- // optional .google.protobuf.DescriptorProto protobufDescriptor = 4;
- /**
- * <code>optional .google.protobuf.DescriptorProto protobufDescriptor = 4;</code>
- */
- boolean hasProtobufDescriptor();
- /**
- * <code>optional .google.protobuf.DescriptorProto protobufDescriptor = 4;</code>
- */
- com.google.protobuf.DescriptorProtos.DescriptorProto getProtobufDescriptor();
- /**
- * <code>optional .google.protobuf.DescriptorProto protobufDescriptor = 4;</code>
- */
- com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtobufDescriptorOrBuilder();
- }
- /**
- * Protobuf type {@code stateupdateservice.UpdateStateRequestSet.UpdateStateRequest}
- */
- public static final class UpdateStateRequest extends
- com.google.protobuf.GeneratedMessage
- implements UpdateStateRequestOrBuilder {
- // Use UpdateStateRequest.newBuilder() to construct.
- private UpdateStateRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private UpdateStateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final UpdateStateRequest defaultInstance;
- public static UpdateStateRequest getDefaultInstance() {
- return defaultInstance;
- }
- public UpdateStateRequest getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private UpdateStateRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- key_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- value_ = input.readBytes();
- break;
- }
- case 26: {
- net.stateupdateservice.StateUpdateService.PartialUpdate.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = partialUpdate_.toBuilder();
- }
- partialUpdate_ = input.readMessage(net.stateupdateservice.StateUpdateService.PartialUpdate.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(partialUpdate_);
- partialUpdate_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- case 34: {
- com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = protobufDescriptor_.toBuilder();
- }
- protobufDescriptor_ = input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(protobufDescriptor_);
- protobufDescriptor_ = 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 {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_UpdateStateRequest_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_UpdateStateRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest.class, net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest.Builder.class);
- }
- public static com.google.protobuf.Parser<UpdateStateRequest> PARSER =
- new com.google.protobuf.AbstractParser<UpdateStateRequest>() {
- public UpdateStateRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateStateRequest(input, extensionRegistry);
- }
- };
- @java.lang.Override
- public com.google.protobuf.Parser<UpdateStateRequest> getParserForType() {
- return PARSER;
- }
- private int bitField0_;
- // required string key = 1;