// Generated by the protocol buffer compiler. DO NOT EDIT! // source: LbaasModel.proto package io.fathom.cloud.protobuf; public final class LbaasModel { private LbaasModel() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface LbaasMappingDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 project_id = 2; /** * <code>optional int64 project_id = 2;</code> */ boolean hasProjectId(); /** * <code>optional int64 project_id = 2;</code> */ long getProjectId(); // optional string system_key = 3; /** * <code>optional string system_key = 3;</code> */ boolean hasSystemKey(); /** * <code>optional string system_key = 3;</code> */ java.lang.String getSystemKey(); /** * <code>optional string system_key = 3;</code> */ com.google.protobuf.ByteString getSystemKeyBytes(); // optional string host = 5; /** * <code>optional string host = 5;</code> */ boolean hasHost(); /** * <code>optional string host = 5;</code> */ java.lang.String getHost(); /** * <code>optional string host = 5;</code> */ com.google.protobuf.ByteString getHostBytes(); // optional string ip = 6; /** * <code>optional string ip = 6;</code> */ boolean hasIp(); /** * <code>optional string ip = 6;</code> */ java.lang.String getIp(); /** * <code>optional string ip = 6;</code> */ com.google.protobuf.ByteString getIpBytes(); // optional int32 port = 7; /** * <code>optional int32 port = 7;</code> */ boolean hasPort(); /** * <code>optional int32 port = 7;</code> */ int getPort(); // optional string forward_url = 8; /** * <code>optional string forward_url = 8;</code> */ boolean hasForwardUrl(); /** * <code>optional string forward_url = 8;</code> */ java.lang.String getForwardUrl(); /** * <code>optional string forward_url = 8;</code> */ com.google.protobuf.ByteString getForwardUrlBytes(); // optional .fathomcloud.protobuf.ItemStateData state = 9; /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ boolean hasState(); /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ io.fathom.cloud.protobuf.CloudCommons.ItemStateData getState(); /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder getStateOrBuilder(); } /** * Protobuf type {@code fathomcloud.protobuf.LbaasMappingData} */ public static final class LbaasMappingData extends com.google.protobuf.GeneratedMessage implements LbaasMappingDataOrBuilder { // Use LbaasMappingData.newBuilder() to construct. private LbaasMappingData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LbaasMappingData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LbaasMappingData defaultInstance; public static LbaasMappingData getDefaultInstance() { return defaultInstance; } public LbaasMappingData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LbaasMappingData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; projectId_ = input.readInt64(); break; } case 26: { bitField0_ |= 0x00000004; systemKey_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000008; host_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000010; ip_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000020; port_ = input.readInt32(); break; } case 66: { bitField0_ |= 0x00000040; forwardUrl_ = input.readBytes(); break; } case 74: { io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = state_.toBuilder(); } state_ = input.readMessage(io.fathom.cloud.protobuf.CloudCommons.ItemStateData.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(state_); state_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasMappingData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasMappingData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.class, io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.Builder.class); } public static com.google.protobuf.Parser<LbaasMappingData> PARSER = new com.google.protobuf.AbstractParser<LbaasMappingData>() { public LbaasMappingData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LbaasMappingData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<LbaasMappingData> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 project_id = 2; public static final int PROJECT_ID_FIELD_NUMBER = 2; private long projectId_; /** * <code>optional int64 project_id = 2;</code> */ public boolean hasProjectId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 project_id = 2;</code> */ public long getProjectId() { return projectId_; } // optional string system_key = 3; public static final int SYSTEM_KEY_FIELD_NUMBER = 3; private java.lang.Object systemKey_; /** * <code>optional string system_key = 3;</code> */ public boolean hasSystemKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string system_key = 3;</code> */ public java.lang.String getSystemKey() { java.lang.Object ref = systemKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { systemKey_ = s; } return s; } } /** * <code>optional string system_key = 3;</code> */ public com.google.protobuf.ByteString getSystemKeyBytes() { java.lang.Object ref = systemKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string host = 5; public static final int HOST_FIELD_NUMBER = 5; private java.lang.Object host_; /** * <code>optional string host = 5;</code> */ public boolean hasHost() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string host = 5;</code> */ public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { host_ = s; } return s; } } /** * <code>optional string host = 5;</code> */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string ip = 6; public static final int IP_FIELD_NUMBER = 6; private java.lang.Object ip_; /** * <code>optional string ip = 6;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string ip = 6;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ip_ = s; } return s; } } /** * <code>optional string ip = 6;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 port = 7; public static final int PORT_FIELD_NUMBER = 7; private int port_; /** * <code>optional int32 port = 7;</code> */ public boolean hasPort() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int32 port = 7;</code> */ public int getPort() { return port_; } // optional string forward_url = 8; public static final int FORWARD_URL_FIELD_NUMBER = 8; private java.lang.Object forwardUrl_; /** * <code>optional string forward_url = 8;</code> */ public boolean hasForwardUrl() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional string forward_url = 8;</code> */ public java.lang.String getForwardUrl() { java.lang.Object ref = forwardUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { forwardUrl_ = s; } return s; } } /** * <code>optional string forward_url = 8;</code> */ public com.google.protobuf.ByteString getForwardUrlBytes() { java.lang.Object ref = forwardUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); forwardUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .fathomcloud.protobuf.ItemStateData state = 9; public static final int STATE_FIELD_NUMBER = 9; private io.fathom.cloud.protobuf.CloudCommons.ItemStateData state_; /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public boolean hasState() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateData getState() { return state_; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder getStateOrBuilder() { return state_; } private void initFields() { id_ = 0L; projectId_ = 0L; systemKey_ = ""; host_ = ""; ip_ = ""; port_ = 0; forwardUrl_ = ""; state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, projectId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getSystemKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getHostBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(6, getIpBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(7, port_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(8, getForwardUrlBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(9, state_); } 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, projectId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getSystemKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getHostBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getIpBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, port_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getForwardUrlBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, state_); } 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 io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code fathomcloud.protobuf.LbaasMappingData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.fathom.cloud.protobuf.LbaasModel.LbaasMappingDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasMappingData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasMappingData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.class, io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.Builder.class); } // Construct using io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getStateFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); projectId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); systemKey_ = ""; bitField0_ = (bitField0_ & ~0x00000004); host_ = ""; bitField0_ = (bitField0_ & ~0x00000008); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000010); port_ = 0; bitField0_ = (bitField0_ & ~0x00000020); forwardUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000040); if (stateBuilder_ == null) { state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); } else { stateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasMappingData_descriptor; } public io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData getDefaultInstanceForType() { return io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.getDefaultInstance(); } public io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData build() { io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData buildPartial() { io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData result = new io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData(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.projectId_ = projectId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.systemKey_ = systemKey_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.host_ = host_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.port_ = port_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.forwardUrl_ = forwardUrl_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (stateBuilder_ == null) { result.state_ = state_; } else { result.state_ = stateBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData) { return mergeFrom((io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData other) { if (other == io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasProjectId()) { setProjectId(other.getProjectId()); } if (other.hasSystemKey()) { bitField0_ |= 0x00000004; systemKey_ = other.systemKey_; onChanged(); } if (other.hasHost()) { bitField0_ |= 0x00000008; host_ = other.host_; onChanged(); } if (other.hasIp()) { bitField0_ |= 0x00000010; ip_ = other.ip_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasForwardUrl()) { bitField0_ |= 0x00000040; forwardUrl_ = other.forwardUrl_; onChanged(); } if (other.hasState()) { mergeState(other.getState()); } 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 { io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.fathom.cloud.protobuf.LbaasModel.LbaasMappingData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 project_id = 2; private long projectId_ ; /** * <code>optional int64 project_id = 2;</code> */ public boolean hasProjectId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 project_id = 2;</code> */ public long getProjectId() { return projectId_; } /** * <code>optional int64 project_id = 2;</code> */ public Builder setProjectId(long value) { bitField0_ |= 0x00000002; projectId_ = value; onChanged(); return this; } /** * <code>optional int64 project_id = 2;</code> */ public Builder clearProjectId() { bitField0_ = (bitField0_ & ~0x00000002); projectId_ = 0L; onChanged(); return this; } // optional string system_key = 3; private java.lang.Object systemKey_ = ""; /** * <code>optional string system_key = 3;</code> */ public boolean hasSystemKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string system_key = 3;</code> */ public java.lang.String getSystemKey() { java.lang.Object ref = systemKey_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); systemKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string system_key = 3;</code> */ public com.google.protobuf.ByteString getSystemKeyBytes() { java.lang.Object ref = systemKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string system_key = 3;</code> */ public Builder setSystemKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; systemKey_ = value; onChanged(); return this; } /** * <code>optional string system_key = 3;</code> */ public Builder clearSystemKey() { bitField0_ = (bitField0_ & ~0x00000004); systemKey_ = getDefaultInstance().getSystemKey(); onChanged(); return this; } /** * <code>optional string system_key = 3;</code> */ public Builder setSystemKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; systemKey_ = value; onChanged(); return this; } // optional string host = 5; private java.lang.Object host_ = ""; /** * <code>optional string host = 5;</code> */ public boolean hasHost() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string host = 5;</code> */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string host = 5;</code> */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string host = 5;</code> */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; host_ = value; onChanged(); return this; } /** * <code>optional string host = 5;</code> */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000008); host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * <code>optional string host = 5;</code> */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; host_ = value; onChanged(); return this; } // optional string ip = 6; private java.lang.Object ip_ = ""; /** * <code>optional string ip = 6;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string ip = 6;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); ip_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string ip = 6;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string ip = 6;</code> */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; ip_ = value; onChanged(); return this; } /** * <code>optional string ip = 6;</code> */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000010); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * <code>optional string ip = 6;</code> */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; ip_ = value; onChanged(); return this; } // optional int32 port = 7; private int port_ ; /** * <code>optional int32 port = 7;</code> */ public boolean hasPort() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int32 port = 7;</code> */ public int getPort() { return port_; } /** * <code>optional int32 port = 7;</code> */ public Builder setPort(int value) { bitField0_ |= 0x00000020; port_ = value; onChanged(); return this; } /** * <code>optional int32 port = 7;</code> */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000020); port_ = 0; onChanged(); return this; } // optional string forward_url = 8; private java.lang.Object forwardUrl_ = ""; /** * <code>optional string forward_url = 8;</code> */ public boolean hasForwardUrl() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional string forward_url = 8;</code> */ public java.lang.String getForwardUrl() { java.lang.Object ref = forwardUrl_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); forwardUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string forward_url = 8;</code> */ public com.google.protobuf.ByteString getForwardUrlBytes() { java.lang.Object ref = forwardUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); forwardUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string forward_url = 8;</code> */ public Builder setForwardUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; forwardUrl_ = value; onChanged(); return this; } /** * <code>optional string forward_url = 8;</code> */ public Builder clearForwardUrl() { bitField0_ = (bitField0_ & ~0x00000040); forwardUrl_ = getDefaultInstance().getForwardUrl(); onChanged(); return this; } /** * <code>optional string forward_url = 8;</code> */ public Builder setForwardUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; forwardUrl_ = value; onChanged(); return this; } // optional .fathomcloud.protobuf.ItemStateData state = 9; private io.fathom.cloud.protobuf.CloudCommons.ItemStateData state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< io.fathom.cloud.protobuf.CloudCommons.ItemStateData, io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder, io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder> stateBuilder_; /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public boolean hasState() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateData getState() { if (stateBuilder_ == null) { return state_; } else { return stateBuilder_.getMessage(); } } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public Builder setState(io.fathom.cloud.protobuf.CloudCommons.ItemStateData value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } state_ = value; onChanged(); } else { stateBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public Builder setState( io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public Builder mergeState(io.fathom.cloud.protobuf.CloudCommons.ItemStateData value) { if (stateBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && state_ != io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance()) { state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } onChanged(); } else { stateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public Builder clearState() { if (stateBuilder_ == null) { state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); onChanged(); } else { stateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder getStateBuilder() { bitField0_ |= 0x00000080; onChanged(); return getStateFieldBuilder().getBuilder(); } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { return state_; } } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 9;</code> */ private com.google.protobuf.SingleFieldBuilder< io.fathom.cloud.protobuf.CloudCommons.ItemStateData, io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder, io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { stateBuilder_ = new com.google.protobuf.SingleFieldBuilder< io.fathom.cloud.protobuf.CloudCommons.ItemStateData, io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder, io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder>( state_, getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } // @@protoc_insertion_point(builder_scope:fathomcloud.protobuf.LbaasMappingData) } static { defaultInstance = new LbaasMappingData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:fathomcloud.protobuf.LbaasMappingData) } public interface LbaasServerDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 project_id = 2; /** * <code>optional int64 project_id = 2;</code> */ boolean hasProjectId(); /** * <code>optional int64 project_id = 2;</code> */ long getProjectId(); // optional string system_key = 3; /** * <code>optional string system_key = 3;</code> */ boolean hasSystemKey(); /** * <code>optional string system_key = 3;</code> */ java.lang.String getSystemKey(); /** * <code>optional string system_key = 3;</code> */ com.google.protobuf.ByteString getSystemKeyBytes(); // optional .fathomcloud.protobuf.ItemStateData state = 5; /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ boolean hasState(); /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ io.fathom.cloud.protobuf.CloudCommons.ItemStateData getState(); /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder getStateOrBuilder(); // optional string ip = 6; /** * <code>optional string ip = 6;</code> */ boolean hasIp(); /** * <code>optional string ip = 6;</code> */ java.lang.String getIp(); /** * <code>optional string ip = 6;</code> */ com.google.protobuf.ByteString getIpBytes(); } /** * Protobuf type {@code fathomcloud.protobuf.LbaasServerData} */ public static final class LbaasServerData extends com.google.protobuf.GeneratedMessage implements LbaasServerDataOrBuilder { // Use LbaasServerData.newBuilder() to construct. private LbaasServerData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LbaasServerData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LbaasServerData defaultInstance; public static LbaasServerData getDefaultInstance() { return defaultInstance; } public LbaasServerData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LbaasServerData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; projectId_ = input.readInt64(); break; } case 26: { bitField0_ |= 0x00000004; systemKey_ = input.readBytes(); break; } case 42: { io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = state_.toBuilder(); } state_ = input.readMessage(io.fathom.cloud.protobuf.CloudCommons.ItemStateData.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(state_); state_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 50: { bitField0_ |= 0x00000010; ip_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasServerData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasServerData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.class, io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.Builder.class); } public static com.google.protobuf.Parser<LbaasServerData> PARSER = new com.google.protobuf.AbstractParser<LbaasServerData>() { public LbaasServerData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LbaasServerData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<LbaasServerData> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 project_id = 2; public static final int PROJECT_ID_FIELD_NUMBER = 2; private long projectId_; /** * <code>optional int64 project_id = 2;</code> */ public boolean hasProjectId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 project_id = 2;</code> */ public long getProjectId() { return projectId_; } // optional string system_key = 3; public static final int SYSTEM_KEY_FIELD_NUMBER = 3; private java.lang.Object systemKey_; /** * <code>optional string system_key = 3;</code> */ public boolean hasSystemKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string system_key = 3;</code> */ public java.lang.String getSystemKey() { java.lang.Object ref = systemKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { systemKey_ = s; } return s; } } /** * <code>optional string system_key = 3;</code> */ public com.google.protobuf.ByteString getSystemKeyBytes() { java.lang.Object ref = systemKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .fathomcloud.protobuf.ItemStateData state = 5; public static final int STATE_FIELD_NUMBER = 5; private io.fathom.cloud.protobuf.CloudCommons.ItemStateData state_; /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public boolean hasState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateData getState() { return state_; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder getStateOrBuilder() { return state_; } // optional string ip = 6; public static final int IP_FIELD_NUMBER = 6; private java.lang.Object ip_; /** * <code>optional string ip = 6;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string ip = 6;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ip_ = s; } return s; } } /** * <code>optional string ip = 6;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { id_ = 0L; projectId_ = 0L; systemKey_ = ""; state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); ip_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, projectId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getSystemKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, state_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(6, getIpBytes()); } 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, projectId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getSystemKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, state_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getIpBytes()); } 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 io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(io.fathom.cloud.protobuf.LbaasModel.LbaasServerData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code fathomcloud.protobuf.LbaasServerData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.fathom.cloud.protobuf.LbaasModel.LbaasServerDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasServerData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasServerData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.class, io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.Builder.class); } // Construct using io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getStateFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); projectId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); systemKey_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (stateBuilder_ == null) { state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); } else { stateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.fathom.cloud.protobuf.LbaasModel.internal_static_fathomcloud_protobuf_LbaasServerData_descriptor; } public io.fathom.cloud.protobuf.LbaasModel.LbaasServerData getDefaultInstanceForType() { return io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.getDefaultInstance(); } public io.fathom.cloud.protobuf.LbaasModel.LbaasServerData build() { io.fathom.cloud.protobuf.LbaasModel.LbaasServerData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.fathom.cloud.protobuf.LbaasModel.LbaasServerData buildPartial() { io.fathom.cloud.protobuf.LbaasModel.LbaasServerData result = new io.fathom.cloud.protobuf.LbaasModel.LbaasServerData(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.projectId_ = projectId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.systemKey_ = systemKey_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (stateBuilder_ == null) { result.state_ = state_; } else { result.state_ = stateBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.ip_ = ip_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.fathom.cloud.protobuf.LbaasModel.LbaasServerData) { return mergeFrom((io.fathom.cloud.protobuf.LbaasModel.LbaasServerData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.fathom.cloud.protobuf.LbaasModel.LbaasServerData other) { if (other == io.fathom.cloud.protobuf.LbaasModel.LbaasServerData.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasProjectId()) { setProjectId(other.getProjectId()); } if (other.hasSystemKey()) { bitField0_ |= 0x00000004; systemKey_ = other.systemKey_; onChanged(); } if (other.hasState()) { mergeState(other.getState()); } if (other.hasIp()) { bitField0_ |= 0x00000010; ip_ = other.ip_; onChanged(); } 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 { io.fathom.cloud.protobuf.LbaasModel.LbaasServerData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.fathom.cloud.protobuf.LbaasModel.LbaasServerData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 project_id = 2; private long projectId_ ; /** * <code>optional int64 project_id = 2;</code> */ public boolean hasProjectId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 project_id = 2;</code> */ public long getProjectId() { return projectId_; } /** * <code>optional int64 project_id = 2;</code> */ public Builder setProjectId(long value) { bitField0_ |= 0x00000002; projectId_ = value; onChanged(); return this; } /** * <code>optional int64 project_id = 2;</code> */ public Builder clearProjectId() { bitField0_ = (bitField0_ & ~0x00000002); projectId_ = 0L; onChanged(); return this; } // optional string system_key = 3; private java.lang.Object systemKey_ = ""; /** * <code>optional string system_key = 3;</code> */ public boolean hasSystemKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string system_key = 3;</code> */ public java.lang.String getSystemKey() { java.lang.Object ref = systemKey_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); systemKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string system_key = 3;</code> */ public com.google.protobuf.ByteString getSystemKeyBytes() { java.lang.Object ref = systemKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string system_key = 3;</code> */ public Builder setSystemKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; systemKey_ = value; onChanged(); return this; } /** * <code>optional string system_key = 3;</code> */ public Builder clearSystemKey() { bitField0_ = (bitField0_ & ~0x00000004); systemKey_ = getDefaultInstance().getSystemKey(); onChanged(); return this; } /** * <code>optional string system_key = 3;</code> */ public Builder setSystemKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; systemKey_ = value; onChanged(); return this; } // optional .fathomcloud.protobuf.ItemStateData state = 5; private io.fathom.cloud.protobuf.CloudCommons.ItemStateData state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< io.fathom.cloud.protobuf.CloudCommons.ItemStateData, io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder, io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder> stateBuilder_; /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public boolean hasState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateData getState() { if (stateBuilder_ == null) { return state_; } else { return stateBuilder_.getMessage(); } } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public Builder setState(io.fathom.cloud.protobuf.CloudCommons.ItemStateData value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } state_ = value; onChanged(); } else { stateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public Builder setState( io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public Builder mergeState(io.fathom.cloud.protobuf.CloudCommons.ItemStateData value) { if (stateBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && state_ != io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance()) { state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } onChanged(); } else { stateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public Builder clearState() { if (stateBuilder_ == null) { state_ = io.fathom.cloud.protobuf.CloudCommons.ItemStateData.getDefaultInstance(); onChanged(); } else { stateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder getStateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStateFieldBuilder().getBuilder(); } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ public io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { return state_; } } /** * <code>optional .fathomcloud.protobuf.ItemStateData state = 5;</code> */ private com.google.protobuf.SingleFieldBuilder< io.fathom.cloud.protobuf.CloudCommons.ItemStateData, io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder, io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { stateBuilder_ = new com.google.protobuf.SingleFieldBuilder< io.fathom.cloud.protobuf.CloudCommons.ItemStateData, io.fathom.cloud.protobuf.CloudCommons.ItemStateData.Builder, io.fathom.cloud.protobuf.CloudCommons.ItemStateDataOrBuilder>( state_, getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } // optional string ip = 6; private java.lang.Object ip_ = ""; /** * <code>optional string ip = 6;</code> */ public boolean hasIp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string ip = 6;</code> */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); ip_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string ip = 6;</code> */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string ip = 6;</code> */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; ip_ = value; onChanged(); return this; } /** * <code>optional string ip = 6;</code> */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000010); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * <code>optional string ip = 6;</code> */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; ip_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:fathomcloud.protobuf.LbaasServerData) } static { defaultInstance = new LbaasServerData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:fathomcloud.protobuf.LbaasServerData) } private static com.google.protobuf.Descriptors.Descriptor internal_static_fathomcloud_protobuf_LbaasMappingData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_fathomcloud_protobuf_LbaasMappingData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_fathomcloud_protobuf_LbaasServerData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_fathomcloud_protobuf_LbaasServerData_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\020LbaasModel.proto\022\024fathomcloud.protobuf" + "\032\022CloudCommons.proto\"\267\001\n\020LbaasMappingDat" + "a\022\n\n\002id\030\001 \001(\003\022\022\n\nproject_id\030\002 \001(\003\022\022\n\nsys" + "tem_key\030\003 \001(\t\022\014\n\004host\030\005 \001(\t\022\n\n\002ip\030\006 \001(\t\022" + "\014\n\004port\030\007 \001(\005\022\023\n\013forward_url\030\010 \001(\t\0222\n\005st" + "ate\030\t \001(\0132#.fathomcloud.protobuf.ItemSta" + "teData\"\205\001\n\017LbaasServerData\022\n\n\002id\030\001 \001(\003\022\022" + "\n\nproject_id\030\002 \001(\003\022\022\n\nsystem_key\030\003 \001(\t\0222" + "\n\005state\030\005 \001(\0132#.fathomcloud.protobuf.Ite" + "mStateData\022\n\n\002ip\030\006 \001(\tB\032\n\030io.fathom.clou", "d.protobuf" }; 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_fathomcloud_protobuf_LbaasMappingData_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_fathomcloud_protobuf_LbaasMappingData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_fathomcloud_protobuf_LbaasMappingData_descriptor, new java.lang.String[] { "Id", "ProjectId", "SystemKey", "Host", "Ip", "Port", "ForwardUrl", "State", }); internal_static_fathomcloud_protobuf_LbaasServerData_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_fathomcloud_protobuf_LbaasServerData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_fathomcloud_protobuf_LbaasServerData_descriptor, new java.lang.String[] { "Id", "ProjectId", "SystemKey", "State", "Ip", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.fathom.cloud.protobuf.CloudCommons.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }