// Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/main/java/com/orbekk/same/services.proto package com.orbekk.same; public final class Services { private Services() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface EmptyOrBuilder extends com.google.protobuf.MessageOrBuilder { } public static final class Empty extends com.google.protobuf.GeneratedMessage implements EmptyOrBuilder { // Use Empty.newBuilder() to construct. private Empty(Builder builder) { super(builder); } private Empty(boolean noInit) {} private static final Empty defaultInstance; public static Empty getDefaultInstance() { return defaultInstance; } public Empty getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Empty_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Empty_fieldAccessorTable; } 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(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.orbekk.same.Services.Empty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.Empty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.Empty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.Empty parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.Empty parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.Empty parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.Empty parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.Empty parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.Empty parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.Empty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.Empty 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.EmptyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Empty_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Empty_fieldAccessorTable; } // Construct using com.orbekk.same.Services.Empty.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.Empty.getDescriptor(); } public com.orbekk.same.Services.Empty getDefaultInstanceForType() { return com.orbekk.same.Services.Empty.getDefaultInstance(); } public com.orbekk.same.Services.Empty build() { com.orbekk.same.Services.Empty result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.Empty buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.Empty result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.Empty buildPartial() { com.orbekk.same.Services.Empty result = new com.orbekk.same.Services.Empty(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.Empty) { return mergeFrom((com.orbekk.same.Services.Empty)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.Empty other) { if (other == com.orbekk.same.Services.Empty.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } } } } // @@protoc_insertion_point(builder_scope:com.orbekk.same.Empty) } static { defaultInstance = new Empty(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.Empty) } public interface UpdateComponentResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // required bool success = 1; boolean hasSuccess(); boolean getSuccess(); } public static final class UpdateComponentResponse extends com.google.protobuf.GeneratedMessage implements UpdateComponentResponseOrBuilder { // Use UpdateComponentResponse.newBuilder() to construct. private UpdateComponentResponse(Builder builder) { super(builder); } private UpdateComponentResponse(boolean noInit) {} private static final UpdateComponentResponse defaultInstance; public static UpdateComponentResponse getDefaultInstance() { return defaultInstance; } public UpdateComponentResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_UpdateComponentResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_UpdateComponentResponse_fieldAccessorTable; } private int bitField0_; // required bool success = 1; public static final int SUCCESS_FIELD_NUMBER = 1; private boolean success_; public boolean hasSuccess() { return ((bitField0_ & 0x00000001) == 0x00000001); } public boolean getSuccess() { return success_; } private void initFields() { success_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasSuccess()) { 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.writeBool(1, success_); } 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 .computeBoolSize(1, success_); } 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 com.orbekk.same.Services.UpdateComponentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.UpdateComponentResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.UpdateComponentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.UpdateComponentResponse 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.UpdateComponentResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_UpdateComponentResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_UpdateComponentResponse_fieldAccessorTable; } // Construct using com.orbekk.same.Services.UpdateComponentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); success_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.UpdateComponentResponse.getDescriptor(); } public com.orbekk.same.Services.UpdateComponentResponse getDefaultInstanceForType() { return com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance(); } public com.orbekk.same.Services.UpdateComponentResponse build() { com.orbekk.same.Services.UpdateComponentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.UpdateComponentResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.UpdateComponentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.UpdateComponentResponse buildPartial() { com.orbekk.same.Services.UpdateComponentResponse result = new com.orbekk.same.Services.UpdateComponentResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.success_ = success_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.UpdateComponentResponse) { return mergeFrom((com.orbekk.same.Services.UpdateComponentResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.UpdateComponentResponse other) { if (other == com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance()) return this; if (other.hasSuccess()) { setSuccess(other.getSuccess()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSuccess()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { bitField0_ |= 0x00000001; success_ = input.readBool(); break; } } } } private int bitField0_; // required bool success = 1; private boolean success_ ; public boolean hasSuccess() { return ((bitField0_ & 0x00000001) == 0x00000001); } public boolean getSuccess() { return success_; } public Builder setSuccess(boolean value) { bitField0_ |= 0x00000001; success_ = value; onChanged(); return this; } public Builder clearSuccess() { bitField0_ = (bitField0_ & ~0x00000001); success_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.UpdateComponentResponse) } static { defaultInstance = new UpdateComponentResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.UpdateComponentResponse) } public interface SystemStatusOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string extra_info = 7; java.util.List getExtraInfoList(); int getExtraInfoCount(); String getExtraInfo(int index); // optional .com.orbekk.same.MasterState master_status = 1; boolean hasMasterStatus(); com.orbekk.same.Services.MasterState getMasterStatus(); com.orbekk.same.Services.MasterStateOrBuilder getMasterStatusOrBuilder(); // repeated .com.orbekk.same.Component master_state_component = 2; java.util.List getMasterStateComponentList(); com.orbekk.same.Services.Component getMasterStateComponent(int index); int getMasterStateComponentCount(); java.util.List getMasterStateComponentOrBuilderList(); com.orbekk.same.Services.ComponentOrBuilder getMasterStateComponentOrBuilder( int index); // repeated string extra_master_info = 3; java.util.List getExtraMasterInfoList(); int getExtraMasterInfoCount(); String getExtraMasterInfo(int index); // optional .com.orbekk.same.ClientState client_status = 4; boolean hasClientStatus(); com.orbekk.same.Services.ClientState getClientStatus(); com.orbekk.same.Services.ClientStateOrBuilder getClientStatusOrBuilder(); // optional .com.orbekk.same.MasterState client_master_status = 8; boolean hasClientMasterStatus(); com.orbekk.same.Services.MasterState getClientMasterStatus(); com.orbekk.same.Services.MasterStateOrBuilder getClientMasterStatusOrBuilder(); // repeated .com.orbekk.same.Component client_state_component = 5; java.util.List getClientStateComponentList(); com.orbekk.same.Services.Component getClientStateComponent(int index); int getClientStateComponentCount(); java.util.List getClientStateComponentOrBuilderList(); com.orbekk.same.Services.ComponentOrBuilder getClientStateComponentOrBuilder( int index); // repeated string extra_client_info = 6; java.util.List getExtraClientInfoList(); int getExtraClientInfoCount(); String getExtraClientInfo(int index); } public static final class SystemStatus extends com.google.protobuf.GeneratedMessage implements SystemStatusOrBuilder { // Use SystemStatus.newBuilder() to construct. private SystemStatus(Builder builder) { super(builder); } private SystemStatus(boolean noInit) {} private static final SystemStatus defaultInstance; public static SystemStatus getDefaultInstance() { return defaultInstance; } public SystemStatus getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_SystemStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_SystemStatus_fieldAccessorTable; } private int bitField0_; // repeated string extra_info = 7; public static final int EXTRA_INFO_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList extraInfo_; public java.util.List getExtraInfoList() { return extraInfo_; } public int getExtraInfoCount() { return extraInfo_.size(); } public String getExtraInfo(int index) { return extraInfo_.get(index); } // optional .com.orbekk.same.MasterState master_status = 1; public static final int MASTER_STATUS_FIELD_NUMBER = 1; private com.orbekk.same.Services.MasterState masterStatus_; public boolean hasMasterStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.orbekk.same.Services.MasterState getMasterStatus() { return masterStatus_; } public com.orbekk.same.Services.MasterStateOrBuilder getMasterStatusOrBuilder() { return masterStatus_; } // repeated .com.orbekk.same.Component master_state_component = 2; public static final int MASTER_STATE_COMPONENT_FIELD_NUMBER = 2; private java.util.List masterStateComponent_; public java.util.List getMasterStateComponentList() { return masterStateComponent_; } public java.util.List getMasterStateComponentOrBuilderList() { return masterStateComponent_; } public int getMasterStateComponentCount() { return masterStateComponent_.size(); } public com.orbekk.same.Services.Component getMasterStateComponent(int index) { return masterStateComponent_.get(index); } public com.orbekk.same.Services.ComponentOrBuilder getMasterStateComponentOrBuilder( int index) { return masterStateComponent_.get(index); } // repeated string extra_master_info = 3; public static final int EXTRA_MASTER_INFO_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList extraMasterInfo_; public java.util.List getExtraMasterInfoList() { return extraMasterInfo_; } public int getExtraMasterInfoCount() { return extraMasterInfo_.size(); } public String getExtraMasterInfo(int index) { return extraMasterInfo_.get(index); } // optional .com.orbekk.same.ClientState client_status = 4; public static final int CLIENT_STATUS_FIELD_NUMBER = 4; private com.orbekk.same.Services.ClientState clientStatus_; public boolean hasClientStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.orbekk.same.Services.ClientState getClientStatus() { return clientStatus_; } public com.orbekk.same.Services.ClientStateOrBuilder getClientStatusOrBuilder() { return clientStatus_; } // optional .com.orbekk.same.MasterState client_master_status = 8; public static final int CLIENT_MASTER_STATUS_FIELD_NUMBER = 8; private com.orbekk.same.Services.MasterState clientMasterStatus_; public boolean hasClientMasterStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.orbekk.same.Services.MasterState getClientMasterStatus() { return clientMasterStatus_; } public com.orbekk.same.Services.MasterStateOrBuilder getClientMasterStatusOrBuilder() { return clientMasterStatus_; } // repeated .com.orbekk.same.Component client_state_component = 5; public static final int CLIENT_STATE_COMPONENT_FIELD_NUMBER = 5; private java.util.List clientStateComponent_; public java.util.List getClientStateComponentList() { return clientStateComponent_; } public java.util.List getClientStateComponentOrBuilderList() { return clientStateComponent_; } public int getClientStateComponentCount() { return clientStateComponent_.size(); } public com.orbekk.same.Services.Component getClientStateComponent(int index) { return clientStateComponent_.get(index); } public com.orbekk.same.Services.ComponentOrBuilder getClientStateComponentOrBuilder( int index) { return clientStateComponent_.get(index); } // repeated string extra_client_info = 6; public static final int EXTRA_CLIENT_INFO_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList extraClientInfo_; public java.util.List getExtraClientInfoList() { return extraClientInfo_; } public int getExtraClientInfoCount() { return extraClientInfo_.size(); } public String getExtraClientInfo(int index) { return extraClientInfo_.get(index); } private void initFields() { extraInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; masterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); masterStateComponent_ = java.util.Collections.emptyList(); extraMasterInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; clientStatus_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); clientMasterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); clientStateComponent_ = java.util.Collections.emptyList(); extraClientInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getMasterStateComponentCount(); i++) { if (!getMasterStateComponent(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getClientStateComponentCount(); i++) { if (!getClientStateComponent(i).isInitialized()) { 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.writeMessage(1, masterStatus_); } for (int i = 0; i < masterStateComponent_.size(); i++) { output.writeMessage(2, masterStateComponent_.get(i)); } for (int i = 0; i < extraMasterInfo_.size(); i++) { output.writeBytes(3, extraMasterInfo_.getByteString(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, clientStatus_); } for (int i = 0; i < clientStateComponent_.size(); i++) { output.writeMessage(5, clientStateComponent_.get(i)); } for (int i = 0; i < extraClientInfo_.size(); i++) { output.writeBytes(6, extraClientInfo_.getByteString(i)); } for (int i = 0; i < extraInfo_.size(); i++) { output.writeBytes(7, extraInfo_.getByteString(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(8, clientMasterStatus_); } 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 .computeMessageSize(1, masterStatus_); } for (int i = 0; i < masterStateComponent_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, masterStateComponent_.get(i)); } { int dataSize = 0; for (int i = 0; i < extraMasterInfo_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(extraMasterInfo_.getByteString(i)); } size += dataSize; size += 1 * getExtraMasterInfoList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, clientStatus_); } for (int i = 0; i < clientStateComponent_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, clientStateComponent_.get(i)); } { int dataSize = 0; for (int i = 0; i < extraClientInfo_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(extraClientInfo_.getByteString(i)); } size += dataSize; size += 1 * getExtraClientInfoList().size(); } { int dataSize = 0; for (int i = 0; i < extraInfo_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(extraInfo_.getByteString(i)); } size += dataSize; size += 1 * getExtraInfoList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, clientMasterStatus_); } 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 com.orbekk.same.Services.SystemStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.SystemStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.SystemStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.SystemStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.SystemStatus 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.SystemStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_SystemStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_SystemStatus_fieldAccessorTable; } // Construct using com.orbekk.same.Services.SystemStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMasterStatusFieldBuilder(); getMasterStateComponentFieldBuilder(); getClientStatusFieldBuilder(); getClientMasterStatusFieldBuilder(); getClientStateComponentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); extraInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (masterStatusBuilder_ == null) { masterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); } else { masterStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (masterStateComponentBuilder_ == null) { masterStateComponent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { masterStateComponentBuilder_.clear(); } extraMasterInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); if (clientStatusBuilder_ == null) { clientStatus_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); } else { clientStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (clientMasterStatusBuilder_ == null) { clientMasterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); } else { clientMasterStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (clientStateComponentBuilder_ == null) { clientStateComponent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { clientStateComponentBuilder_.clear(); } extraClientInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.SystemStatus.getDescriptor(); } public com.orbekk.same.Services.SystemStatus getDefaultInstanceForType() { return com.orbekk.same.Services.SystemStatus.getDefaultInstance(); } public com.orbekk.same.Services.SystemStatus build() { com.orbekk.same.Services.SystemStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.SystemStatus buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.SystemStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.SystemStatus buildPartial() { com.orbekk.same.Services.SystemStatus result = new com.orbekk.same.Services.SystemStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { extraInfo_ = new com.google.protobuf.UnmodifiableLazyStringList( extraInfo_); bitField0_ = (bitField0_ & ~0x00000001); } result.extraInfo_ = extraInfo_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (masterStatusBuilder_ == null) { result.masterStatus_ = masterStatus_; } else { result.masterStatus_ = masterStatusBuilder_.build(); } if (masterStateComponentBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { masterStateComponent_ = java.util.Collections.unmodifiableList(masterStateComponent_); bitField0_ = (bitField0_ & ~0x00000004); } result.masterStateComponent_ = masterStateComponent_; } else { result.masterStateComponent_ = masterStateComponentBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { extraMasterInfo_ = new com.google.protobuf.UnmodifiableLazyStringList( extraMasterInfo_); bitField0_ = (bitField0_ & ~0x00000008); } result.extraMasterInfo_ = extraMasterInfo_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000002; } if (clientStatusBuilder_ == null) { result.clientStatus_ = clientStatus_; } else { result.clientStatus_ = clientStatusBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000004; } if (clientMasterStatusBuilder_ == null) { result.clientMasterStatus_ = clientMasterStatus_; } else { result.clientMasterStatus_ = clientMasterStatusBuilder_.build(); } if (clientStateComponentBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { clientStateComponent_ = java.util.Collections.unmodifiableList(clientStateComponent_); bitField0_ = (bitField0_ & ~0x00000040); } result.clientStateComponent_ = clientStateComponent_; } else { result.clientStateComponent_ = clientStateComponentBuilder_.build(); } if (((bitField0_ & 0x00000080) == 0x00000080)) { extraClientInfo_ = new com.google.protobuf.UnmodifiableLazyStringList( extraClientInfo_); bitField0_ = (bitField0_ & ~0x00000080); } result.extraClientInfo_ = extraClientInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.SystemStatus) { return mergeFrom((com.orbekk.same.Services.SystemStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.SystemStatus other) { if (other == com.orbekk.same.Services.SystemStatus.getDefaultInstance()) return this; if (!other.extraInfo_.isEmpty()) { if (extraInfo_.isEmpty()) { extraInfo_ = other.extraInfo_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExtraInfoIsMutable(); extraInfo_.addAll(other.extraInfo_); } onChanged(); } if (other.hasMasterStatus()) { mergeMasterStatus(other.getMasterStatus()); } if (masterStateComponentBuilder_ == null) { if (!other.masterStateComponent_.isEmpty()) { if (masterStateComponent_.isEmpty()) { masterStateComponent_ = other.masterStateComponent_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMasterStateComponentIsMutable(); masterStateComponent_.addAll(other.masterStateComponent_); } onChanged(); } } else { if (!other.masterStateComponent_.isEmpty()) { if (masterStateComponentBuilder_.isEmpty()) { masterStateComponentBuilder_.dispose(); masterStateComponentBuilder_ = null; masterStateComponent_ = other.masterStateComponent_; bitField0_ = (bitField0_ & ~0x00000004); masterStateComponentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMasterStateComponentFieldBuilder() : null; } else { masterStateComponentBuilder_.addAllMessages(other.masterStateComponent_); } } } if (!other.extraMasterInfo_.isEmpty()) { if (extraMasterInfo_.isEmpty()) { extraMasterInfo_ = other.extraMasterInfo_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExtraMasterInfoIsMutable(); extraMasterInfo_.addAll(other.extraMasterInfo_); } onChanged(); } if (other.hasClientStatus()) { mergeClientStatus(other.getClientStatus()); } if (other.hasClientMasterStatus()) { mergeClientMasterStatus(other.getClientMasterStatus()); } if (clientStateComponentBuilder_ == null) { if (!other.clientStateComponent_.isEmpty()) { if (clientStateComponent_.isEmpty()) { clientStateComponent_ = other.clientStateComponent_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureClientStateComponentIsMutable(); clientStateComponent_.addAll(other.clientStateComponent_); } onChanged(); } } else { if (!other.clientStateComponent_.isEmpty()) { if (clientStateComponentBuilder_.isEmpty()) { clientStateComponentBuilder_.dispose(); clientStateComponentBuilder_ = null; clientStateComponent_ = other.clientStateComponent_; bitField0_ = (bitField0_ & ~0x00000040); clientStateComponentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getClientStateComponentFieldBuilder() : null; } else { clientStateComponentBuilder_.addAllMessages(other.clientStateComponent_); } } } if (!other.extraClientInfo_.isEmpty()) { if (extraClientInfo_.isEmpty()) { extraClientInfo_ = other.extraClientInfo_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureExtraClientInfoIsMutable(); extraClientInfo_.addAll(other.extraClientInfo_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getMasterStateComponentCount(); i++) { if (!getMasterStateComponent(i).isInitialized()) { return false; } } for (int i = 0; i < getClientStateComponentCount(); i++) { if (!getClientStateComponent(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { com.orbekk.same.Services.MasterState.Builder subBuilder = com.orbekk.same.Services.MasterState.newBuilder(); if (hasMasterStatus()) { subBuilder.mergeFrom(getMasterStatus()); } input.readMessage(subBuilder, extensionRegistry); setMasterStatus(subBuilder.buildPartial()); break; } case 18: { com.orbekk.same.Services.Component.Builder subBuilder = com.orbekk.same.Services.Component.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addMasterStateComponent(subBuilder.buildPartial()); break; } case 26: { ensureExtraMasterInfoIsMutable(); extraMasterInfo_.add(input.readBytes()); break; } case 34: { com.orbekk.same.Services.ClientState.Builder subBuilder = com.orbekk.same.Services.ClientState.newBuilder(); if (hasClientStatus()) { subBuilder.mergeFrom(getClientStatus()); } input.readMessage(subBuilder, extensionRegistry); setClientStatus(subBuilder.buildPartial()); break; } case 42: { com.orbekk.same.Services.Component.Builder subBuilder = com.orbekk.same.Services.Component.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addClientStateComponent(subBuilder.buildPartial()); break; } case 50: { ensureExtraClientInfoIsMutable(); extraClientInfo_.add(input.readBytes()); break; } case 58: { ensureExtraInfoIsMutable(); extraInfo_.add(input.readBytes()); break; } case 66: { com.orbekk.same.Services.MasterState.Builder subBuilder = com.orbekk.same.Services.MasterState.newBuilder(); if (hasClientMasterStatus()) { subBuilder.mergeFrom(getClientMasterStatus()); } input.readMessage(subBuilder, extensionRegistry); setClientMasterStatus(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated string extra_info = 7; private com.google.protobuf.LazyStringList extraInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExtraInfoIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { extraInfo_ = new com.google.protobuf.LazyStringArrayList(extraInfo_); bitField0_ |= 0x00000001; } } public java.util.List getExtraInfoList() { return java.util.Collections.unmodifiableList(extraInfo_); } public int getExtraInfoCount() { return extraInfo_.size(); } public String getExtraInfo(int index) { return extraInfo_.get(index); } public Builder setExtraInfo( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureExtraInfoIsMutable(); extraInfo_.set(index, value); onChanged(); return this; } public Builder addExtraInfo(String value) { if (value == null) { throw new NullPointerException(); } ensureExtraInfoIsMutable(); extraInfo_.add(value); onChanged(); return this; } public Builder addAllExtraInfo( java.lang.Iterable values) { ensureExtraInfoIsMutable(); super.addAll(values, extraInfo_); onChanged(); return this; } public Builder clearExtraInfo() { extraInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addExtraInfo(com.google.protobuf.ByteString value) { ensureExtraInfoIsMutable(); extraInfo_.add(value); onChanged(); } // optional .com.orbekk.same.MasterState master_status = 1; private com.orbekk.same.Services.MasterState masterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder> masterStatusBuilder_; public boolean hasMasterStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.orbekk.same.Services.MasterState getMasterStatus() { if (masterStatusBuilder_ == null) { return masterStatus_; } else { return masterStatusBuilder_.getMessage(); } } public Builder setMasterStatus(com.orbekk.same.Services.MasterState value) { if (masterStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } masterStatus_ = value; onChanged(); } else { masterStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } public Builder setMasterStatus( com.orbekk.same.Services.MasterState.Builder builderForValue) { if (masterStatusBuilder_ == null) { masterStatus_ = builderForValue.build(); onChanged(); } else { masterStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } public Builder mergeMasterStatus(com.orbekk.same.Services.MasterState value) { if (masterStatusBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && masterStatus_ != com.orbekk.same.Services.MasterState.getDefaultInstance()) { masterStatus_ = com.orbekk.same.Services.MasterState.newBuilder(masterStatus_).mergeFrom(value).buildPartial(); } else { masterStatus_ = value; } onChanged(); } else { masterStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } public Builder clearMasterStatus() { if (masterStatusBuilder_ == null) { masterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); onChanged(); } else { masterStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.orbekk.same.Services.MasterState.Builder getMasterStatusBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMasterStatusFieldBuilder().getBuilder(); } public com.orbekk.same.Services.MasterStateOrBuilder getMasterStatusOrBuilder() { if (masterStatusBuilder_ != null) { return masterStatusBuilder_.getMessageOrBuilder(); } else { return masterStatus_; } } private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder> getMasterStatusFieldBuilder() { if (masterStatusBuilder_ == null) { masterStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder>( masterStatus_, getParentForChildren(), isClean()); masterStatus_ = null; } return masterStatusBuilder_; } // repeated .com.orbekk.same.Component master_state_component = 2; private java.util.List masterStateComponent_ = java.util.Collections.emptyList(); private void ensureMasterStateComponentIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { masterStateComponent_ = new java.util.ArrayList(masterStateComponent_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder> masterStateComponentBuilder_; public java.util.List getMasterStateComponentList() { if (masterStateComponentBuilder_ == null) { return java.util.Collections.unmodifiableList(masterStateComponent_); } else { return masterStateComponentBuilder_.getMessageList(); } } public int getMasterStateComponentCount() { if (masterStateComponentBuilder_ == null) { return masterStateComponent_.size(); } else { return masterStateComponentBuilder_.getCount(); } } public com.orbekk.same.Services.Component getMasterStateComponent(int index) { if (masterStateComponentBuilder_ == null) { return masterStateComponent_.get(index); } else { return masterStateComponentBuilder_.getMessage(index); } } public Builder setMasterStateComponent( int index, com.orbekk.same.Services.Component value) { if (masterStateComponentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMasterStateComponentIsMutable(); masterStateComponent_.set(index, value); onChanged(); } else { masterStateComponentBuilder_.setMessage(index, value); } return this; } public Builder setMasterStateComponent( int index, com.orbekk.same.Services.Component.Builder builderForValue) { if (masterStateComponentBuilder_ == null) { ensureMasterStateComponentIsMutable(); masterStateComponent_.set(index, builderForValue.build()); onChanged(); } else { masterStateComponentBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addMasterStateComponent(com.orbekk.same.Services.Component value) { if (masterStateComponentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMasterStateComponentIsMutable(); masterStateComponent_.add(value); onChanged(); } else { masterStateComponentBuilder_.addMessage(value); } return this; } public Builder addMasterStateComponent( int index, com.orbekk.same.Services.Component value) { if (masterStateComponentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMasterStateComponentIsMutable(); masterStateComponent_.add(index, value); onChanged(); } else { masterStateComponentBuilder_.addMessage(index, value); } return this; } public Builder addMasterStateComponent( com.orbekk.same.Services.Component.Builder builderForValue) { if (masterStateComponentBuilder_ == null) { ensureMasterStateComponentIsMutable(); masterStateComponent_.add(builderForValue.build()); onChanged(); } else { masterStateComponentBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addMasterStateComponent( int index, com.orbekk.same.Services.Component.Builder builderForValue) { if (masterStateComponentBuilder_ == null) { ensureMasterStateComponentIsMutable(); masterStateComponent_.add(index, builderForValue.build()); onChanged(); } else { masterStateComponentBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllMasterStateComponent( java.lang.Iterable values) { if (masterStateComponentBuilder_ == null) { ensureMasterStateComponentIsMutable(); super.addAll(values, masterStateComponent_); onChanged(); } else { masterStateComponentBuilder_.addAllMessages(values); } return this; } public Builder clearMasterStateComponent() { if (masterStateComponentBuilder_ == null) { masterStateComponent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { masterStateComponentBuilder_.clear(); } return this; } public Builder removeMasterStateComponent(int index) { if (masterStateComponentBuilder_ == null) { ensureMasterStateComponentIsMutable(); masterStateComponent_.remove(index); onChanged(); } else { masterStateComponentBuilder_.remove(index); } return this; } public com.orbekk.same.Services.Component.Builder getMasterStateComponentBuilder( int index) { return getMasterStateComponentFieldBuilder().getBuilder(index); } public com.orbekk.same.Services.ComponentOrBuilder getMasterStateComponentOrBuilder( int index) { if (masterStateComponentBuilder_ == null) { return masterStateComponent_.get(index); } else { return masterStateComponentBuilder_.getMessageOrBuilder(index); } } public java.util.List getMasterStateComponentOrBuilderList() { if (masterStateComponentBuilder_ != null) { return masterStateComponentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(masterStateComponent_); } } public com.orbekk.same.Services.Component.Builder addMasterStateComponentBuilder() { return getMasterStateComponentFieldBuilder().addBuilder( com.orbekk.same.Services.Component.getDefaultInstance()); } public com.orbekk.same.Services.Component.Builder addMasterStateComponentBuilder( int index) { return getMasterStateComponentFieldBuilder().addBuilder( index, com.orbekk.same.Services.Component.getDefaultInstance()); } public java.util.List getMasterStateComponentBuilderList() { return getMasterStateComponentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder> getMasterStateComponentFieldBuilder() { if (masterStateComponentBuilder_ == null) { masterStateComponentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder>( masterStateComponent_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); masterStateComponent_ = null; } return masterStateComponentBuilder_; } // repeated string extra_master_info = 3; private com.google.protobuf.LazyStringList extraMasterInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExtraMasterInfoIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { extraMasterInfo_ = new com.google.protobuf.LazyStringArrayList(extraMasterInfo_); bitField0_ |= 0x00000008; } } public java.util.List getExtraMasterInfoList() { return java.util.Collections.unmodifiableList(extraMasterInfo_); } public int getExtraMasterInfoCount() { return extraMasterInfo_.size(); } public String getExtraMasterInfo(int index) { return extraMasterInfo_.get(index); } public Builder setExtraMasterInfo( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureExtraMasterInfoIsMutable(); extraMasterInfo_.set(index, value); onChanged(); return this; } public Builder addExtraMasterInfo(String value) { if (value == null) { throw new NullPointerException(); } ensureExtraMasterInfoIsMutable(); extraMasterInfo_.add(value); onChanged(); return this; } public Builder addAllExtraMasterInfo( java.lang.Iterable values) { ensureExtraMasterInfoIsMutable(); super.addAll(values, extraMasterInfo_); onChanged(); return this; } public Builder clearExtraMasterInfo() { extraMasterInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } void addExtraMasterInfo(com.google.protobuf.ByteString value) { ensureExtraMasterInfoIsMutable(); extraMasterInfo_.add(value); onChanged(); } // optional .com.orbekk.same.ClientState client_status = 4; private com.orbekk.same.Services.ClientState clientStatus_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder> clientStatusBuilder_; public boolean hasClientStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.orbekk.same.Services.ClientState getClientStatus() { if (clientStatusBuilder_ == null) { return clientStatus_; } else { return clientStatusBuilder_.getMessage(); } } public Builder setClientStatus(com.orbekk.same.Services.ClientState value) { if (clientStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientStatus_ = value; onChanged(); } else { clientStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } public Builder setClientStatus( com.orbekk.same.Services.ClientState.Builder builderForValue) { if (clientStatusBuilder_ == null) { clientStatus_ = builderForValue.build(); onChanged(); } else { clientStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } public Builder mergeClientStatus(com.orbekk.same.Services.ClientState value) { if (clientStatusBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && clientStatus_ != com.orbekk.same.Services.ClientState.getDefaultInstance()) { clientStatus_ = com.orbekk.same.Services.ClientState.newBuilder(clientStatus_).mergeFrom(value).buildPartial(); } else { clientStatus_ = value; } onChanged(); } else { clientStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } public Builder clearClientStatus() { if (clientStatusBuilder_ == null) { clientStatus_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); onChanged(); } else { clientStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.orbekk.same.Services.ClientState.Builder getClientStatusBuilder() { bitField0_ |= 0x00000010; onChanged(); return getClientStatusFieldBuilder().getBuilder(); } public com.orbekk.same.Services.ClientStateOrBuilder getClientStatusOrBuilder() { if (clientStatusBuilder_ != null) { return clientStatusBuilder_.getMessageOrBuilder(); } else { return clientStatus_; } } private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder> getClientStatusFieldBuilder() { if (clientStatusBuilder_ == null) { clientStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder>( clientStatus_, getParentForChildren(), isClean()); clientStatus_ = null; } return clientStatusBuilder_; } // optional .com.orbekk.same.MasterState client_master_status = 8; private com.orbekk.same.Services.MasterState clientMasterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder> clientMasterStatusBuilder_; public boolean hasClientMasterStatus() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.orbekk.same.Services.MasterState getClientMasterStatus() { if (clientMasterStatusBuilder_ == null) { return clientMasterStatus_; } else { return clientMasterStatusBuilder_.getMessage(); } } public Builder setClientMasterStatus(com.orbekk.same.Services.MasterState value) { if (clientMasterStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMasterStatus_ = value; onChanged(); } else { clientMasterStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } public Builder setClientMasterStatus( com.orbekk.same.Services.MasterState.Builder builderForValue) { if (clientMasterStatusBuilder_ == null) { clientMasterStatus_ = builderForValue.build(); onChanged(); } else { clientMasterStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } public Builder mergeClientMasterStatus(com.orbekk.same.Services.MasterState value) { if (clientMasterStatusBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && clientMasterStatus_ != com.orbekk.same.Services.MasterState.getDefaultInstance()) { clientMasterStatus_ = com.orbekk.same.Services.MasterState.newBuilder(clientMasterStatus_).mergeFrom(value).buildPartial(); } else { clientMasterStatus_ = value; } onChanged(); } else { clientMasterStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } public Builder clearClientMasterStatus() { if (clientMasterStatusBuilder_ == null) { clientMasterStatus_ = com.orbekk.same.Services.MasterState.getDefaultInstance(); onChanged(); } else { clientMasterStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.orbekk.same.Services.MasterState.Builder getClientMasterStatusBuilder() { bitField0_ |= 0x00000020; onChanged(); return getClientMasterStatusFieldBuilder().getBuilder(); } public com.orbekk.same.Services.MasterStateOrBuilder getClientMasterStatusOrBuilder() { if (clientMasterStatusBuilder_ != null) { return clientMasterStatusBuilder_.getMessageOrBuilder(); } else { return clientMasterStatus_; } } private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder> getClientMasterStatusFieldBuilder() { if (clientMasterStatusBuilder_ == null) { clientMasterStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder>( clientMasterStatus_, getParentForChildren(), isClean()); clientMasterStatus_ = null; } return clientMasterStatusBuilder_; } // repeated .com.orbekk.same.Component client_state_component = 5; private java.util.List clientStateComponent_ = java.util.Collections.emptyList(); private void ensureClientStateComponentIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { clientStateComponent_ = new java.util.ArrayList(clientStateComponent_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder> clientStateComponentBuilder_; public java.util.List getClientStateComponentList() { if (clientStateComponentBuilder_ == null) { return java.util.Collections.unmodifiableList(clientStateComponent_); } else { return clientStateComponentBuilder_.getMessageList(); } } public int getClientStateComponentCount() { if (clientStateComponentBuilder_ == null) { return clientStateComponent_.size(); } else { return clientStateComponentBuilder_.getCount(); } } public com.orbekk.same.Services.Component getClientStateComponent(int index) { if (clientStateComponentBuilder_ == null) { return clientStateComponent_.get(index); } else { return clientStateComponentBuilder_.getMessage(index); } } public Builder setClientStateComponent( int index, com.orbekk.same.Services.Component value) { if (clientStateComponentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientStateComponentIsMutable(); clientStateComponent_.set(index, value); onChanged(); } else { clientStateComponentBuilder_.setMessage(index, value); } return this; } public Builder setClientStateComponent( int index, com.orbekk.same.Services.Component.Builder builderForValue) { if (clientStateComponentBuilder_ == null) { ensureClientStateComponentIsMutable(); clientStateComponent_.set(index, builderForValue.build()); onChanged(); } else { clientStateComponentBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addClientStateComponent(com.orbekk.same.Services.Component value) { if (clientStateComponentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientStateComponentIsMutable(); clientStateComponent_.add(value); onChanged(); } else { clientStateComponentBuilder_.addMessage(value); } return this; } public Builder addClientStateComponent( int index, com.orbekk.same.Services.Component value) { if (clientStateComponentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientStateComponentIsMutable(); clientStateComponent_.add(index, value); onChanged(); } else { clientStateComponentBuilder_.addMessage(index, value); } return this; } public Builder addClientStateComponent( com.orbekk.same.Services.Component.Builder builderForValue) { if (clientStateComponentBuilder_ == null) { ensureClientStateComponentIsMutable(); clientStateComponent_.add(builderForValue.build()); onChanged(); } else { clientStateComponentBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addClientStateComponent( int index, com.orbekk.same.Services.Component.Builder builderForValue) { if (clientStateComponentBuilder_ == null) { ensureClientStateComponentIsMutable(); clientStateComponent_.add(index, builderForValue.build()); onChanged(); } else { clientStateComponentBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllClientStateComponent( java.lang.Iterable values) { if (clientStateComponentBuilder_ == null) { ensureClientStateComponentIsMutable(); super.addAll(values, clientStateComponent_); onChanged(); } else { clientStateComponentBuilder_.addAllMessages(values); } return this; } public Builder clearClientStateComponent() { if (clientStateComponentBuilder_ == null) { clientStateComponent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { clientStateComponentBuilder_.clear(); } return this; } public Builder removeClientStateComponent(int index) { if (clientStateComponentBuilder_ == null) { ensureClientStateComponentIsMutable(); clientStateComponent_.remove(index); onChanged(); } else { clientStateComponentBuilder_.remove(index); } return this; } public com.orbekk.same.Services.Component.Builder getClientStateComponentBuilder( int index) { return getClientStateComponentFieldBuilder().getBuilder(index); } public com.orbekk.same.Services.ComponentOrBuilder getClientStateComponentOrBuilder( int index) { if (clientStateComponentBuilder_ == null) { return clientStateComponent_.get(index); } else { return clientStateComponentBuilder_.getMessageOrBuilder(index); } } public java.util.List getClientStateComponentOrBuilderList() { if (clientStateComponentBuilder_ != null) { return clientStateComponentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clientStateComponent_); } } public com.orbekk.same.Services.Component.Builder addClientStateComponentBuilder() { return getClientStateComponentFieldBuilder().addBuilder( com.orbekk.same.Services.Component.getDefaultInstance()); } public com.orbekk.same.Services.Component.Builder addClientStateComponentBuilder( int index) { return getClientStateComponentFieldBuilder().addBuilder( index, com.orbekk.same.Services.Component.getDefaultInstance()); } public java.util.List getClientStateComponentBuilderList() { return getClientStateComponentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder> getClientStateComponentFieldBuilder() { if (clientStateComponentBuilder_ == null) { clientStateComponentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder>( clientStateComponent_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); clientStateComponent_ = null; } return clientStateComponentBuilder_; } // repeated string extra_client_info = 6; private com.google.protobuf.LazyStringList extraClientInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExtraClientInfoIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { extraClientInfo_ = new com.google.protobuf.LazyStringArrayList(extraClientInfo_); bitField0_ |= 0x00000080; } } public java.util.List getExtraClientInfoList() { return java.util.Collections.unmodifiableList(extraClientInfo_); } public int getExtraClientInfoCount() { return extraClientInfo_.size(); } public String getExtraClientInfo(int index) { return extraClientInfo_.get(index); } public Builder setExtraClientInfo( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureExtraClientInfoIsMutable(); extraClientInfo_.set(index, value); onChanged(); return this; } public Builder addExtraClientInfo(String value) { if (value == null) { throw new NullPointerException(); } ensureExtraClientInfoIsMutable(); extraClientInfo_.add(value); onChanged(); return this; } public Builder addAllExtraClientInfo( java.lang.Iterable values) { ensureExtraClientInfoIsMutable(); super.addAll(values, extraClientInfo_); onChanged(); return this; } public Builder clearExtraClientInfo() { extraClientInfo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } void addExtraClientInfo(com.google.protobuf.ByteString value) { ensureExtraClientInfoIsMutable(); extraClientInfo_.add(value); onChanged(); } // @@protoc_insertion_point(builder_scope:com.orbekk.same.SystemStatus) } static { defaultInstance = new SystemStatus(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.SystemStatus) } public interface ComponentOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string id = 1; boolean hasId(); String getId(); // required string data = 2; boolean hasData(); String getData(); // required int64 revision = 3; boolean hasRevision(); long getRevision(); } public static final class Component extends com.google.protobuf.GeneratedMessage implements ComponentOrBuilder { // Use Component.newBuilder() to construct. private Component(Builder builder) { super(builder); } private Component(boolean noInit) {} private static final Component defaultInstance; public static Component getDefaultInstance() { return defaultInstance; } public Component getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Component_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Component_fieldAccessorTable; } private int bitField0_; // required string id = 1; public static final int ID_FIELD_NUMBER = 1; private java.lang.Object id_; public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getId() { java.lang.Object ref = id_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { id_ = s; } return s; } } private com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string data = 2; public static final int DATA_FIELD_NUMBER = 2; private java.lang.Object data_; public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getData() { java.lang.Object ref = data_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { data_ = s; } return s; } } private com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int64 revision = 3; public static final int REVISION_FIELD_NUMBER = 3; private long revision_; public boolean hasRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } public long getRevision() { return revision_; } private void initFields() { id_ = ""; data_ = ""; revision_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasData()) { memoizedIsInitialized = 0; return false; } if (!hasRevision()) { 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.writeBytes(1, getIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDataBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, revision_); } 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 .computeBytesSize(1, getIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDataBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, revision_); } 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 com.orbekk.same.Services.Component parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.Component parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.Component parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.Component parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.Component parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.Component parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.Component parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.Component parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.Component parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.Component parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.Component 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.ComponentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Component_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_Component_fieldAccessorTable; } // Construct using com.orbekk.same.Services.Component.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); data_ = ""; bitField0_ = (bitField0_ & ~0x00000002); revision_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.Component.getDescriptor(); } public com.orbekk.same.Services.Component getDefaultInstanceForType() { return com.orbekk.same.Services.Component.getDefaultInstance(); } public com.orbekk.same.Services.Component build() { com.orbekk.same.Services.Component result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.Component buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.Component result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.Component buildPartial() { com.orbekk.same.Services.Component result = new com.orbekk.same.Services.Component(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.data_ = data_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.revision_ = revision_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.Component) { return mergeFrom((com.orbekk.same.Services.Component)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.Component other) { if (other == com.orbekk.same.Services.Component.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasData()) { setData(other.getData()); } if (other.hasRevision()) { setRevision(other.getRevision()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasData()) { return false; } if (!hasRevision()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; id_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; data_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; revision_ = input.readInt64(); break; } } } } private int bitField0_; // required string id = 1; private java.lang.Object id_ = ""; public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getId() { java.lang.Object ref = id_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); id_ = s; return s; } else { return (String) ref; } } public Builder setId(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } void setId(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); } // required string data = 2; private java.lang.Object data_ = ""; public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getData() { java.lang.Object ref = data_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); data_ = s; return s; } else { return (String) ref; } } public Builder setData(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; data_ = value; onChanged(); return this; } public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } void setData(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; data_ = value; onChanged(); } // required int64 revision = 3; private long revision_ ; public boolean hasRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } public long getRevision() { return revision_; } public Builder setRevision(long value) { bitField0_ |= 0x00000004; revision_ = value; onChanged(); return this; } public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000004); revision_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.Component) } static { defaultInstance = new Component(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.Component) } public interface MasterStateOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string master_url = 1; boolean hasMasterUrl(); String getMasterUrl(); // optional int32 master_id = 2; boolean hasMasterId(); int getMasterId(); // optional string network_name = 3; boolean hasNetworkName(); String getNetworkName(); // optional string master_location = 4; boolean hasMasterLocation(); String getMasterLocation(); // optional int64 revision = 5; boolean hasRevision(); long getRevision(); } public static final class MasterState extends com.google.protobuf.GeneratedMessage implements MasterStateOrBuilder { // Use MasterState.newBuilder() to construct. private MasterState(Builder builder) { super(builder); } private MasterState(boolean noInit) {} private static final MasterState defaultInstance; public static MasterState getDefaultInstance() { return defaultInstance; } public MasterState getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterState_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterState_fieldAccessorTable; } private int bitField0_; // optional string master_url = 1; public static final int MASTER_URL_FIELD_NUMBER = 1; private java.lang.Object masterUrl_; public boolean hasMasterUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getMasterUrl() { java.lang.Object ref = masterUrl_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { masterUrl_ = s; } return s; } } private com.google.protobuf.ByteString getMasterUrlBytes() { java.lang.Object ref = masterUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); masterUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 master_id = 2; public static final int MASTER_ID_FIELD_NUMBER = 2; private int masterId_; public boolean hasMasterId() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getMasterId() { return masterId_; } // optional string network_name = 3; public static final int NETWORK_NAME_FIELD_NUMBER = 3; private java.lang.Object networkName_; public boolean hasNetworkName() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getNetworkName() { java.lang.Object ref = networkName_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { networkName_ = s; } return s; } } private com.google.protobuf.ByteString getNetworkNameBytes() { java.lang.Object ref = networkName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); networkName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string master_location = 4; public static final int MASTER_LOCATION_FIELD_NUMBER = 4; private java.lang.Object masterLocation_; public boolean hasMasterLocation() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getMasterLocation() { java.lang.Object ref = masterLocation_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { masterLocation_ = s; } return s; } } private com.google.protobuf.ByteString getMasterLocationBytes() { java.lang.Object ref = masterLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); masterLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 revision = 5; public static final int REVISION_FIELD_NUMBER = 5; private long revision_; public boolean hasRevision() { return ((bitField0_ & 0x00000010) == 0x00000010); } public long getRevision() { return revision_; } private void initFields() { masterUrl_ = ""; masterId_ = 0; networkName_ = ""; masterLocation_ = ""; revision_ = 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.writeBytes(1, getMasterUrlBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, masterId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getNetworkNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getMasterLocationBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, revision_); } 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 .computeBytesSize(1, getMasterUrlBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, masterId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getNetworkNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getMasterLocationBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, revision_); } 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 com.orbekk.same.Services.MasterState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.MasterState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.MasterState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.MasterState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.MasterState parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.MasterState parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.MasterState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.MasterState parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.MasterState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.MasterState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.MasterState 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.MasterStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterState_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterState_fieldAccessorTable; } // Construct using com.orbekk.same.Services.MasterState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); masterUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000001); masterId_ = 0; bitField0_ = (bitField0_ & ~0x00000002); networkName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); masterLocation_ = ""; bitField0_ = (bitField0_ & ~0x00000008); revision_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.MasterState.getDescriptor(); } public com.orbekk.same.Services.MasterState getDefaultInstanceForType() { return com.orbekk.same.Services.MasterState.getDefaultInstance(); } public com.orbekk.same.Services.MasterState build() { com.orbekk.same.Services.MasterState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.MasterState buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.MasterState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.MasterState buildPartial() { com.orbekk.same.Services.MasterState result = new com.orbekk.same.Services.MasterState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.masterUrl_ = masterUrl_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.masterId_ = masterId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.networkName_ = networkName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.masterLocation_ = masterLocation_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.revision_ = revision_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.MasterState) { return mergeFrom((com.orbekk.same.Services.MasterState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.MasterState other) { if (other == com.orbekk.same.Services.MasterState.getDefaultInstance()) return this; if (other.hasMasterUrl()) { setMasterUrl(other.getMasterUrl()); } if (other.hasMasterId()) { setMasterId(other.getMasterId()); } if (other.hasNetworkName()) { setNetworkName(other.getNetworkName()); } if (other.hasMasterLocation()) { setMasterLocation(other.getMasterLocation()); } if (other.hasRevision()) { setRevision(other.getRevision()); } this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; masterUrl_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; masterId_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; networkName_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; masterLocation_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; revision_ = input.readInt64(); break; } } } } private int bitField0_; // optional string master_url = 1; private java.lang.Object masterUrl_ = ""; public boolean hasMasterUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getMasterUrl() { java.lang.Object ref = masterUrl_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); masterUrl_ = s; return s; } else { return (String) ref; } } public Builder setMasterUrl(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; masterUrl_ = value; onChanged(); return this; } public Builder clearMasterUrl() { bitField0_ = (bitField0_ & ~0x00000001); masterUrl_ = getDefaultInstance().getMasterUrl(); onChanged(); return this; } void setMasterUrl(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; masterUrl_ = value; onChanged(); } // optional int32 master_id = 2; private int masterId_ ; public boolean hasMasterId() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getMasterId() { return masterId_; } public Builder setMasterId(int value) { bitField0_ |= 0x00000002; masterId_ = value; onChanged(); return this; } public Builder clearMasterId() { bitField0_ = (bitField0_ & ~0x00000002); masterId_ = 0; onChanged(); return this; } // optional string network_name = 3; private java.lang.Object networkName_ = ""; public boolean hasNetworkName() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getNetworkName() { java.lang.Object ref = networkName_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); networkName_ = s; return s; } else { return (String) ref; } } public Builder setNetworkName(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; networkName_ = value; onChanged(); return this; } public Builder clearNetworkName() { bitField0_ = (bitField0_ & ~0x00000004); networkName_ = getDefaultInstance().getNetworkName(); onChanged(); return this; } void setNetworkName(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; networkName_ = value; onChanged(); } // optional string master_location = 4; private java.lang.Object masterLocation_ = ""; public boolean hasMasterLocation() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getMasterLocation() { java.lang.Object ref = masterLocation_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); masterLocation_ = s; return s; } else { return (String) ref; } } public Builder setMasterLocation(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; masterLocation_ = value; onChanged(); return this; } public Builder clearMasterLocation() { bitField0_ = (bitField0_ & ~0x00000008); masterLocation_ = getDefaultInstance().getMasterLocation(); onChanged(); return this; } void setMasterLocation(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000008; masterLocation_ = value; onChanged(); } // optional int64 revision = 5; private long revision_ ; public boolean hasRevision() { return ((bitField0_ & 0x00000010) == 0x00000010); } public long getRevision() { return revision_; } public Builder setRevision(long value) { bitField0_ |= 0x00000010; revision_ = value; onChanged(); return this; } public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000010); revision_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.MasterState) } static { defaultInstance = new MasterState(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.MasterState) } public interface MasterTakeoverResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bool success = 2; boolean hasSuccess(); boolean getSuccess(); // optional .com.orbekk.same.ClientState client_state = 3; boolean hasClientState(); com.orbekk.same.Services.ClientState getClientState(); com.orbekk.same.Services.ClientStateOrBuilder getClientStateOrBuilder(); } public static final class MasterTakeoverResponse extends com.google.protobuf.GeneratedMessage implements MasterTakeoverResponseOrBuilder { // Use MasterTakeoverResponse.newBuilder() to construct. private MasterTakeoverResponse(Builder builder) { super(builder); } private MasterTakeoverResponse(boolean noInit) {} private static final MasterTakeoverResponse defaultInstance; public static MasterTakeoverResponse getDefaultInstance() { return defaultInstance; } public MasterTakeoverResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterTakeoverResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterTakeoverResponse_fieldAccessorTable; } private int bitField0_; // optional bool success = 2; public static final int SUCCESS_FIELD_NUMBER = 2; private boolean success_; public boolean hasSuccess() { return ((bitField0_ & 0x00000001) == 0x00000001); } public boolean getSuccess() { return success_; } // optional .com.orbekk.same.ClientState client_state = 3; public static final int CLIENT_STATE_FIELD_NUMBER = 3; private com.orbekk.same.Services.ClientState clientState_; public boolean hasClientState() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.orbekk.same.Services.ClientState getClientState() { return clientState_; } public com.orbekk.same.Services.ClientStateOrBuilder getClientStateOrBuilder() { return clientState_; } private void initFields() { success_ = false; clientState_ = com.orbekk.same.Services.ClientState.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.writeBool(2, success_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, clientState_); } 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 .computeBoolSize(2, success_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, clientState_); } 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 com.orbekk.same.Services.MasterTakeoverResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.MasterTakeoverResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.MasterTakeoverResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.MasterTakeoverResponse 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.MasterTakeoverResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterTakeoverResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_MasterTakeoverResponse_fieldAccessorTable; } // Construct using com.orbekk.same.Services.MasterTakeoverResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getClientStateFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); success_ = false; bitField0_ = (bitField0_ & ~0x00000001); if (clientStateBuilder_ == null) { clientState_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); } else { clientStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.MasterTakeoverResponse.getDescriptor(); } public com.orbekk.same.Services.MasterTakeoverResponse getDefaultInstanceForType() { return com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance(); } public com.orbekk.same.Services.MasterTakeoverResponse build() { com.orbekk.same.Services.MasterTakeoverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.MasterTakeoverResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.MasterTakeoverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.MasterTakeoverResponse buildPartial() { com.orbekk.same.Services.MasterTakeoverResponse result = new com.orbekk.same.Services.MasterTakeoverResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.success_ = success_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (clientStateBuilder_ == null) { result.clientState_ = clientState_; } else { result.clientState_ = clientStateBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.MasterTakeoverResponse) { return mergeFrom((com.orbekk.same.Services.MasterTakeoverResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.MasterTakeoverResponse other) { if (other == com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance()) return this; if (other.hasSuccess()) { setSuccess(other.getSuccess()); } if (other.hasClientState()) { mergeClientState(other.getClientState()); } this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 16: { bitField0_ |= 0x00000001; success_ = input.readBool(); break; } case 26: { com.orbekk.same.Services.ClientState.Builder subBuilder = com.orbekk.same.Services.ClientState.newBuilder(); if (hasClientState()) { subBuilder.mergeFrom(getClientState()); } input.readMessage(subBuilder, extensionRegistry); setClientState(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional bool success = 2; private boolean success_ ; public boolean hasSuccess() { return ((bitField0_ & 0x00000001) == 0x00000001); } public boolean getSuccess() { return success_; } public Builder setSuccess(boolean value) { bitField0_ |= 0x00000001; success_ = value; onChanged(); return this; } public Builder clearSuccess() { bitField0_ = (bitField0_ & ~0x00000001); success_ = false; onChanged(); return this; } // optional .com.orbekk.same.ClientState client_state = 3; private com.orbekk.same.Services.ClientState clientState_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder> clientStateBuilder_; public boolean hasClientState() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.orbekk.same.Services.ClientState getClientState() { if (clientStateBuilder_ == null) { return clientState_; } else { return clientStateBuilder_.getMessage(); } } public Builder setClientState(com.orbekk.same.Services.ClientState value) { if (clientStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientState_ = value; onChanged(); } else { clientStateBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } public Builder setClientState( com.orbekk.same.Services.ClientState.Builder builderForValue) { if (clientStateBuilder_ == null) { clientState_ = builderForValue.build(); onChanged(); } else { clientStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } public Builder mergeClientState(com.orbekk.same.Services.ClientState value) { if (clientStateBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && clientState_ != com.orbekk.same.Services.ClientState.getDefaultInstance()) { clientState_ = com.orbekk.same.Services.ClientState.newBuilder(clientState_).mergeFrom(value).buildPartial(); } else { clientState_ = value; } onChanged(); } else { clientStateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } public Builder clearClientState() { if (clientStateBuilder_ == null) { clientState_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); onChanged(); } else { clientStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.orbekk.same.Services.ClientState.Builder getClientStateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getClientStateFieldBuilder().getBuilder(); } public com.orbekk.same.Services.ClientStateOrBuilder getClientStateOrBuilder() { if (clientStateBuilder_ != null) { return clientStateBuilder_.getMessageOrBuilder(); } else { return clientState_; } } private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder> getClientStateFieldBuilder() { if (clientStateBuilder_ == null) { clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder>( clientState_, getParentForChildren(), isClean()); clientState_ = null; } return clientStateBuilder_; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.MasterTakeoverResponse) } static { defaultInstance = new MasterTakeoverResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.MasterTakeoverResponse) } public interface FullStateResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 revision = 1; boolean hasRevision(); long getRevision(); // repeated .com.orbekk.same.Component component = 2; java.util.List getComponentList(); com.orbekk.same.Services.Component getComponent(int index); int getComponentCount(); java.util.List getComponentOrBuilderList(); com.orbekk.same.Services.ComponentOrBuilder getComponentOrBuilder( int index); } public static final class FullStateResponse extends com.google.protobuf.GeneratedMessage implements FullStateResponseOrBuilder { // Use FullStateResponse.newBuilder() to construct. private FullStateResponse(Builder builder) { super(builder); } private FullStateResponse(boolean noInit) {} private static final FullStateResponse defaultInstance; public static FullStateResponse getDefaultInstance() { return defaultInstance; } public FullStateResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_FullStateResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_FullStateResponse_fieldAccessorTable; } private int bitField0_; // optional int64 revision = 1; public static final int REVISION_FIELD_NUMBER = 1; private long revision_; public boolean hasRevision() { return ((bitField0_ & 0x00000001) == 0x00000001); } public long getRevision() { return revision_; } // repeated .com.orbekk.same.Component component = 2; public static final int COMPONENT_FIELD_NUMBER = 2; private java.util.List component_; public java.util.List getComponentList() { return component_; } public java.util.List getComponentOrBuilderList() { return component_; } public int getComponentCount() { return component_.size(); } public com.orbekk.same.Services.Component getComponent(int index) { return component_.get(index); } public com.orbekk.same.Services.ComponentOrBuilder getComponentOrBuilder( int index) { return component_.get(index); } private void initFields() { revision_ = 0L; component_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getComponentCount(); i++) { if (!getComponent(i).isInitialized()) { 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.writeInt64(1, revision_); } for (int i = 0; i < component_.size(); i++) { output.writeMessage(2, component_.get(i)); } 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 .computeInt64Size(1, revision_); } for (int i = 0; i < component_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, component_.get(i)); } 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 com.orbekk.same.Services.FullStateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.FullStateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.FullStateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.FullStateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.FullStateResponse 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.FullStateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_FullStateResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_FullStateResponse_fieldAccessorTable; } // Construct using com.orbekk.same.Services.FullStateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getComponentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); revision_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (componentBuilder_ == null) { component_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { componentBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.FullStateResponse.getDescriptor(); } public com.orbekk.same.Services.FullStateResponse getDefaultInstanceForType() { return com.orbekk.same.Services.FullStateResponse.getDefaultInstance(); } public com.orbekk.same.Services.FullStateResponse build() { com.orbekk.same.Services.FullStateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.FullStateResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.FullStateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.FullStateResponse buildPartial() { com.orbekk.same.Services.FullStateResponse result = new com.orbekk.same.Services.FullStateResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.revision_ = revision_; if (componentBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { component_ = java.util.Collections.unmodifiableList(component_); bitField0_ = (bitField0_ & ~0x00000002); } result.component_ = component_; } else { result.component_ = componentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.FullStateResponse) { return mergeFrom((com.orbekk.same.Services.FullStateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.FullStateResponse other) { if (other == com.orbekk.same.Services.FullStateResponse.getDefaultInstance()) return this; if (other.hasRevision()) { setRevision(other.getRevision()); } if (componentBuilder_ == null) { if (!other.component_.isEmpty()) { if (component_.isEmpty()) { component_ = other.component_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureComponentIsMutable(); component_.addAll(other.component_); } onChanged(); } } else { if (!other.component_.isEmpty()) { if (componentBuilder_.isEmpty()) { componentBuilder_.dispose(); componentBuilder_ = null; component_ = other.component_; bitField0_ = (bitField0_ & ~0x00000002); componentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getComponentFieldBuilder() : null; } else { componentBuilder_.addAllMessages(other.component_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getComponentCount(); i++) { if (!getComponent(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { bitField0_ |= 0x00000001; revision_ = input.readInt64(); break; } case 18: { com.orbekk.same.Services.Component.Builder subBuilder = com.orbekk.same.Services.Component.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addComponent(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional int64 revision = 1; private long revision_ ; public boolean hasRevision() { return ((bitField0_ & 0x00000001) == 0x00000001); } public long getRevision() { return revision_; } public Builder setRevision(long value) { bitField0_ |= 0x00000001; revision_ = value; onChanged(); return this; } public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000001); revision_ = 0L; onChanged(); return this; } // repeated .com.orbekk.same.Component component = 2; private java.util.List component_ = java.util.Collections.emptyList(); private void ensureComponentIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { component_ = new java.util.ArrayList(component_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder> componentBuilder_; public java.util.List getComponentList() { if (componentBuilder_ == null) { return java.util.Collections.unmodifiableList(component_); } else { return componentBuilder_.getMessageList(); } } public int getComponentCount() { if (componentBuilder_ == null) { return component_.size(); } else { return componentBuilder_.getCount(); } } public com.orbekk.same.Services.Component getComponent(int index) { if (componentBuilder_ == null) { return component_.get(index); } else { return componentBuilder_.getMessage(index); } } public Builder setComponent( int index, com.orbekk.same.Services.Component value) { if (componentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureComponentIsMutable(); component_.set(index, value); onChanged(); } else { componentBuilder_.setMessage(index, value); } return this; } public Builder setComponent( int index, com.orbekk.same.Services.Component.Builder builderForValue) { if (componentBuilder_ == null) { ensureComponentIsMutable(); component_.set(index, builderForValue.build()); onChanged(); } else { componentBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addComponent(com.orbekk.same.Services.Component value) { if (componentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureComponentIsMutable(); component_.add(value); onChanged(); } else { componentBuilder_.addMessage(value); } return this; } public Builder addComponent( int index, com.orbekk.same.Services.Component value) { if (componentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureComponentIsMutable(); component_.add(index, value); onChanged(); } else { componentBuilder_.addMessage(index, value); } return this; } public Builder addComponent( com.orbekk.same.Services.Component.Builder builderForValue) { if (componentBuilder_ == null) { ensureComponentIsMutable(); component_.add(builderForValue.build()); onChanged(); } else { componentBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addComponent( int index, com.orbekk.same.Services.Component.Builder builderForValue) { if (componentBuilder_ == null) { ensureComponentIsMutable(); component_.add(index, builderForValue.build()); onChanged(); } else { componentBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllComponent( java.lang.Iterable values) { if (componentBuilder_ == null) { ensureComponentIsMutable(); super.addAll(values, component_); onChanged(); } else { componentBuilder_.addAllMessages(values); } return this; } public Builder clearComponent() { if (componentBuilder_ == null) { component_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { componentBuilder_.clear(); } return this; } public Builder removeComponent(int index) { if (componentBuilder_ == null) { ensureComponentIsMutable(); component_.remove(index); onChanged(); } else { componentBuilder_.remove(index); } return this; } public com.orbekk.same.Services.Component.Builder getComponentBuilder( int index) { return getComponentFieldBuilder().getBuilder(index); } public com.orbekk.same.Services.ComponentOrBuilder getComponentOrBuilder( int index) { if (componentBuilder_ == null) { return component_.get(index); } else { return componentBuilder_.getMessageOrBuilder(index); } } public java.util.List getComponentOrBuilderList() { if (componentBuilder_ != null) { return componentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(component_); } } public com.orbekk.same.Services.Component.Builder addComponentBuilder() { return getComponentFieldBuilder().addBuilder( com.orbekk.same.Services.Component.getDefaultInstance()); } public com.orbekk.same.Services.Component.Builder addComponentBuilder( int index) { return getComponentFieldBuilder().addBuilder( index, com.orbekk.same.Services.Component.getDefaultInstance()); } public java.util.List getComponentBuilderList() { return getComponentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder> getComponentFieldBuilder() { if (componentBuilder_ == null) { componentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.Component, com.orbekk.same.Services.Component.Builder, com.orbekk.same.Services.ComponentOrBuilder>( component_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); component_ = null; } return componentBuilder_; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.FullStateResponse) } static { defaultInstance = new FullStateResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.FullStateResponse) } public interface ClientStateOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string url = 1; boolean hasUrl(); String getUrl(); // optional string location = 2; boolean hasLocation(); String getLocation(); // optional int64 revision = 3; boolean hasRevision(); long getRevision(); } public static final class ClientState extends com.google.protobuf.GeneratedMessage implements ClientStateOrBuilder { // Use ClientState.newBuilder() to construct. private ClientState(Builder builder) { super(builder); } private ClientState(boolean noInit) {} private static final ClientState defaultInstance; public static ClientState getDefaultInstance() { return defaultInstance; } public ClientState getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_ClientState_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_ClientState_fieldAccessorTable; } private int bitField0_; // optional string url = 1; public static final int URL_FIELD_NUMBER = 1; private java.lang.Object url_; public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getUrl() { java.lang.Object ref = url_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { url_ = s; } return s; } } private com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string location = 2; public static final int LOCATION_FIELD_NUMBER = 2; private java.lang.Object location_; public boolean hasLocation() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getLocation() { java.lang.Object ref = location_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { location_ = s; } return s; } } private com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 revision = 3; public static final int REVISION_FIELD_NUMBER = 3; private long revision_; public boolean hasRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } public long getRevision() { return revision_; } private void initFields() { url_ = ""; location_ = ""; revision_ = 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.writeBytes(1, getUrlBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getLocationBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, revision_); } 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 .computeBytesSize(1, getUrlBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getLocationBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, revision_); } 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 com.orbekk.same.Services.ClientState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.ClientState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.ClientState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.ClientState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.ClientState parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.ClientState parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.ClientState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.ClientState parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.ClientState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.ClientState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.ClientState 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.ClientStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_ClientState_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_ClientState_fieldAccessorTable; } // Construct using com.orbekk.same.Services.ClientState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); url_ = ""; bitField0_ = (bitField0_ & ~0x00000001); location_ = ""; bitField0_ = (bitField0_ & ~0x00000002); revision_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.ClientState.getDescriptor(); } public com.orbekk.same.Services.ClientState getDefaultInstanceForType() { return com.orbekk.same.Services.ClientState.getDefaultInstance(); } public com.orbekk.same.Services.ClientState build() { com.orbekk.same.Services.ClientState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.ClientState buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.ClientState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.ClientState buildPartial() { com.orbekk.same.Services.ClientState result = new com.orbekk.same.Services.ClientState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.url_ = url_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.location_ = location_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.revision_ = revision_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.ClientState) { return mergeFrom((com.orbekk.same.Services.ClientState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.ClientState other) { if (other == com.orbekk.same.Services.ClientState.getDefaultInstance()) return this; if (other.hasUrl()) { setUrl(other.getUrl()); } if (other.hasLocation()) { setLocation(other.getLocation()); } if (other.hasRevision()) { setRevision(other.getRevision()); } this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; url_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; location_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; revision_ = input.readInt64(); break; } } } } private int bitField0_; // optional string url = 1; private java.lang.Object url_ = ""; public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); url_ = s; return s; } else { return (String) ref; } } public Builder setUrl(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; url_ = value; onChanged(); return this; } public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000001); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } void setUrl(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; url_ = value; onChanged(); } // optional string location = 2; private java.lang.Object location_ = ""; public boolean hasLocation() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); location_ = s; return s; } else { return (String) ref; } } public Builder setLocation(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; location_ = value; onChanged(); return this; } public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000002); location_ = getDefaultInstance().getLocation(); onChanged(); return this; } void setLocation(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; location_ = value; onChanged(); } // optional int64 revision = 3; private long revision_ ; public boolean hasRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } public long getRevision() { return revision_; } public Builder setRevision(long value) { bitField0_ |= 0x00000004; revision_ = value; onChanged(); return this; } public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000004); revision_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.ClientState) } static { defaultInstance = new ClientState(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.ClientState) } public interface NetworkDirectoryOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .com.orbekk.same.MasterState network = 1; java.util.List getNetworkList(); com.orbekk.same.Services.MasterState getNetwork(int index); int getNetworkCount(); java.util.List getNetworkOrBuilderList(); com.orbekk.same.Services.MasterStateOrBuilder getNetworkOrBuilder( int index); } public static final class NetworkDirectory extends com.google.protobuf.GeneratedMessage implements NetworkDirectoryOrBuilder { // Use NetworkDirectory.newBuilder() to construct. private NetworkDirectory(Builder builder) { super(builder); } private NetworkDirectory(boolean noInit) {} private static final NetworkDirectory defaultInstance; public static NetworkDirectory getDefaultInstance() { return defaultInstance; } public NetworkDirectory getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_NetworkDirectory_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_NetworkDirectory_fieldAccessorTable; } // repeated .com.orbekk.same.MasterState network = 1; public static final int NETWORK_FIELD_NUMBER = 1; private java.util.List network_; public java.util.List getNetworkList() { return network_; } public java.util.List getNetworkOrBuilderList() { return network_; } public int getNetworkCount() { return network_.size(); } public com.orbekk.same.Services.MasterState getNetwork(int index) { return network_.get(index); } public com.orbekk.same.Services.MasterStateOrBuilder getNetworkOrBuilder( int index) { return network_.get(index); } private void initFields() { network_ = 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 < network_.size(); i++) { output.writeMessage(1, network_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < network_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, network_.get(i)); } 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 com.orbekk.same.Services.NetworkDirectory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.NetworkDirectory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.NetworkDirectory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.NetworkDirectory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.NetworkDirectory 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.NetworkDirectoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_NetworkDirectory_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_NetworkDirectory_fieldAccessorTable; } // Construct using com.orbekk.same.Services.NetworkDirectory.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNetworkFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (networkBuilder_ == null) { network_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { networkBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.NetworkDirectory.getDescriptor(); } public com.orbekk.same.Services.NetworkDirectory getDefaultInstanceForType() { return com.orbekk.same.Services.NetworkDirectory.getDefaultInstance(); } public com.orbekk.same.Services.NetworkDirectory build() { com.orbekk.same.Services.NetworkDirectory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.NetworkDirectory buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.NetworkDirectory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.NetworkDirectory buildPartial() { com.orbekk.same.Services.NetworkDirectory result = new com.orbekk.same.Services.NetworkDirectory(this); int from_bitField0_ = bitField0_; if (networkBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { network_ = java.util.Collections.unmodifiableList(network_); bitField0_ = (bitField0_ & ~0x00000001); } result.network_ = network_; } else { result.network_ = networkBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.NetworkDirectory) { return mergeFrom((com.orbekk.same.Services.NetworkDirectory)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.NetworkDirectory other) { if (other == com.orbekk.same.Services.NetworkDirectory.getDefaultInstance()) return this; if (networkBuilder_ == null) { if (!other.network_.isEmpty()) { if (network_.isEmpty()) { network_ = other.network_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNetworkIsMutable(); network_.addAll(other.network_); } onChanged(); } } else { if (!other.network_.isEmpty()) { if (networkBuilder_.isEmpty()) { networkBuilder_.dispose(); networkBuilder_ = null; network_ = other.network_; bitField0_ = (bitField0_ & ~0x00000001); networkBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNetworkFieldBuilder() : null; } else { networkBuilder_.addAllMessages(other.network_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { com.orbekk.same.Services.MasterState.Builder subBuilder = com.orbekk.same.Services.MasterState.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addNetwork(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated .com.orbekk.same.MasterState network = 1; private java.util.List network_ = java.util.Collections.emptyList(); private void ensureNetworkIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { network_ = new java.util.ArrayList(network_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder> networkBuilder_; public java.util.List getNetworkList() { if (networkBuilder_ == null) { return java.util.Collections.unmodifiableList(network_); } else { return networkBuilder_.getMessageList(); } } public int getNetworkCount() { if (networkBuilder_ == null) { return network_.size(); } else { return networkBuilder_.getCount(); } } public com.orbekk.same.Services.MasterState getNetwork(int index) { if (networkBuilder_ == null) { return network_.get(index); } else { return networkBuilder_.getMessage(index); } } public Builder setNetwork( int index, com.orbekk.same.Services.MasterState value) { if (networkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkIsMutable(); network_.set(index, value); onChanged(); } else { networkBuilder_.setMessage(index, value); } return this; } public Builder setNetwork( int index, com.orbekk.same.Services.MasterState.Builder builderForValue) { if (networkBuilder_ == null) { ensureNetworkIsMutable(); network_.set(index, builderForValue.build()); onChanged(); } else { networkBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addNetwork(com.orbekk.same.Services.MasterState value) { if (networkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkIsMutable(); network_.add(value); onChanged(); } else { networkBuilder_.addMessage(value); } return this; } public Builder addNetwork( int index, com.orbekk.same.Services.MasterState value) { if (networkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkIsMutable(); network_.add(index, value); onChanged(); } else { networkBuilder_.addMessage(index, value); } return this; } public Builder addNetwork( com.orbekk.same.Services.MasterState.Builder builderForValue) { if (networkBuilder_ == null) { ensureNetworkIsMutable(); network_.add(builderForValue.build()); onChanged(); } else { networkBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addNetwork( int index, com.orbekk.same.Services.MasterState.Builder builderForValue) { if (networkBuilder_ == null) { ensureNetworkIsMutable(); network_.add(index, builderForValue.build()); onChanged(); } else { networkBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllNetwork( java.lang.Iterable values) { if (networkBuilder_ == null) { ensureNetworkIsMutable(); super.addAll(values, network_); onChanged(); } else { networkBuilder_.addAllMessages(values); } return this; } public Builder clearNetwork() { if (networkBuilder_ == null) { network_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { networkBuilder_.clear(); } return this; } public Builder removeNetwork(int index) { if (networkBuilder_ == null) { ensureNetworkIsMutable(); network_.remove(index); onChanged(); } else { networkBuilder_.remove(index); } return this; } public com.orbekk.same.Services.MasterState.Builder getNetworkBuilder( int index) { return getNetworkFieldBuilder().getBuilder(index); } public com.orbekk.same.Services.MasterStateOrBuilder getNetworkOrBuilder( int index) { if (networkBuilder_ == null) { return network_.get(index); } else { return networkBuilder_.getMessageOrBuilder(index); } } public java.util.List getNetworkOrBuilderList() { if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(network_); } } public com.orbekk.same.Services.MasterState.Builder addNetworkBuilder() { return getNetworkFieldBuilder().addBuilder( com.orbekk.same.Services.MasterState.getDefaultInstance()); } public com.orbekk.same.Services.MasterState.Builder addNetworkBuilder( int index) { return getNetworkFieldBuilder().addBuilder( index, com.orbekk.same.Services.MasterState.getDefaultInstance()); } public java.util.List getNetworkBuilderList() { return getNetworkFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { networkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.orbekk.same.Services.MasterState, com.orbekk.same.Services.MasterState.Builder, com.orbekk.same.Services.MasterStateOrBuilder>( network_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.NetworkDirectory) } static { defaultInstance = new NetworkDirectory(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.NetworkDirectory) } public interface PaxosRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .com.orbekk.same.ClientState client = 1; boolean hasClient(); com.orbekk.same.Services.ClientState getClient(); com.orbekk.same.Services.ClientStateOrBuilder getClientOrBuilder(); // optional int32 proposalNumber = 2; boolean hasProposalNumber(); int getProposalNumber(); } public static final class PaxosRequest extends com.google.protobuf.GeneratedMessage implements PaxosRequestOrBuilder { // Use PaxosRequest.newBuilder() to construct. private PaxosRequest(Builder builder) { super(builder); } private PaxosRequest(boolean noInit) {} private static final PaxosRequest defaultInstance; public static PaxosRequest getDefaultInstance() { return defaultInstance; } public PaxosRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosRequest_fieldAccessorTable; } private int bitField0_; // optional .com.orbekk.same.ClientState client = 1; public static final int CLIENT_FIELD_NUMBER = 1; private com.orbekk.same.Services.ClientState client_; public boolean hasClient() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.orbekk.same.Services.ClientState getClient() { return client_; } public com.orbekk.same.Services.ClientStateOrBuilder getClientOrBuilder() { return client_; } // optional int32 proposalNumber = 2; public static final int PROPOSALNUMBER_FIELD_NUMBER = 2; private int proposalNumber_; public boolean hasProposalNumber() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getProposalNumber() { return proposalNumber_; } private void initFields() { client_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); proposalNumber_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, client_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, proposalNumber_); } 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 .computeMessageSize(1, client_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, proposalNumber_); } 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 com.orbekk.same.Services.PaxosRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.PaxosRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.PaxosRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.PaxosRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.PaxosRequest 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.PaxosRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosRequest_fieldAccessorTable; } // Construct using com.orbekk.same.Services.PaxosRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getClientFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (clientBuilder_ == null) { client_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); } else { clientBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); proposalNumber_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.PaxosRequest.getDescriptor(); } public com.orbekk.same.Services.PaxosRequest getDefaultInstanceForType() { return com.orbekk.same.Services.PaxosRequest.getDefaultInstance(); } public com.orbekk.same.Services.PaxosRequest build() { com.orbekk.same.Services.PaxosRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.PaxosRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.PaxosRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.PaxosRequest buildPartial() { com.orbekk.same.Services.PaxosRequest result = new com.orbekk.same.Services.PaxosRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (clientBuilder_ == null) { result.client_ = client_; } else { result.client_ = clientBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.proposalNumber_ = proposalNumber_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.PaxosRequest) { return mergeFrom((com.orbekk.same.Services.PaxosRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.PaxosRequest other) { if (other == com.orbekk.same.Services.PaxosRequest.getDefaultInstance()) return this; if (other.hasClient()) { mergeClient(other.getClient()); } if (other.hasProposalNumber()) { setProposalNumber(other.getProposalNumber()); } this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { com.orbekk.same.Services.ClientState.Builder subBuilder = com.orbekk.same.Services.ClientState.newBuilder(); if (hasClient()) { subBuilder.mergeFrom(getClient()); } input.readMessage(subBuilder, extensionRegistry); setClient(subBuilder.buildPartial()); break; } case 16: { bitField0_ |= 0x00000002; proposalNumber_ = input.readInt32(); break; } } } } private int bitField0_; // optional .com.orbekk.same.ClientState client = 1; private com.orbekk.same.Services.ClientState client_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder> clientBuilder_; public boolean hasClient() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.orbekk.same.Services.ClientState getClient() { if (clientBuilder_ == null) { return client_; } else { return clientBuilder_.getMessage(); } } public Builder setClient(com.orbekk.same.Services.ClientState value) { if (clientBuilder_ == null) { if (value == null) { throw new NullPointerException(); } client_ = value; onChanged(); } else { clientBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } public Builder setClient( com.orbekk.same.Services.ClientState.Builder builderForValue) { if (clientBuilder_ == null) { client_ = builderForValue.build(); onChanged(); } else { clientBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } public Builder mergeClient(com.orbekk.same.Services.ClientState value) { if (clientBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && client_ != com.orbekk.same.Services.ClientState.getDefaultInstance()) { client_ = com.orbekk.same.Services.ClientState.newBuilder(client_).mergeFrom(value).buildPartial(); } else { client_ = value; } onChanged(); } else { clientBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } public Builder clearClient() { if (clientBuilder_ == null) { client_ = com.orbekk.same.Services.ClientState.getDefaultInstance(); onChanged(); } else { clientBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.orbekk.same.Services.ClientState.Builder getClientBuilder() { bitField0_ |= 0x00000001; onChanged(); return getClientFieldBuilder().getBuilder(); } public com.orbekk.same.Services.ClientStateOrBuilder getClientOrBuilder() { if (clientBuilder_ != null) { return clientBuilder_.getMessageOrBuilder(); } else { return client_; } } private com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder> getClientFieldBuilder() { if (clientBuilder_ == null) { clientBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.orbekk.same.Services.ClientState, com.orbekk.same.Services.ClientState.Builder, com.orbekk.same.Services.ClientStateOrBuilder>( client_, getParentForChildren(), isClean()); client_ = null; } return clientBuilder_; } // optional int32 proposalNumber = 2; private int proposalNumber_ ; public boolean hasProposalNumber() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getProposalNumber() { return proposalNumber_; } public Builder setProposalNumber(int value) { bitField0_ |= 0x00000002; proposalNumber_ = value; onChanged(); return this; } public Builder clearProposalNumber() { bitField0_ = (bitField0_ & ~0x00000002); proposalNumber_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.PaxosRequest) } static { defaultInstance = new PaxosRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.PaxosRequest) } public interface PaxosResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 result = 1; boolean hasResult(); int getResult(); } public static final class PaxosResponse extends com.google.protobuf.GeneratedMessage implements PaxosResponseOrBuilder { // Use PaxosResponse.newBuilder() to construct. private PaxosResponse(Builder builder) { super(builder); } private PaxosResponse(boolean noInit) {} private static final PaxosResponse defaultInstance; public static PaxosResponse getDefaultInstance() { return defaultInstance; } public PaxosResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosResponse_fieldAccessorTable; } private int bitField0_; // optional int32 result = 1; public static final int RESULT_FIELD_NUMBER = 1; private int result_; public boolean hasResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getResult() { return result_; } private void initFields() { result_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, result_); } 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 .computeInt32Size(1, result_); } 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 com.orbekk.same.Services.PaxosResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.PaxosResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.Services.PaxosResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.Services.PaxosResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.Services.PaxosResponse 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.Services.PaxosResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.Services.internal_static_com_orbekk_same_PaxosResponse_fieldAccessorTable; } // Construct using com.orbekk.same.Services.PaxosResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); result_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.Services.PaxosResponse.getDescriptor(); } public com.orbekk.same.Services.PaxosResponse getDefaultInstanceForType() { return com.orbekk.same.Services.PaxosResponse.getDefaultInstance(); } public com.orbekk.same.Services.PaxosResponse build() { com.orbekk.same.Services.PaxosResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.Services.PaxosResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.Services.PaxosResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.Services.PaxosResponse buildPartial() { com.orbekk.same.Services.PaxosResponse result = new com.orbekk.same.Services.PaxosResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.result_ = result_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.Services.PaxosResponse) { return mergeFrom((com.orbekk.same.Services.PaxosResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.Services.PaxosResponse other) { if (other == com.orbekk.same.Services.PaxosResponse.getDefaultInstance()) return this; if (other.hasResult()) { setResult(other.getResult()); } this.mergeUnknownFields(other.getUnknownFields()); 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { bitField0_ |= 0x00000001; result_ = input.readInt32(); break; } } } } private int bitField0_; // optional int32 result = 1; private int result_ ; public boolean hasResult() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getResult() { return result_; } public Builder setResult(int value) { bitField0_ |= 0x00000001; result_ = value; onChanged(); return this; } public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); result_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.PaxosResponse) } static { defaultInstance = new PaxosResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.PaxosResponse) } public static abstract class Client implements com.google.protobuf.Service { protected Client() {} public interface Interface { public abstract void setState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done); public abstract void masterDown( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public abstract void masterTakeover( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public abstract void getFullState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done); public abstract void masterTakeoverFinished( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new Client() { @java.lang.Override public void setState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done) { impl.setState(controller, request, done); } @java.lang.Override public void masterDown( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { impl.masterDown(controller, request, done); } @java.lang.Override public void masterTakeover( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { impl.masterTakeover(controller, request, done); } @java.lang.Override public void getFullState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done) { impl.getFullState(controller, request, done); } @java.lang.Override public void masterTakeoverFinished( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { impl.masterTakeoverFinished(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.setState(controller, (com.orbekk.same.Services.Component)request); case 1: return impl.masterDown(controller, (com.orbekk.same.Services.MasterState)request); case 2: return impl.masterTakeover(controller, (com.orbekk.same.Services.MasterState)request); case 3: return impl.getFullState(controller, (com.orbekk.same.Services.Empty)request); case 4: return impl.masterTakeoverFinished(controller, (com.orbekk.same.Services.MasterState)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Component.getDefaultInstance(); case 1: return com.orbekk.same.Services.MasterState.getDefaultInstance(); case 2: return com.orbekk.same.Services.MasterState.getDefaultInstance(); case 3: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 4: return com.orbekk.same.Services.MasterState.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 1: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 2: return com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance(); case 3: return com.orbekk.same.Services.FullStateResponse.getDefaultInstance(); case 4: return com.orbekk.same.Services.Empty.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void setState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done); public abstract void masterDown( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public abstract void masterTakeover( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public abstract void getFullState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done); public abstract void masterTakeoverFinished( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.same.Services.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.setState(controller, (com.orbekk.same.Services.Component)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.masterDown(controller, (com.orbekk.same.Services.MasterState)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 2: this.masterTakeover(controller, (com.orbekk.same.Services.MasterState)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 3: this.getFullState(controller, (com.orbekk.same.Services.Empty)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 4: this.masterTakeoverFinished(controller, (com.orbekk.same.Services.MasterState)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Component.getDefaultInstance(); case 1: return com.orbekk.same.Services.MasterState.getDefaultInstance(); case 2: return com.orbekk.same.Services.MasterState.getDefaultInstance(); case 3: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 4: return com.orbekk.same.Services.MasterState.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 1: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 2: return com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance(); case 3: return com.orbekk.same.Services.FullStateResponse.getDefaultInstance(); case 4: return com.orbekk.same.Services.Empty.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends com.orbekk.same.Services.Client implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void setState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.Empty.class, com.orbekk.same.Services.Empty.getDefaultInstance())); } public void masterDown( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.Empty.class, com.orbekk.same.Services.Empty.getDefaultInstance())); } public void masterTakeover( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(2), controller, request, com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.MasterTakeoverResponse.class, com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance())); } public void getFullState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(3), controller, request, com.orbekk.same.Services.FullStateResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.FullStateResponse.class, com.orbekk.same.Services.FullStateResponse.getDefaultInstance())); } public void masterTakeoverFinished( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(4), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.Empty.class, com.orbekk.same.Services.Empty.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.same.Services.Empty setState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.Empty masterDown( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.MasterTakeoverResponse masterTakeover( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.FullStateResponse getFullState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.Empty masterTakeoverFinished( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public com.orbekk.same.Services.Empty setState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.Empty) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance()); } public com.orbekk.same.Services.Empty masterDown( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.Empty) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance()); } public com.orbekk.same.Services.MasterTakeoverResponse masterTakeover( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.MasterTakeoverResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(2), controller, request, com.orbekk.same.Services.MasterTakeoverResponse.getDefaultInstance()); } public com.orbekk.same.Services.FullStateResponse getFullState( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.FullStateResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(3), controller, request, com.orbekk.same.Services.FullStateResponse.getDefaultInstance()); } public com.orbekk.same.Services.Empty masterTakeoverFinished( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.Empty) channel.callBlockingMethod( getDescriptor().getMethods().get(4), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance()); } } } public static abstract class Master implements com.google.protobuf.Service { protected Master() {} public interface Interface { public abstract void joinNetworkRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.ClientState request, com.google.protobuf.RpcCallback done); public abstract void updateStateRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new Master() { @java.lang.Override public void joinNetworkRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.ClientState request, com.google.protobuf.RpcCallback done) { impl.joinNetworkRequest(controller, request, done); } @java.lang.Override public void updateStateRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done) { impl.updateStateRequest(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.joinNetworkRequest(controller, (com.orbekk.same.Services.ClientState)request); case 1: return impl.updateStateRequest(controller, (com.orbekk.same.Services.Component)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.ClientState.getDefaultInstance(); case 1: return com.orbekk.same.Services.Component.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 1: return com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void joinNetworkRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.ClientState request, com.google.protobuf.RpcCallback done); public abstract void updateStateRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.same.Services.getDescriptor().getServices().get(1); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.joinNetworkRequest(controller, (com.orbekk.same.Services.ClientState)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.updateStateRequest(controller, (com.orbekk.same.Services.Component)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.ClientState.getDefaultInstance(); case 1: return com.orbekk.same.Services.Component.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 1: return com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends com.orbekk.same.Services.Master implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void joinNetworkRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.ClientState request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.Empty.class, com.orbekk.same.Services.Empty.getDefaultInstance())); } public void updateStateRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.UpdateComponentResponse.class, com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.same.Services.Empty joinNetworkRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.ClientState request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.UpdateComponentResponse updateStateRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public com.orbekk.same.Services.Empty joinNetworkRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.ClientState request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.Empty) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance()); } public com.orbekk.same.Services.UpdateComponentResponse updateStateRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Component request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.UpdateComponentResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.UpdateComponentResponse.getDefaultInstance()); } } } public static abstract class Directory implements com.google.protobuf.Service { protected Directory() {} public interface Interface { public abstract void registerNetwork( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public abstract void getNetworks( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new Directory() { @java.lang.Override public void registerNetwork( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { impl.registerNetwork(controller, request, done); } @java.lang.Override public void getNetworks( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done) { impl.getNetworks(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.registerNetwork(controller, (com.orbekk.same.Services.MasterState)request); case 1: return impl.getNetworks(controller, (com.orbekk.same.Services.Empty)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.MasterState.getDefaultInstance(); case 1: return com.orbekk.same.Services.Empty.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 1: return com.orbekk.same.Services.NetworkDirectory.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void registerNetwork( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done); public abstract void getNetworks( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.same.Services.getDescriptor().getServices().get(2); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.registerNetwork(controller, (com.orbekk.same.Services.MasterState)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.getNetworks(controller, (com.orbekk.same.Services.Empty)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.MasterState.getDefaultInstance(); case 1: return com.orbekk.same.Services.Empty.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); case 1: return com.orbekk.same.Services.NetworkDirectory.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends com.orbekk.same.Services.Directory implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void registerNetwork( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.Empty.class, com.orbekk.same.Services.Empty.getDefaultInstance())); } public void getNetworks( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.NetworkDirectory.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.NetworkDirectory.class, com.orbekk.same.Services.NetworkDirectory.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.same.Services.Empty registerNetwork( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.NetworkDirectory getNetworks( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public com.orbekk.same.Services.Empty registerNetwork( com.google.protobuf.RpcController controller, com.orbekk.same.Services.MasterState request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.Empty) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.Empty.getDefaultInstance()); } public com.orbekk.same.Services.NetworkDirectory getNetworks( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.NetworkDirectory) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.NetworkDirectory.getDefaultInstance()); } } } public static abstract class Paxos implements com.google.protobuf.Service { protected Paxos() {} public interface Interface { public abstract void propose( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done); public abstract void acceptRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new Paxos() { @java.lang.Override public void propose( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done) { impl.propose(controller, request, done); } @java.lang.Override public void acceptRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done) { impl.acceptRequest(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.propose(controller, (com.orbekk.same.Services.PaxosRequest)request); case 1: return impl.acceptRequest(controller, (com.orbekk.same.Services.PaxosRequest)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.PaxosRequest.getDefaultInstance(); case 1: return com.orbekk.same.Services.PaxosRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.PaxosResponse.getDefaultInstance(); case 1: return com.orbekk.same.Services.PaxosResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void propose( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done); public abstract void acceptRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.same.Services.getDescriptor().getServices().get(3); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.propose(controller, (com.orbekk.same.Services.PaxosRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.acceptRequest(controller, (com.orbekk.same.Services.PaxosRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.PaxosRequest.getDefaultInstance(); case 1: return com.orbekk.same.Services.PaxosRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.PaxosResponse.getDefaultInstance(); case 1: return com.orbekk.same.Services.PaxosResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends com.orbekk.same.Services.Paxos implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void propose( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.PaxosResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.PaxosResponse.class, com.orbekk.same.Services.PaxosResponse.getDefaultInstance())); } public void acceptRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.PaxosResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.PaxosResponse.class, com.orbekk.same.Services.PaxosResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.same.Services.PaxosResponse propose( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request) throws com.google.protobuf.ServiceException; public com.orbekk.same.Services.PaxosResponse acceptRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public com.orbekk.same.Services.PaxosResponse propose( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.PaxosResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.PaxosResponse.getDefaultInstance()); } public com.orbekk.same.Services.PaxosResponse acceptRequest( com.google.protobuf.RpcController controller, com.orbekk.same.Services.PaxosRequest request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.PaxosResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, com.orbekk.same.Services.PaxosResponse.getDefaultInstance()); } } } public static abstract class SystemService implements com.google.protobuf.Service { protected SystemService() {} public interface Interface { public abstract void getSystemStatus( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new SystemService() { @java.lang.Override public void getSystemStatus( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done) { impl.getSystemStatus(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.getSystemStatus(controller, (com.orbekk.same.Services.Empty)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.SystemStatus.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void getSystemStatus( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.same.Services.getDescriptor().getServices().get(4); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.getSystemStatus(controller, (com.orbekk.same.Services.Empty)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.Empty.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.Services.SystemStatus.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends com.orbekk.same.Services.SystemService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void getSystemStatus( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.SystemStatus.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.Services.SystemStatus.class, com.orbekk.same.Services.SystemStatus.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.same.Services.SystemStatus getSystemStatus( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public com.orbekk.same.Services.SystemStatus getSystemStatus( com.google.protobuf.RpcController controller, com.orbekk.same.Services.Empty request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.Services.SystemStatus) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.Services.SystemStatus.getDefaultInstance()); } } } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_Empty_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_Empty_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_UpdateComponentResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_UpdateComponentResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_SystemStatus_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_SystemStatus_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_Component_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_Component_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_MasterState_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_MasterState_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_MasterTakeoverResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_MasterTakeoverResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_FullStateResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_FullStateResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_ClientState_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_ClientState_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_NetworkDirectory_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_NetworkDirectory_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_PaxosRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_PaxosRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_PaxosResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_PaxosResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n,src/main/java/com/orbekk/same/services" + ".proto\022\017com.orbekk.same\"\007\n\005Empty\"*\n\027Upda" + "teComponentResponse\022\017\n\007success\030\001 \002(\010\"\366\002\n" + "\014SystemStatus\022\022\n\nextra_info\030\007 \003(\t\0223\n\rmas" + "ter_status\030\001 \001(\0132\034.com.orbekk.same.Maste" + "rState\022:\n\026master_state_component\030\002 \003(\0132\032" + ".com.orbekk.same.Component\022\031\n\021extra_mast" + "er_info\030\003 \003(\t\0223\n\rclient_status\030\004 \001(\0132\034.c" + "om.orbekk.same.ClientState\022:\n\024client_mas" + "ter_status\030\010 \001(\0132\034.com.orbekk.same.Maste", "rState\022:\n\026client_state_component\030\005 \003(\0132\032" + ".com.orbekk.same.Component\022\031\n\021extra_clie" + "nt_info\030\006 \003(\t\"7\n\tComponent\022\n\n\002id\030\001 \002(\t\022\014" + "\n\004data\030\002 \002(\t\022\020\n\010revision\030\003 \002(\003\"u\n\013Master" + "State\022\022\n\nmaster_url\030\001 \001(\t\022\021\n\tmaster_id\030\002" + " \001(\005\022\024\n\014network_name\030\003 \001(\t\022\027\n\017master_loc" + "ation\030\004 \001(\t\022\020\n\010revision\030\005 \001(\003\"]\n\026MasterT" + "akeoverResponse\022\017\n\007success\030\002 \001(\010\0222\n\014clie" + "nt_state\030\003 \001(\0132\034.com.orbekk.same.ClientS" + "tate\"T\n\021FullStateResponse\022\020\n\010revision\030\001 ", "\001(\003\022-\n\tcomponent\030\002 \003(\0132\032.com.orbekk.same" + ".Component\">\n\013ClientState\022\013\n\003url\030\001 \001(\t\022\020" + "\n\010location\030\002 \001(\t\022\020\n\010revision\030\003 \001(\003\"A\n\020Ne" + "tworkDirectory\022-\n\007network\030\001 \003(\0132\034.com.or" + "bekk.same.MasterState\"T\n\014PaxosRequest\022,\n" + "\006client\030\001 \001(\0132\034.com.orbekk.same.ClientSt" + "ate\022\026\n\016proposalNumber\030\002 \001(\005\"\037\n\rPaxosResp" + "onse\022\016\n\006result\030\001 \001(\0052\201\003\n\006Client\022>\n\010SetSt" + "ate\022\032.com.orbekk.same.Component\032\026.com.or" + "bekk.same.Empty\022B\n\nMasterDown\022\034.com.orbe", "kk.same.MasterState\032\026.com.orbekk.same.Em" + "pty\022W\n\016MasterTakeover\022\034.com.orbekk.same." + "MasterState\032\'.com.orbekk.same.MasterTake" + "overResponse\022J\n\014GetFullState\022\026.com.orbek" + "k.same.Empty\032\".com.orbekk.same.FullState" + "Response\022N\n\026MasterTakeoverFinished\022\034.com" + ".orbekk.same.MasterState\032\026.com.orbekk.sa" + "me.Empty2\260\001\n\006Master\022J\n\022JoinNetworkReques" + "t\022\034.com.orbekk.same.ClientState\032\026.com.or" + "bekk.same.Empty\022Z\n\022UpdateStateRequest\022\032.", "com.orbekk.same.Component\032(.com.orbekk.s" + "ame.UpdateComponentResponse2\236\001\n\tDirector" + "y\022G\n\017RegisterNetwork\022\034.com.orbekk.same.M" + "asterState\032\026.com.orbekk.same.Empty\022H\n\013Ge" + "tNetworks\022\026.com.orbekk.same.Empty\032!.com." + "orbekk.same.NetworkDirectory2\241\001\n\005Paxos\022H" + "\n\007Propose\022\035.com.orbekk.same.PaxosRequest" + "\032\036.com.orbekk.same.PaxosResponse\022N\n\rAcce" + "ptRequest\022\035.com.orbekk.same.PaxosRequest" + "\032\036.com.orbekk.same.PaxosResponse2Y\n\rSyst", "emService\022H\n\017GetSystemStatus\022\026.com.orbek" + "k.same.Empty\032\035.com.orbekk.same.SystemSta" + "tusB\003\210\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_com_orbekk_same_Empty_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_orbekk_same_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_Empty_descriptor, new java.lang.String[] { }, com.orbekk.same.Services.Empty.class, com.orbekk.same.Services.Empty.Builder.class); internal_static_com_orbekk_same_UpdateComponentResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_orbekk_same_UpdateComponentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_UpdateComponentResponse_descriptor, new java.lang.String[] { "Success", }, com.orbekk.same.Services.UpdateComponentResponse.class, com.orbekk.same.Services.UpdateComponentResponse.Builder.class); internal_static_com_orbekk_same_SystemStatus_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_orbekk_same_SystemStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_SystemStatus_descriptor, new java.lang.String[] { "ExtraInfo", "MasterStatus", "MasterStateComponent", "ExtraMasterInfo", "ClientStatus", "ClientMasterStatus", "ClientStateComponent", "ExtraClientInfo", }, com.orbekk.same.Services.SystemStatus.class, com.orbekk.same.Services.SystemStatus.Builder.class); internal_static_com_orbekk_same_Component_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_orbekk_same_Component_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_Component_descriptor, new java.lang.String[] { "Id", "Data", "Revision", }, com.orbekk.same.Services.Component.class, com.orbekk.same.Services.Component.Builder.class); internal_static_com_orbekk_same_MasterState_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_orbekk_same_MasterState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_MasterState_descriptor, new java.lang.String[] { "MasterUrl", "MasterId", "NetworkName", "MasterLocation", "Revision", }, com.orbekk.same.Services.MasterState.class, com.orbekk.same.Services.MasterState.Builder.class); internal_static_com_orbekk_same_MasterTakeoverResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_orbekk_same_MasterTakeoverResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_MasterTakeoverResponse_descriptor, new java.lang.String[] { "Success", "ClientState", }, com.orbekk.same.Services.MasterTakeoverResponse.class, com.orbekk.same.Services.MasterTakeoverResponse.Builder.class); internal_static_com_orbekk_same_FullStateResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_orbekk_same_FullStateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_FullStateResponse_descriptor, new java.lang.String[] { "Revision", "Component", }, com.orbekk.same.Services.FullStateResponse.class, com.orbekk.same.Services.FullStateResponse.Builder.class); internal_static_com_orbekk_same_ClientState_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_orbekk_same_ClientState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_ClientState_descriptor, new java.lang.String[] { "Url", "Location", "Revision", }, com.orbekk.same.Services.ClientState.class, com.orbekk.same.Services.ClientState.Builder.class); internal_static_com_orbekk_same_NetworkDirectory_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_orbekk_same_NetworkDirectory_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_NetworkDirectory_descriptor, new java.lang.String[] { "Network", }, com.orbekk.same.Services.NetworkDirectory.class, com.orbekk.same.Services.NetworkDirectory.Builder.class); internal_static_com_orbekk_same_PaxosRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_orbekk_same_PaxosRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_PaxosRequest_descriptor, new java.lang.String[] { "Client", "ProposalNumber", }, com.orbekk.same.Services.PaxosRequest.class, com.orbekk.same.Services.PaxosRequest.Builder.class); internal_static_com_orbekk_same_PaxosResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_com_orbekk_same_PaxosResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_PaxosResponse_descriptor, new java.lang.String[] { "Result", }, com.orbekk.same.Services.PaxosResponse.class, com.orbekk.same.Services.PaxosResponse.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }