io.opensergo.proto.service_contract.v1.ServiceMetadata Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opensergo/proto/service_contract/v1/service_contract.proto
package io.opensergo.proto.service_contract.v1;
/**
*
* Define services on same address and port
*
*
* Protobuf type {@code opensergo.proto.service_contract.v1.ServiceMetadata}
*/
public final class ServiceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opensergo.proto.service_contract.v1.ServiceMetadata)
ServiceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServiceMetadata.newBuilder() to construct.
private ServiceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServiceMetadata() {
listeningAddresses_ = java.util.Collections.emptyList();
protocols_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServiceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServiceMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
listeningAddresses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
listeningAddresses_.add(
input.readMessage(io.opensergo.proto.service_contract.v1.SocketAddress.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
protocols_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
protocols_.add(s);
break;
}
case 26: {
io.opensergo.proto.service_contract.v1.ServiceContract.Builder subBuilder = null;
if (serviceContract_ != null) {
subBuilder = serviceContract_.toBuilder();
}
serviceContract_ = input.readMessage(io.opensergo.proto.service_contract.v1.ServiceContract.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(serviceContract_);
serviceContract_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
listeningAddresses_ = java.util.Collections.unmodifiableList(listeningAddresses_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
protocols_ = protocols_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_ServiceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_ServiceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opensergo.proto.service_contract.v1.ServiceMetadata.class, io.opensergo.proto.service_contract.v1.ServiceMetadata.Builder.class);
}
public static final int LISTENING_ADDRESSES_FIELD_NUMBER = 1;
private java.util.List listeningAddresses_;
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
@java.lang.Override
public java.util.List getListeningAddressesList() {
return listeningAddresses_;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
@java.lang.Override
public java.util.List extends io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder>
getListeningAddressesOrBuilderList() {
return listeningAddresses_;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
@java.lang.Override
public int getListeningAddressesCount() {
return listeningAddresses_.size();
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
@java.lang.Override
public io.opensergo.proto.service_contract.v1.SocketAddress getListeningAddresses(int index) {
return listeningAddresses_.get(index);
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
@java.lang.Override
public io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder getListeningAddressesOrBuilder(
int index) {
return listeningAddresses_.get(index);
}
public static final int PROTOCOLS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList protocols_;
/**
* repeated string protocols = 2;
* @return A list containing the protocols.
*/
public com.google.protobuf.ProtocolStringList
getProtocolsList() {
return protocols_;
}
/**
* repeated string protocols = 2;
* @return The count of protocols.
*/
public int getProtocolsCount() {
return protocols_.size();
}
/**
* repeated string protocols = 2;
* @param index The index of the element to return.
* @return The protocols at the given index.
*/
public java.lang.String getProtocols(int index) {
return protocols_.get(index);
}
/**
* repeated string protocols = 2;
* @param index The index of the value to return.
* @return The bytes of the protocols at the given index.
*/
public com.google.protobuf.ByteString
getProtocolsBytes(int index) {
return protocols_.getByteString(index);
}
public static final int SERVICE_CONTRACT_FIELD_NUMBER = 3;
private io.opensergo.proto.service_contract.v1.ServiceContract serviceContract_;
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
* @return Whether the serviceContract field is set.
*/
@java.lang.Override
public boolean hasServiceContract() {
return serviceContract_ != null;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
* @return The serviceContract.
*/
@java.lang.Override
public io.opensergo.proto.service_contract.v1.ServiceContract getServiceContract() {
return serviceContract_ == null ? io.opensergo.proto.service_contract.v1.ServiceContract.getDefaultInstance() : serviceContract_;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
@java.lang.Override
public io.opensergo.proto.service_contract.v1.ServiceContractOrBuilder getServiceContractOrBuilder() {
return getServiceContract();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < listeningAddresses_.size(); i++) {
output.writeMessage(1, listeningAddresses_.get(i));
}
for (int i = 0; i < protocols_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocols_.getRaw(i));
}
if (serviceContract_ != null) {
output.writeMessage(3, getServiceContract());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < listeningAddresses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, listeningAddresses_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < protocols_.size(); i++) {
dataSize += computeStringSizeNoTag(protocols_.getRaw(i));
}
size += dataSize;
size += 1 * getProtocolsList().size();
}
if (serviceContract_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getServiceContract());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.opensergo.proto.service_contract.v1.ServiceMetadata)) {
return super.equals(obj);
}
io.opensergo.proto.service_contract.v1.ServiceMetadata other = (io.opensergo.proto.service_contract.v1.ServiceMetadata) obj;
if (!getListeningAddressesList()
.equals(other.getListeningAddressesList())) return false;
if (!getProtocolsList()
.equals(other.getProtocolsList())) return false;
if (hasServiceContract() != other.hasServiceContract()) return false;
if (hasServiceContract()) {
if (!getServiceContract()
.equals(other.getServiceContract())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getListeningAddressesCount() > 0) {
hash = (37 * hash) + LISTENING_ADDRESSES_FIELD_NUMBER;
hash = (53 * hash) + getListeningAddressesList().hashCode();
}
if (getProtocolsCount() > 0) {
hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER;
hash = (53 * hash) + getProtocolsList().hashCode();
}
if (hasServiceContract()) {
hash = (37 * hash) + SERVICE_CONTRACT_FIELD_NUMBER;
hash = (53 * hash) + getServiceContract().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.opensergo.proto.service_contract.v1.ServiceMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Define services on same address and port
*
*
* Protobuf type {@code opensergo.proto.service_contract.v1.ServiceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opensergo.proto.service_contract.v1.ServiceMetadata)
io.opensergo.proto.service_contract.v1.ServiceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_ServiceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_ServiceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opensergo.proto.service_contract.v1.ServiceMetadata.class, io.opensergo.proto.service_contract.v1.ServiceMetadata.Builder.class);
}
// Construct using io.opensergo.proto.service_contract.v1.ServiceMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getListeningAddressesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (listeningAddressesBuilder_ == null) {
listeningAddresses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
listeningAddressesBuilder_.clear();
}
protocols_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (serviceContractBuilder_ == null) {
serviceContract_ = null;
} else {
serviceContract_ = null;
serviceContractBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_ServiceMetadata_descriptor;
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.ServiceMetadata getDefaultInstanceForType() {
return io.opensergo.proto.service_contract.v1.ServiceMetadata.getDefaultInstance();
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.ServiceMetadata build() {
io.opensergo.proto.service_contract.v1.ServiceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.ServiceMetadata buildPartial() {
io.opensergo.proto.service_contract.v1.ServiceMetadata result = new io.opensergo.proto.service_contract.v1.ServiceMetadata(this);
int from_bitField0_ = bitField0_;
if (listeningAddressesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
listeningAddresses_ = java.util.Collections.unmodifiableList(listeningAddresses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.listeningAddresses_ = listeningAddresses_;
} else {
result.listeningAddresses_ = listeningAddressesBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
protocols_ = protocols_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.protocols_ = protocols_;
if (serviceContractBuilder_ == null) {
result.serviceContract_ = serviceContract_;
} else {
result.serviceContract_ = serviceContractBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.opensergo.proto.service_contract.v1.ServiceMetadata) {
return mergeFrom((io.opensergo.proto.service_contract.v1.ServiceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opensergo.proto.service_contract.v1.ServiceMetadata other) {
if (other == io.opensergo.proto.service_contract.v1.ServiceMetadata.getDefaultInstance()) return this;
if (listeningAddressesBuilder_ == null) {
if (!other.listeningAddresses_.isEmpty()) {
if (listeningAddresses_.isEmpty()) {
listeningAddresses_ = other.listeningAddresses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureListeningAddressesIsMutable();
listeningAddresses_.addAll(other.listeningAddresses_);
}
onChanged();
}
} else {
if (!other.listeningAddresses_.isEmpty()) {
if (listeningAddressesBuilder_.isEmpty()) {
listeningAddressesBuilder_.dispose();
listeningAddressesBuilder_ = null;
listeningAddresses_ = other.listeningAddresses_;
bitField0_ = (bitField0_ & ~0x00000001);
listeningAddressesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getListeningAddressesFieldBuilder() : null;
} else {
listeningAddressesBuilder_.addAllMessages(other.listeningAddresses_);
}
}
}
if (!other.protocols_.isEmpty()) {
if (protocols_.isEmpty()) {
protocols_ = other.protocols_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureProtocolsIsMutable();
protocols_.addAll(other.protocols_);
}
onChanged();
}
if (other.hasServiceContract()) {
mergeServiceContract(other.getServiceContract());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.opensergo.proto.service_contract.v1.ServiceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opensergo.proto.service_contract.v1.ServiceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List listeningAddresses_ =
java.util.Collections.emptyList();
private void ensureListeningAddressesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
listeningAddresses_ = new java.util.ArrayList(listeningAddresses_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opensergo.proto.service_contract.v1.SocketAddress, io.opensergo.proto.service_contract.v1.SocketAddress.Builder, io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder> listeningAddressesBuilder_;
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public java.util.List getListeningAddressesList() {
if (listeningAddressesBuilder_ == null) {
return java.util.Collections.unmodifiableList(listeningAddresses_);
} else {
return listeningAddressesBuilder_.getMessageList();
}
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public int getListeningAddressesCount() {
if (listeningAddressesBuilder_ == null) {
return listeningAddresses_.size();
} else {
return listeningAddressesBuilder_.getCount();
}
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public io.opensergo.proto.service_contract.v1.SocketAddress getListeningAddresses(int index) {
if (listeningAddressesBuilder_ == null) {
return listeningAddresses_.get(index);
} else {
return listeningAddressesBuilder_.getMessage(index);
}
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder setListeningAddresses(
int index, io.opensergo.proto.service_contract.v1.SocketAddress value) {
if (listeningAddressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListeningAddressesIsMutable();
listeningAddresses_.set(index, value);
onChanged();
} else {
listeningAddressesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder setListeningAddresses(
int index, io.opensergo.proto.service_contract.v1.SocketAddress.Builder builderForValue) {
if (listeningAddressesBuilder_ == null) {
ensureListeningAddressesIsMutable();
listeningAddresses_.set(index, builderForValue.build());
onChanged();
} else {
listeningAddressesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder addListeningAddresses(io.opensergo.proto.service_contract.v1.SocketAddress value) {
if (listeningAddressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListeningAddressesIsMutable();
listeningAddresses_.add(value);
onChanged();
} else {
listeningAddressesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder addListeningAddresses(
int index, io.opensergo.proto.service_contract.v1.SocketAddress value) {
if (listeningAddressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListeningAddressesIsMutable();
listeningAddresses_.add(index, value);
onChanged();
} else {
listeningAddressesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder addListeningAddresses(
io.opensergo.proto.service_contract.v1.SocketAddress.Builder builderForValue) {
if (listeningAddressesBuilder_ == null) {
ensureListeningAddressesIsMutable();
listeningAddresses_.add(builderForValue.build());
onChanged();
} else {
listeningAddressesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder addListeningAddresses(
int index, io.opensergo.proto.service_contract.v1.SocketAddress.Builder builderForValue) {
if (listeningAddressesBuilder_ == null) {
ensureListeningAddressesIsMutable();
listeningAddresses_.add(index, builderForValue.build());
onChanged();
} else {
listeningAddressesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder addAllListeningAddresses(
java.lang.Iterable extends io.opensergo.proto.service_contract.v1.SocketAddress> values) {
if (listeningAddressesBuilder_ == null) {
ensureListeningAddressesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, listeningAddresses_);
onChanged();
} else {
listeningAddressesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder clearListeningAddresses() {
if (listeningAddressesBuilder_ == null) {
listeningAddresses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
listeningAddressesBuilder_.clear();
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public Builder removeListeningAddresses(int index) {
if (listeningAddressesBuilder_ == null) {
ensureListeningAddressesIsMutable();
listeningAddresses_.remove(index);
onChanged();
} else {
listeningAddressesBuilder_.remove(index);
}
return this;
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public io.opensergo.proto.service_contract.v1.SocketAddress.Builder getListeningAddressesBuilder(
int index) {
return getListeningAddressesFieldBuilder().getBuilder(index);
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder getListeningAddressesOrBuilder(
int index) {
if (listeningAddressesBuilder_ == null) {
return listeningAddresses_.get(index); } else {
return listeningAddressesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public java.util.List extends io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder>
getListeningAddressesOrBuilderList() {
if (listeningAddressesBuilder_ != null) {
return listeningAddressesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(listeningAddresses_);
}
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public io.opensergo.proto.service_contract.v1.SocketAddress.Builder addListeningAddressesBuilder() {
return getListeningAddressesFieldBuilder().addBuilder(
io.opensergo.proto.service_contract.v1.SocketAddress.getDefaultInstance());
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public io.opensergo.proto.service_contract.v1.SocketAddress.Builder addListeningAddressesBuilder(
int index) {
return getListeningAddressesFieldBuilder().addBuilder(
index, io.opensergo.proto.service_contract.v1.SocketAddress.getDefaultInstance());
}
/**
* repeated .opensergo.proto.service_contract.v1.SocketAddress listening_addresses = 1;
*/
public java.util.List
getListeningAddressesBuilderList() {
return getListeningAddressesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opensergo.proto.service_contract.v1.SocketAddress, io.opensergo.proto.service_contract.v1.SocketAddress.Builder, io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder>
getListeningAddressesFieldBuilder() {
if (listeningAddressesBuilder_ == null) {
listeningAddressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.opensergo.proto.service_contract.v1.SocketAddress, io.opensergo.proto.service_contract.v1.SocketAddress.Builder, io.opensergo.proto.service_contract.v1.SocketAddressOrBuilder>(
listeningAddresses_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
listeningAddresses_ = null;
}
return listeningAddressesBuilder_;
}
private com.google.protobuf.LazyStringList protocols_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureProtocolsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
protocols_ = new com.google.protobuf.LazyStringArrayList(protocols_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string protocols = 2;
* @return A list containing the protocols.
*/
public com.google.protobuf.ProtocolStringList
getProtocolsList() {
return protocols_.getUnmodifiableView();
}
/**
* repeated string protocols = 2;
* @return The count of protocols.
*/
public int getProtocolsCount() {
return protocols_.size();
}
/**
* repeated string protocols = 2;
* @param index The index of the element to return.
* @return The protocols at the given index.
*/
public java.lang.String getProtocols(int index) {
return protocols_.get(index);
}
/**
* repeated string protocols = 2;
* @param index The index of the value to return.
* @return The bytes of the protocols at the given index.
*/
public com.google.protobuf.ByteString
getProtocolsBytes(int index) {
return protocols_.getByteString(index);
}
/**
* repeated string protocols = 2;
* @param index The index to set the value at.
* @param value The protocols to set.
* @return This builder for chaining.
*/
public Builder setProtocols(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProtocolsIsMutable();
protocols_.set(index, value);
onChanged();
return this;
}
/**
* repeated string protocols = 2;
* @param value The protocols to add.
* @return This builder for chaining.
*/
public Builder addProtocols(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProtocolsIsMutable();
protocols_.add(value);
onChanged();
return this;
}
/**
* repeated string protocols = 2;
* @param values The protocols to add.
* @return This builder for chaining.
*/
public Builder addAllProtocols(
java.lang.Iterable values) {
ensureProtocolsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, protocols_);
onChanged();
return this;
}
/**
* repeated string protocols = 2;
* @return This builder for chaining.
*/
public Builder clearProtocols() {
protocols_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string protocols = 2;
* @param value The bytes of the protocols to add.
* @return This builder for chaining.
*/
public Builder addProtocolsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureProtocolsIsMutable();
protocols_.add(value);
onChanged();
return this;
}
private io.opensergo.proto.service_contract.v1.ServiceContract serviceContract_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opensergo.proto.service_contract.v1.ServiceContract, io.opensergo.proto.service_contract.v1.ServiceContract.Builder, io.opensergo.proto.service_contract.v1.ServiceContractOrBuilder> serviceContractBuilder_;
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
* @return Whether the serviceContract field is set.
*/
public boolean hasServiceContract() {
return serviceContractBuilder_ != null || serviceContract_ != null;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
* @return The serviceContract.
*/
public io.opensergo.proto.service_contract.v1.ServiceContract getServiceContract() {
if (serviceContractBuilder_ == null) {
return serviceContract_ == null ? io.opensergo.proto.service_contract.v1.ServiceContract.getDefaultInstance() : serviceContract_;
} else {
return serviceContractBuilder_.getMessage();
}
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
public Builder setServiceContract(io.opensergo.proto.service_contract.v1.ServiceContract value) {
if (serviceContractBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
serviceContract_ = value;
onChanged();
} else {
serviceContractBuilder_.setMessage(value);
}
return this;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
public Builder setServiceContract(
io.opensergo.proto.service_contract.v1.ServiceContract.Builder builderForValue) {
if (serviceContractBuilder_ == null) {
serviceContract_ = builderForValue.build();
onChanged();
} else {
serviceContractBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
public Builder mergeServiceContract(io.opensergo.proto.service_contract.v1.ServiceContract value) {
if (serviceContractBuilder_ == null) {
if (serviceContract_ != null) {
serviceContract_ =
io.opensergo.proto.service_contract.v1.ServiceContract.newBuilder(serviceContract_).mergeFrom(value).buildPartial();
} else {
serviceContract_ = value;
}
onChanged();
} else {
serviceContractBuilder_.mergeFrom(value);
}
return this;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
public Builder clearServiceContract() {
if (serviceContractBuilder_ == null) {
serviceContract_ = null;
onChanged();
} else {
serviceContract_ = null;
serviceContractBuilder_ = null;
}
return this;
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
public io.opensergo.proto.service_contract.v1.ServiceContract.Builder getServiceContractBuilder() {
onChanged();
return getServiceContractFieldBuilder().getBuilder();
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
public io.opensergo.proto.service_contract.v1.ServiceContractOrBuilder getServiceContractOrBuilder() {
if (serviceContractBuilder_ != null) {
return serviceContractBuilder_.getMessageOrBuilder();
} else {
return serviceContract_ == null ?
io.opensergo.proto.service_contract.v1.ServiceContract.getDefaultInstance() : serviceContract_;
}
}
/**
* .opensergo.proto.service_contract.v1.ServiceContract service_contract = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opensergo.proto.service_contract.v1.ServiceContract, io.opensergo.proto.service_contract.v1.ServiceContract.Builder, io.opensergo.proto.service_contract.v1.ServiceContractOrBuilder>
getServiceContractFieldBuilder() {
if (serviceContractBuilder_ == null) {
serviceContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opensergo.proto.service_contract.v1.ServiceContract, io.opensergo.proto.service_contract.v1.ServiceContract.Builder, io.opensergo.proto.service_contract.v1.ServiceContractOrBuilder>(
getServiceContract(),
getParentForChildren(),
isClean());
serviceContract_ = null;
}
return serviceContractBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:opensergo.proto.service_contract.v1.ServiceMetadata)
}
// @@protoc_insertion_point(class_scope:opensergo.proto.service_contract.v1.ServiceMetadata)
private static final io.opensergo.proto.service_contract.v1.ServiceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opensergo.proto.service_contract.v1.ServiceMetadata();
}
public static io.opensergo.proto.service_contract.v1.ServiceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServiceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServiceMetadata(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.ServiceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}