io.grpc.serviceconfig.XdsServer Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: service_config.proto
// Protobuf Java Version: 3.25.4
package io.grpc.serviceconfig;
/**
*
* Represents an xDS server.
*
*
* Protobuf type {@code grpc.service_config.XdsServer}
*/
public final class XdsServer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.service_config.XdsServer)
XdsServerOrBuilder {
private static final long serialVersionUID = 0L;
// Use XdsServer.newBuilder() to construct.
private XdsServer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private XdsServer() {
serverUri_ = "";
channelCreds_ = java.util.Collections.emptyList();
serverFeatures_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new XdsServer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.XdsServer.class, io.grpc.serviceconfig.XdsServer.Builder.class);
}
public interface ChannelCredentialsOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.service_config.XdsServer.ChannelCredentials)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required.
*
*
* string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
*
* Required.
*
*
* string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
* @return Whether the config field is set.
*/
boolean hasConfig();
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
* @return The config.
*/
com.google.protobuf.Struct getConfig();
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
com.google.protobuf.StructOrBuilder getConfigOrBuilder();
}
/**
* Protobuf type {@code grpc.service_config.XdsServer.ChannelCredentials}
*/
public static final class ChannelCredentials extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.service_config.XdsServer.ChannelCredentials)
ChannelCredentialsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChannelCredentials.newBuilder() to construct.
private ChannelCredentials(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChannelCredentials() {
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChannelCredentials();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_ChannelCredentials_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_ChannelCredentials_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.XdsServer.ChannelCredentials.class, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
*
* Required.
*
*
* string type = 1;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
*
* Required.
*
*
* string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIG_FIELD_NUMBER = 2;
private com.google.protobuf.Struct config_;
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
* @return The config.
*/
@java.lang.Override
public com.google.protobuf.Struct getConfig() {
return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_;
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_;
}
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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConfig());
}
size += getUnknownFields().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.grpc.serviceconfig.XdsServer.ChannelCredentials)) {
return super.equals(obj);
}
io.grpc.serviceconfig.XdsServer.ChannelCredentials other = (io.grpc.serviceconfig.XdsServer.ChannelCredentials) obj;
if (!getType()
.equals(other.getType())) return false;
if (hasConfig() != other.hasConfig()) return false;
if (hasConfig()) {
if (!getConfig()
.equals(other.getConfig())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
if (hasConfig()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials 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.grpc.serviceconfig.XdsServer.ChannelCredentials parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials 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.grpc.serviceconfig.XdsServer.ChannelCredentials parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials 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.grpc.serviceconfig.XdsServer.ChannelCredentials 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;
}
/**
* Protobuf type {@code grpc.service_config.XdsServer.ChannelCredentials}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.service_config.XdsServer.ChannelCredentials)
io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_ChannelCredentials_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_ChannelCredentials_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.XdsServer.ChannelCredentials.class, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder.class);
}
// Construct using io.grpc.serviceconfig.XdsServer.ChannelCredentials.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = "";
config_ = null;
if (configBuilder_ != null) {
configBuilder_.dispose();
configBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_ChannelCredentials_descriptor;
}
@java.lang.Override
public io.grpc.serviceconfig.XdsServer.ChannelCredentials getDefaultInstanceForType() {
return io.grpc.serviceconfig.XdsServer.ChannelCredentials.getDefaultInstance();
}
@java.lang.Override
public io.grpc.serviceconfig.XdsServer.ChannelCredentials build() {
io.grpc.serviceconfig.XdsServer.ChannelCredentials result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.serviceconfig.XdsServer.ChannelCredentials buildPartial() {
io.grpc.serviceconfig.XdsServer.ChannelCredentials result = new io.grpc.serviceconfig.XdsServer.ChannelCredentials(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.grpc.serviceconfig.XdsServer.ChannelCredentials result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.config_ = configBuilder_ == null
? config_
: configBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.grpc.serviceconfig.XdsServer.ChannelCredentials) {
return mergeFrom((io.grpc.serviceconfig.XdsServer.ChannelCredentials)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.serviceconfig.XdsServer.ChannelCredentials other) {
if (other == io.grpc.serviceconfig.XdsServer.ChannelCredentials.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasConfig()) {
mergeConfig(other.getConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
* Required.
*
*
* string type = 1;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required.
*
*
* string type = 1;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required.
*
*
* string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required.
*
*
* string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required.
*
*
* string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Struct config_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> configBuilder_;
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
* @return The config.
*/
public com.google.protobuf.Struct getConfig() {
if (configBuilder_ == null) {
return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_;
} else {
return configBuilder_.getMessage();
}
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
public Builder setConfig(com.google.protobuf.Struct value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
} else {
configBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
public Builder setConfig(
com.google.protobuf.Struct.Builder builderForValue) {
if (configBuilder_ == null) {
config_ = builderForValue.build();
} else {
configBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
public Builder mergeConfig(com.google.protobuf.Struct value) {
if (configBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
config_ != null &&
config_ != com.google.protobuf.Struct.getDefaultInstance()) {
getConfigBuilder().mergeFrom(value);
} else {
config_ = value;
}
} else {
configBuilder_.mergeFrom(value);
}
if (config_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
public Builder clearConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
config_ = null;
if (configBuilder_ != null) {
configBuilder_.dispose();
configBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
public com.google.protobuf.Struct.Builder getConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getConfigFieldBuilder().getBuilder();
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
if (configBuilder_ != null) {
return configBuilder_.getMessageOrBuilder();
} else {
return config_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : config_;
}
}
/**
*
* Optional JSON config.
*
*
* .google.protobuf.Struct config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getConfig(),
getParentForChildren(),
isClean());
config_ = null;
}
return configBuilder_;
}
@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:grpc.service_config.XdsServer.ChannelCredentials)
}
// @@protoc_insertion_point(class_scope:grpc.service_config.XdsServer.ChannelCredentials)
private static final io.grpc.serviceconfig.XdsServer.ChannelCredentials DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.serviceconfig.XdsServer.ChannelCredentials();
}
public static io.grpc.serviceconfig.XdsServer.ChannelCredentials getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChannelCredentials parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.grpc.serviceconfig.XdsServer.ChannelCredentials getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int SERVER_URI_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object serverUri_ = "";
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @return The serverUri.
*/
@java.lang.Override
public java.lang.String getServerUri() {
java.lang.Object ref = serverUri_;
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();
serverUri_ = s;
return s;
}
}
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @return The bytes for serverUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServerUriBytes() {
java.lang.Object ref = serverUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANNEL_CREDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List channelCreds_;
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
@java.lang.Override
public java.util.List getChannelCredsList() {
return channelCreds_;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
@java.lang.Override
public java.util.List extends io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder>
getChannelCredsOrBuilderList() {
return channelCreds_;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
@java.lang.Override
public int getChannelCredsCount() {
return channelCreds_.size();
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
@java.lang.Override
public io.grpc.serviceconfig.XdsServer.ChannelCredentials getChannelCreds(int index) {
return channelCreds_.get(index);
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
@java.lang.Override
public io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder getChannelCredsOrBuilder(
int index) {
return channelCreds_.get(index);
}
public static final int SERVER_FEATURES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List serverFeatures_;
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
@java.lang.Override
public java.util.List getServerFeaturesList() {
return serverFeatures_;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.ValueOrBuilder>
getServerFeaturesOrBuilderList() {
return serverFeatures_;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
@java.lang.Override
public int getServerFeaturesCount() {
return serverFeatures_.size();
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
@java.lang.Override
public com.google.protobuf.Value getServerFeatures(int index) {
return serverFeatures_.get(index);
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
@java.lang.Override
public com.google.protobuf.ValueOrBuilder getServerFeaturesOrBuilder(
int index) {
return serverFeatures_.get(index);
}
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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverUri_);
}
for (int i = 0; i < channelCreds_.size(); i++) {
output.writeMessage(2, channelCreds_.get(i));
}
for (int i = 0; i < serverFeatures_.size(); i++) {
output.writeMessage(3, serverFeatures_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serverUri_);
}
for (int i = 0; i < channelCreds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, channelCreds_.get(i));
}
for (int i = 0; i < serverFeatures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, serverFeatures_.get(i));
}
size += getUnknownFields().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.grpc.serviceconfig.XdsServer)) {
return super.equals(obj);
}
io.grpc.serviceconfig.XdsServer other = (io.grpc.serviceconfig.XdsServer) obj;
if (!getServerUri()
.equals(other.getServerUri())) return false;
if (!getChannelCredsList()
.equals(other.getChannelCredsList())) return false;
if (!getServerFeaturesList()
.equals(other.getServerFeaturesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERVER_URI_FIELD_NUMBER;
hash = (53 * hash) + getServerUri().hashCode();
if (getChannelCredsCount() > 0) {
hash = (37 * hash) + CHANNEL_CREDS_FIELD_NUMBER;
hash = (53 * hash) + getChannelCredsList().hashCode();
}
if (getServerFeaturesCount() > 0) {
hash = (37 * hash) + SERVER_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getServerFeaturesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.serviceconfig.XdsServer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.XdsServer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.XdsServer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.XdsServer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.XdsServer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.XdsServer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.XdsServer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.XdsServer 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.grpc.serviceconfig.XdsServer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.XdsServer 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.grpc.serviceconfig.XdsServer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.XdsServer 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.grpc.serviceconfig.XdsServer 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;
}
/**
*
* Represents an xDS server.
*
*
* Protobuf type {@code grpc.service_config.XdsServer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.service_config.XdsServer)
io.grpc.serviceconfig.XdsServerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.XdsServer.class, io.grpc.serviceconfig.XdsServer.Builder.class);
}
// Construct using io.grpc.serviceconfig.XdsServer.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
serverUri_ = "";
if (channelCredsBuilder_ == null) {
channelCreds_ = java.util.Collections.emptyList();
} else {
channelCreds_ = null;
channelCredsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (serverFeaturesBuilder_ == null) {
serverFeatures_ = java.util.Collections.emptyList();
} else {
serverFeatures_ = null;
serverFeaturesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsServer_descriptor;
}
@java.lang.Override
public io.grpc.serviceconfig.XdsServer getDefaultInstanceForType() {
return io.grpc.serviceconfig.XdsServer.getDefaultInstance();
}
@java.lang.Override
public io.grpc.serviceconfig.XdsServer build() {
io.grpc.serviceconfig.XdsServer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.serviceconfig.XdsServer buildPartial() {
io.grpc.serviceconfig.XdsServer result = new io.grpc.serviceconfig.XdsServer(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.grpc.serviceconfig.XdsServer result) {
if (channelCredsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
channelCreds_ = java.util.Collections.unmodifiableList(channelCreds_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.channelCreds_ = channelCreds_;
} else {
result.channelCreds_ = channelCredsBuilder_.build();
}
if (serverFeaturesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
serverFeatures_ = java.util.Collections.unmodifiableList(serverFeatures_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.serverFeatures_ = serverFeatures_;
} else {
result.serverFeatures_ = serverFeaturesBuilder_.build();
}
}
private void buildPartial0(io.grpc.serviceconfig.XdsServer result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.serverUri_ = serverUri_;
}
}
@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.grpc.serviceconfig.XdsServer) {
return mergeFrom((io.grpc.serviceconfig.XdsServer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.serviceconfig.XdsServer other) {
if (other == io.grpc.serviceconfig.XdsServer.getDefaultInstance()) return this;
if (!other.getServerUri().isEmpty()) {
serverUri_ = other.serverUri_;
bitField0_ |= 0x00000001;
onChanged();
}
if (channelCredsBuilder_ == null) {
if (!other.channelCreds_.isEmpty()) {
if (channelCreds_.isEmpty()) {
channelCreds_ = other.channelCreds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureChannelCredsIsMutable();
channelCreds_.addAll(other.channelCreds_);
}
onChanged();
}
} else {
if (!other.channelCreds_.isEmpty()) {
if (channelCredsBuilder_.isEmpty()) {
channelCredsBuilder_.dispose();
channelCredsBuilder_ = null;
channelCreds_ = other.channelCreds_;
bitField0_ = (bitField0_ & ~0x00000002);
channelCredsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChannelCredsFieldBuilder() : null;
} else {
channelCredsBuilder_.addAllMessages(other.channelCreds_);
}
}
}
if (serverFeaturesBuilder_ == null) {
if (!other.serverFeatures_.isEmpty()) {
if (serverFeatures_.isEmpty()) {
serverFeatures_ = other.serverFeatures_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureServerFeaturesIsMutable();
serverFeatures_.addAll(other.serverFeatures_);
}
onChanged();
}
} else {
if (!other.serverFeatures_.isEmpty()) {
if (serverFeaturesBuilder_.isEmpty()) {
serverFeaturesBuilder_.dispose();
serverFeaturesBuilder_ = null;
serverFeatures_ = other.serverFeatures_;
bitField0_ = (bitField0_ & ~0x00000004);
serverFeaturesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServerFeaturesFieldBuilder() : null;
} else {
serverFeaturesBuilder_.addAllMessages(other.serverFeatures_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
serverUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
io.grpc.serviceconfig.XdsServer.ChannelCredentials m =
input.readMessage(
io.grpc.serviceconfig.XdsServer.ChannelCredentials.parser(),
extensionRegistry);
if (channelCredsBuilder_ == null) {
ensureChannelCredsIsMutable();
channelCreds_.add(m);
} else {
channelCredsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.google.protobuf.Value m =
input.readMessage(
com.google.protobuf.Value.parser(),
extensionRegistry);
if (serverFeaturesBuilder_ == null) {
ensureServerFeaturesIsMutable();
serverFeatures_.add(m);
} else {
serverFeaturesBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object serverUri_ = "";
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @return The serverUri.
*/
public java.lang.String getServerUri() {
java.lang.Object ref = serverUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @return The bytes for serverUri.
*/
public com.google.protobuf.ByteString
getServerUriBytes() {
java.lang.Object ref = serverUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @param value The serverUri to set.
* @return This builder for chaining.
*/
public Builder setServerUri(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serverUri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @return This builder for chaining.
*/
public Builder clearServerUri() {
serverUri_ = getDefaultInstance().getServerUri();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required.
*
*
* string server_uri = 1 [json_name = "server_uri"];
* @param value The bytes for serverUri to set.
* @return This builder for chaining.
*/
public Builder setServerUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
serverUri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List channelCreds_ =
java.util.Collections.emptyList();
private void ensureChannelCredsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
channelCreds_ = new java.util.ArrayList(channelCreds_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.serviceconfig.XdsServer.ChannelCredentials, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder, io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder> channelCredsBuilder_;
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public java.util.List getChannelCredsList() {
if (channelCredsBuilder_ == null) {
return java.util.Collections.unmodifiableList(channelCreds_);
} else {
return channelCredsBuilder_.getMessageList();
}
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public int getChannelCredsCount() {
if (channelCredsBuilder_ == null) {
return channelCreds_.size();
} else {
return channelCredsBuilder_.getCount();
}
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public io.grpc.serviceconfig.XdsServer.ChannelCredentials getChannelCreds(int index) {
if (channelCredsBuilder_ == null) {
return channelCreds_.get(index);
} else {
return channelCredsBuilder_.getMessage(index);
}
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder setChannelCreds(
int index, io.grpc.serviceconfig.XdsServer.ChannelCredentials value) {
if (channelCredsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelCredsIsMutable();
channelCreds_.set(index, value);
onChanged();
} else {
channelCredsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder setChannelCreds(
int index, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder builderForValue) {
if (channelCredsBuilder_ == null) {
ensureChannelCredsIsMutable();
channelCreds_.set(index, builderForValue.build());
onChanged();
} else {
channelCredsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder addChannelCreds(io.grpc.serviceconfig.XdsServer.ChannelCredentials value) {
if (channelCredsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelCredsIsMutable();
channelCreds_.add(value);
onChanged();
} else {
channelCredsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder addChannelCreds(
int index, io.grpc.serviceconfig.XdsServer.ChannelCredentials value) {
if (channelCredsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelCredsIsMutable();
channelCreds_.add(index, value);
onChanged();
} else {
channelCredsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder addChannelCreds(
io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder builderForValue) {
if (channelCredsBuilder_ == null) {
ensureChannelCredsIsMutable();
channelCreds_.add(builderForValue.build());
onChanged();
} else {
channelCredsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder addChannelCreds(
int index, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder builderForValue) {
if (channelCredsBuilder_ == null) {
ensureChannelCredsIsMutable();
channelCreds_.add(index, builderForValue.build());
onChanged();
} else {
channelCredsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder addAllChannelCreds(
java.lang.Iterable extends io.grpc.serviceconfig.XdsServer.ChannelCredentials> values) {
if (channelCredsBuilder_ == null) {
ensureChannelCredsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, channelCreds_);
onChanged();
} else {
channelCredsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder clearChannelCreds() {
if (channelCredsBuilder_ == null) {
channelCreds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
channelCredsBuilder_.clear();
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public Builder removeChannelCreds(int index) {
if (channelCredsBuilder_ == null) {
ensureChannelCredsIsMutable();
channelCreds_.remove(index);
onChanged();
} else {
channelCredsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder getChannelCredsBuilder(
int index) {
return getChannelCredsFieldBuilder().getBuilder(index);
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder getChannelCredsOrBuilder(
int index) {
if (channelCredsBuilder_ == null) {
return channelCreds_.get(index); } else {
return channelCredsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public java.util.List extends io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder>
getChannelCredsOrBuilderList() {
if (channelCredsBuilder_ != null) {
return channelCredsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(channelCreds_);
}
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder addChannelCredsBuilder() {
return getChannelCredsFieldBuilder().addBuilder(
io.grpc.serviceconfig.XdsServer.ChannelCredentials.getDefaultInstance());
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder addChannelCredsBuilder(
int index) {
return getChannelCredsFieldBuilder().addBuilder(
index, io.grpc.serviceconfig.XdsServer.ChannelCredentials.getDefaultInstance());
}
/**
*
* A list of channel creds to use. The first supported type will be used.
*
*
* repeated .grpc.service_config.XdsServer.ChannelCredentials channel_creds = 2 [json_name = "channel_creds"];
*/
public java.util.List
getChannelCredsBuilderList() {
return getChannelCredsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.serviceconfig.XdsServer.ChannelCredentials, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder, io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder>
getChannelCredsFieldBuilder() {
if (channelCredsBuilder_ == null) {
channelCredsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.serviceconfig.XdsServer.ChannelCredentials, io.grpc.serviceconfig.XdsServer.ChannelCredentials.Builder, io.grpc.serviceconfig.XdsServer.ChannelCredentialsOrBuilder>(
channelCreds_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
channelCreds_ = null;
}
return channelCredsBuilder_;
}
private java.util.List serverFeatures_ =
java.util.Collections.emptyList();
private void ensureServerFeaturesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
serverFeatures_ = new java.util.ArrayList(serverFeatures_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> serverFeaturesBuilder_;
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public java.util.List getServerFeaturesList() {
if (serverFeaturesBuilder_ == null) {
return java.util.Collections.unmodifiableList(serverFeatures_);
} else {
return serverFeaturesBuilder_.getMessageList();
}
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public int getServerFeaturesCount() {
if (serverFeaturesBuilder_ == null) {
return serverFeatures_.size();
} else {
return serverFeaturesBuilder_.getCount();
}
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public com.google.protobuf.Value getServerFeatures(int index) {
if (serverFeaturesBuilder_ == null) {
return serverFeatures_.get(index);
} else {
return serverFeaturesBuilder_.getMessage(index);
}
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder setServerFeatures(
int index, com.google.protobuf.Value value) {
if (serverFeaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerFeaturesIsMutable();
serverFeatures_.set(index, value);
onChanged();
} else {
serverFeaturesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder setServerFeatures(
int index, com.google.protobuf.Value.Builder builderForValue) {
if (serverFeaturesBuilder_ == null) {
ensureServerFeaturesIsMutable();
serverFeatures_.set(index, builderForValue.build());
onChanged();
} else {
serverFeaturesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder addServerFeatures(com.google.protobuf.Value value) {
if (serverFeaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerFeaturesIsMutable();
serverFeatures_.add(value);
onChanged();
} else {
serverFeaturesBuilder_.addMessage(value);
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder addServerFeatures(
int index, com.google.protobuf.Value value) {
if (serverFeaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerFeaturesIsMutable();
serverFeatures_.add(index, value);
onChanged();
} else {
serverFeaturesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder addServerFeatures(
com.google.protobuf.Value.Builder builderForValue) {
if (serverFeaturesBuilder_ == null) {
ensureServerFeaturesIsMutable();
serverFeatures_.add(builderForValue.build());
onChanged();
} else {
serverFeaturesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder addServerFeatures(
int index, com.google.protobuf.Value.Builder builderForValue) {
if (serverFeaturesBuilder_ == null) {
ensureServerFeaturesIsMutable();
serverFeatures_.add(index, builderForValue.build());
onChanged();
} else {
serverFeaturesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder addAllServerFeatures(
java.lang.Iterable extends com.google.protobuf.Value> values) {
if (serverFeaturesBuilder_ == null) {
ensureServerFeaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, serverFeatures_);
onChanged();
} else {
serverFeaturesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder clearServerFeatures() {
if (serverFeaturesBuilder_ == null) {
serverFeatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
serverFeaturesBuilder_.clear();
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public Builder removeServerFeatures(int index) {
if (serverFeaturesBuilder_ == null) {
ensureServerFeaturesIsMutable();
serverFeatures_.remove(index);
onChanged();
} else {
serverFeaturesBuilder_.remove(index);
}
return this;
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public com.google.protobuf.Value.Builder getServerFeaturesBuilder(
int index) {
return getServerFeaturesFieldBuilder().getBuilder(index);
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public com.google.protobuf.ValueOrBuilder getServerFeaturesOrBuilder(
int index) {
if (serverFeaturesBuilder_ == null) {
return serverFeatures_.get(index); } else {
return serverFeaturesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public java.util.List extends com.google.protobuf.ValueOrBuilder>
getServerFeaturesOrBuilderList() {
if (serverFeaturesBuilder_ != null) {
return serverFeaturesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serverFeatures_);
}
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public com.google.protobuf.Value.Builder addServerFeaturesBuilder() {
return getServerFeaturesFieldBuilder().addBuilder(
com.google.protobuf.Value.getDefaultInstance());
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public com.google.protobuf.Value.Builder addServerFeaturesBuilder(
int index) {
return getServerFeaturesFieldBuilder().addBuilder(
index, com.google.protobuf.Value.getDefaultInstance());
}
/**
*
* A repeated list of server features.
*
*
* repeated .google.protobuf.Value server_features = 3 [json_name = "server_features"];
*/
public java.util.List
getServerFeaturesBuilderList() {
return getServerFeaturesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>
getServerFeaturesFieldBuilder() {
if (serverFeaturesBuilder_ == null) {
serverFeaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
serverFeatures_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
serverFeatures_ = null;
}
return serverFeaturesBuilder_;
}
@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:grpc.service_config.XdsServer)
}
// @@protoc_insertion_point(class_scope:grpc.service_config.XdsServer)
private static final io.grpc.serviceconfig.XdsServer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.serviceconfig.XdsServer();
}
public static io.grpc.serviceconfig.XdsServer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public XdsServer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.grpc.serviceconfig.XdsServer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy