Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/bootstrap/v2/bootstrap.proto
package io.envoyproxy.envoy.config.bootstrap.v2;
/**
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer}
*/
public final class RuntimeLayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v2.RuntimeLayer)
RuntimeLayerOrBuilder {
private static final long serialVersionUID = 0L;
// Use RuntimeLayer.newBuilder() to construct.
private RuntimeLayer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RuntimeLayer() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RuntimeLayer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RuntimeLayer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (layerSpecifierCase_ == 2) {
subBuilder = ((com.google.protobuf.Struct) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.Struct) layerSpecifier_);
layerSpecifier_ = subBuilder.buildPartial();
}
layerSpecifierCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder subBuilder = null;
if (layerSpecifierCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_);
layerSpecifier_ = subBuilder.buildPartial();
}
layerSpecifierCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder subBuilder = null;
if (layerSpecifierCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_);
layerSpecifier_ = subBuilder.buildPartial();
}
layerSpecifierCase_ = 4;
break;
}
case 42: {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder subBuilder = null;
if (layerSpecifierCase_ == 5) {
subBuilder = ((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_);
layerSpecifier_ = subBuilder.buildPartial();
}
layerSpecifierCase_ = 5;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.Builder.class);
}
public interface DiskLayerOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)
com.google.protobuf.MessageOrBuilder {
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
java.lang.String getSymlinkRoot();
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
com.google.protobuf.ByteString
getSymlinkRootBytes();
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
java.lang.String getSubdirectory();
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
com.google.protobuf.ByteString
getSubdirectoryBytes();
/**
*
* :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
* service cluster to the path under symlink root.
*
*
* bool append_service_cluster = 2;
*/
boolean getAppendServiceCluster();
}
/**
*
* :ref:`Disk runtime <config_runtime_local_disk>` layer.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer}
*/
public static final class DiskLayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)
DiskLayerOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiskLayer.newBuilder() to construct.
private DiskLayer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiskLayer() {
symlinkRoot_ = "";
subdirectory_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiskLayer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DiskLayer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
symlinkRoot_ = s;
break;
}
case 16: {
appendServiceCluster_ = input.readBool();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
subdirectory_ = s;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_DiskLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_DiskLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder.class);
}
public static final int SYMLINK_ROOT_FIELD_NUMBER = 1;
private volatile java.lang.Object symlinkRoot_;
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public java.lang.String getSymlinkRoot() {
java.lang.Object ref = symlinkRoot_;
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();
symlinkRoot_ = s;
return s;
}
}
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public com.google.protobuf.ByteString
getSymlinkRootBytes() {
java.lang.Object ref = symlinkRoot_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symlinkRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBDIRECTORY_FIELD_NUMBER = 3;
private volatile java.lang.Object subdirectory_;
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public java.lang.String getSubdirectory() {
java.lang.Object ref = subdirectory_;
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();
subdirectory_ = s;
return s;
}
}
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public com.google.protobuf.ByteString
getSubdirectoryBytes() {
java.lang.Object ref = subdirectory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subdirectory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APPEND_SERVICE_CLUSTER_FIELD_NUMBER = 2;
private boolean appendServiceCluster_;
/**
*
* :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
* service cluster to the path under symlink root.
*
*
* bool append_service_cluster = 2;
*/
public boolean getAppendServiceCluster() {
return appendServiceCluster_;
}
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 (!getSymlinkRootBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symlinkRoot_);
}
if (appendServiceCluster_ != false) {
output.writeBool(2, appendServiceCluster_);
}
if (!getSubdirectoryBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subdirectory_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSymlinkRootBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symlinkRoot_);
}
if (appendServiceCluster_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, appendServiceCluster_);
}
if (!getSubdirectoryBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subdirectory_);
}
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer other = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) obj;
if (!getSymlinkRoot()
.equals(other.getSymlinkRoot())) return false;
if (!getSubdirectory()
.equals(other.getSubdirectory())) return false;
if (getAppendServiceCluster()
!= other.getAppendServiceCluster()) 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();
hash = (37 * hash) + SYMLINK_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getSymlinkRoot().hashCode();
hash = (37 * hash) + SUBDIRECTORY_FIELD_NUMBER;
hash = (53 * hash) + getSubdirectory().hashCode();
hash = (37 * hash) + APPEND_SERVICE_CLUSTER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAppendServiceCluster());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer 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;
}
/**
*
* :ref:`Disk runtime <config_runtime_local_disk>` layer.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_DiskLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_DiskLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
symlinkRoot_ = "";
subdirectory_ = "";
appendServiceCluster_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_DiskLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer build() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer result = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer(this);
result.symlinkRoot_ = symlinkRoot_;
result.subdirectory_ = subdirectory_;
result.appendServiceCluster_ = appendServiceCluster_;
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance()) return this;
if (!other.getSymlinkRoot().isEmpty()) {
symlinkRoot_ = other.symlinkRoot_;
onChanged();
}
if (!other.getSubdirectory().isEmpty()) {
subdirectory_ = other.subdirectory_;
onChanged();
}
if (other.getAppendServiceCluster() != false) {
setAppendServiceCluster(other.getAppendServiceCluster());
}
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object symlinkRoot_ = "";
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public java.lang.String getSymlinkRoot() {
java.lang.Object ref = symlinkRoot_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symlinkRoot_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public com.google.protobuf.ByteString
getSymlinkRootBytes() {
java.lang.Object ref = symlinkRoot_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symlinkRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public Builder setSymlinkRoot(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
symlinkRoot_ = value;
onChanged();
return this;
}
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public Builder clearSymlinkRoot() {
symlinkRoot_ = getDefaultInstance().getSymlinkRoot();
onChanged();
return this;
}
/**
*
* The implementation assumes that the file system tree is accessed via a
* symbolic link. An atomic link swap is used when a new tree should be
* switched to. This parameter specifies the path to the symbolic link.
* Envoy will watch the location for changes and reload the file system tree
* when they happen. See documentation on runtime :ref:`atomicity
* <config_runtime_atomicity>` for further details on how reloads are
* treated.
*
*
* string symlink_root = 1;
*/
public Builder setSymlinkRootBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
symlinkRoot_ = value;
onChanged();
return this;
}
private java.lang.Object subdirectory_ = "";
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public java.lang.String getSubdirectory() {
java.lang.Object ref = subdirectory_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subdirectory_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public com.google.protobuf.ByteString
getSubdirectoryBytes() {
java.lang.Object ref = subdirectory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subdirectory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public Builder setSubdirectory(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subdirectory_ = value;
onChanged();
return this;
}
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public Builder clearSubdirectory() {
subdirectory_ = getDefaultInstance().getSubdirectory();
onChanged();
return this;
}
/**
*
* Specifies the subdirectory to load within the root directory. This is
* useful if multiple systems share the same delivery mechanism. Envoy
* configuration elements can be contained in a dedicated subdirectory.
*
*
* string subdirectory = 3;
*/
public Builder setSubdirectoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subdirectory_ = value;
onChanged();
return this;
}
private boolean appendServiceCluster_ ;
/**
*
* :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
* service cluster to the path under symlink root.
*
*
* bool append_service_cluster = 2;
*/
public boolean getAppendServiceCluster() {
return appendServiceCluster_;
}
/**
*
* :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
* service cluster to the path under symlink root.
*
*
* bool append_service_cluster = 2;
*/
public Builder setAppendServiceCluster(boolean value) {
appendServiceCluster_ = value;
onChanged();
return this;
}
/**
*
* :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
* service cluster to the path under symlink root.
*
*
* bool append_service_cluster = 2;
*/
public Builder clearAppendServiceCluster() {
appendServiceCluster_ = false;
onChanged();
return this;
}
@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:envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer)
private static final io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer();
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiskLayer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DiskLayer(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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdminLayerOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* :ref:`Admin console runtime <config_runtime_admin>` layer.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer}
*/
public static final class AdminLayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)
AdminLayerOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdminLayer.newBuilder() to construct.
private AdminLayer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdminLayer() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AdminLayer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AdminLayer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_AdminLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_AdminLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer other = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer 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;
}
/**
*
* :ref:`Admin console runtime <config_runtime_admin>` layer.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_AdminLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_AdminLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_AdminLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer build() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer result = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer(this);
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance()) return this;
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@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:envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer)
private static final io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer();
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdminLayer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AdminLayer(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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RtdsLayerOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)
com.google.protobuf.MessageOrBuilder {
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
boolean hasRtdsConfig();
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
io.envoyproxy.envoy.api.v2.core.ConfigSource getRtdsConfig();
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
io.envoyproxy.envoy.api.v2.core.ConfigSourceOrBuilder getRtdsConfigOrBuilder();
}
/**
*
* :ref:`Runtime Discovery Service (RTDS) <config_runtime_rtds>` layer.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer}
*/
public static final class RtdsLayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)
RtdsLayerOrBuilder {
private static final long serialVersionUID = 0L;
// Use RtdsLayer.newBuilder() to construct.
private RtdsLayer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RtdsLayer() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RtdsLayer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RtdsLayer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.api.v2.core.ConfigSource.Builder subBuilder = null;
if (rtdsConfig_ != null) {
subBuilder = rtdsConfig_.toBuilder();
}
rtdsConfig_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.ConfigSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rtdsConfig_);
rtdsConfig_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_RtdsLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_RtdsLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RTDS_CONFIG_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.api.v2.core.ConfigSource rtdsConfig_;
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public boolean hasRtdsConfig() {
return rtdsConfig_ != null;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public io.envoyproxy.envoy.api.v2.core.ConfigSource getRtdsConfig() {
return rtdsConfig_ == null ? io.envoyproxy.envoy.api.v2.core.ConfigSource.getDefaultInstance() : rtdsConfig_;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public io.envoyproxy.envoy.api.v2.core.ConfigSourceOrBuilder getRtdsConfigOrBuilder() {
return getRtdsConfig();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (rtdsConfig_ != null) {
output.writeMessage(2, getRtdsConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (rtdsConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRtdsConfig());
}
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer other = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasRtdsConfig() != other.hasRtdsConfig()) return false;
if (hasRtdsConfig()) {
if (!getRtdsConfig()
.equals(other.getRtdsConfig())) 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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasRtdsConfig()) {
hash = (37 * hash) + RTDS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRtdsConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer 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;
}
/**
*
* :ref:`Runtime Discovery Service (RTDS) <config_runtime_rtds>` layer.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_RtdsLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_RtdsLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (rtdsConfigBuilder_ == null) {
rtdsConfig_ = null;
} else {
rtdsConfig_ = null;
rtdsConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_RtdsLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer build() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer result = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer(this);
result.name_ = name_;
if (rtdsConfigBuilder_ == null) {
result.rtdsConfig_ = rtdsConfig_;
} else {
result.rtdsConfig_ = rtdsConfigBuilder_.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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasRtdsConfig()) {
mergeRtdsConfig(other.getRtdsConfig());
}
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Resource to subscribe to at *rtds_config* for the RTDS layer.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.api.v2.core.ConfigSource rtdsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.ConfigSource, io.envoyproxy.envoy.api.v2.core.ConfigSource.Builder, io.envoyproxy.envoy.api.v2.core.ConfigSourceOrBuilder> rtdsConfigBuilder_;
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public boolean hasRtdsConfig() {
return rtdsConfigBuilder_ != null || rtdsConfig_ != null;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public io.envoyproxy.envoy.api.v2.core.ConfigSource getRtdsConfig() {
if (rtdsConfigBuilder_ == null) {
return rtdsConfig_ == null ? io.envoyproxy.envoy.api.v2.core.ConfigSource.getDefaultInstance() : rtdsConfig_;
} else {
return rtdsConfigBuilder_.getMessage();
}
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public Builder setRtdsConfig(io.envoyproxy.envoy.api.v2.core.ConfigSource value) {
if (rtdsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rtdsConfig_ = value;
onChanged();
} else {
rtdsConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public Builder setRtdsConfig(
io.envoyproxy.envoy.api.v2.core.ConfigSource.Builder builderForValue) {
if (rtdsConfigBuilder_ == null) {
rtdsConfig_ = builderForValue.build();
onChanged();
} else {
rtdsConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public Builder mergeRtdsConfig(io.envoyproxy.envoy.api.v2.core.ConfigSource value) {
if (rtdsConfigBuilder_ == null) {
if (rtdsConfig_ != null) {
rtdsConfig_ =
io.envoyproxy.envoy.api.v2.core.ConfigSource.newBuilder(rtdsConfig_).mergeFrom(value).buildPartial();
} else {
rtdsConfig_ = value;
}
onChanged();
} else {
rtdsConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public Builder clearRtdsConfig() {
if (rtdsConfigBuilder_ == null) {
rtdsConfig_ = null;
onChanged();
} else {
rtdsConfig_ = null;
rtdsConfigBuilder_ = null;
}
return this;
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public io.envoyproxy.envoy.api.v2.core.ConfigSource.Builder getRtdsConfigBuilder() {
onChanged();
return getRtdsConfigFieldBuilder().getBuilder();
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
public io.envoyproxy.envoy.api.v2.core.ConfigSourceOrBuilder getRtdsConfigOrBuilder() {
if (rtdsConfigBuilder_ != null) {
return rtdsConfigBuilder_.getMessageOrBuilder();
} else {
return rtdsConfig_ == null ?
io.envoyproxy.envoy.api.v2.core.ConfigSource.getDefaultInstance() : rtdsConfig_;
}
}
/**
*
* RTDS configuration source.
*
*
* .envoy.api.v2.core.ConfigSource rtds_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.ConfigSource, io.envoyproxy.envoy.api.v2.core.ConfigSource.Builder, io.envoyproxy.envoy.api.v2.core.ConfigSourceOrBuilder>
getRtdsConfigFieldBuilder() {
if (rtdsConfigBuilder_ == null) {
rtdsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.ConfigSource, io.envoyproxy.envoy.api.v2.core.ConfigSource.Builder, io.envoyproxy.envoy.api.v2.core.ConfigSourceOrBuilder>(
getRtdsConfig(),
getParentForChildren(),
isClean());
rtdsConfig_ = null;
}
return rtdsConfigBuilder_;
}
@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:envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer)
private static final io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer();
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RtdsLayer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RtdsLayer(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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int layerSpecifierCase_ = 0;
private java.lang.Object layerSpecifier_;
public enum LayerSpecifierCase
implements com.google.protobuf.Internal.EnumLite {
STATIC_LAYER(2),
DISK_LAYER(3),
ADMIN_LAYER(4),
RTDS_LAYER(5),
LAYERSPECIFIER_NOT_SET(0);
private final int value;
private LayerSpecifierCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LayerSpecifierCase valueOf(int value) {
return forNumber(value);
}
public static LayerSpecifierCase forNumber(int value) {
switch (value) {
case 2: return STATIC_LAYER;
case 3: return DISK_LAYER;
case 4: return ADMIN_LAYER;
case 5: return RTDS_LAYER;
case 0: return LAYERSPECIFIER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public LayerSpecifierCase
getLayerSpecifierCase() {
return LayerSpecifierCase.forNumber(
layerSpecifierCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATIC_LAYER_FIELD_NUMBER = 2;
/**
* .google.protobuf.Struct static_layer = 2;
*/
public boolean hasStaticLayer() {
return layerSpecifierCase_ == 2;
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public com.google.protobuf.Struct getStaticLayer() {
if (layerSpecifierCase_ == 2) {
return (com.google.protobuf.Struct) layerSpecifier_;
}
return com.google.protobuf.Struct.getDefaultInstance();
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public com.google.protobuf.StructOrBuilder getStaticLayerOrBuilder() {
if (layerSpecifierCase_ == 2) {
return (com.google.protobuf.Struct) layerSpecifier_;
}
return com.google.protobuf.Struct.getDefaultInstance();
}
public static final int DISK_LAYER_FIELD_NUMBER = 3;
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public boolean hasDiskLayer() {
return layerSpecifierCase_ == 3;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer getDiskLayer() {
if (layerSpecifierCase_ == 3) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayerOrBuilder getDiskLayerOrBuilder() {
if (layerSpecifierCase_ == 3) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
}
public static final int ADMIN_LAYER_FIELD_NUMBER = 4;
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public boolean hasAdminLayer() {
return layerSpecifierCase_ == 4;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer getAdminLayer() {
if (layerSpecifierCase_ == 4) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayerOrBuilder getAdminLayerOrBuilder() {
if (layerSpecifierCase_ == 4) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
}
public static final int RTDS_LAYER_FIELD_NUMBER = 5;
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public boolean hasRtdsLayer() {
return layerSpecifierCase_ == 5;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer getRtdsLayer() {
if (layerSpecifierCase_ == 5) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayerOrBuilder getRtdsLayerOrBuilder() {
if (layerSpecifierCase_ == 5) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (layerSpecifierCase_ == 2) {
output.writeMessage(2, (com.google.protobuf.Struct) layerSpecifier_);
}
if (layerSpecifierCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (layerSpecifierCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.protobuf.Struct) layerSpecifier_);
}
if (layerSpecifierCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_);
}
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer other = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getLayerSpecifierCase().equals(other.getLayerSpecifierCase())) return false;
switch (layerSpecifierCase_) {
case 2:
if (!getStaticLayer()
.equals(other.getStaticLayer())) return false;
break;
case 3:
if (!getDiskLayer()
.equals(other.getDiskLayer())) return false;
break;
case 4:
if (!getAdminLayer()
.equals(other.getAdminLayer())) return false;
break;
case 5:
if (!getRtdsLayer()
.equals(other.getRtdsLayer())) return false;
break;
case 0:
default:
}
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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
switch (layerSpecifierCase_) {
case 2:
hash = (37 * hash) + STATIC_LAYER_FIELD_NUMBER;
hash = (53 * hash) + getStaticLayer().hashCode();
break;
case 3:
hash = (37 * hash) + DISK_LAYER_FIELD_NUMBER;
hash = (53 * hash) + getDiskLayer().hashCode();
break;
case 4:
hash = (37 * hash) + ADMIN_LAYER_FIELD_NUMBER;
hash = (53 * hash) + getAdminLayer().hashCode();
break;
case 5:
hash = (37 * hash) + RTDS_LAYER_FIELD_NUMBER;
hash = (53 * hash) + getRtdsLayer().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer 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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer 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 envoy.config.bootstrap.v2.RuntimeLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v2.RuntimeLayer)
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.class, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_RuntimeLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer build() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer result = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer(this);
result.name_ = name_;
if (layerSpecifierCase_ == 2) {
if (staticLayerBuilder_ == null) {
result.layerSpecifier_ = layerSpecifier_;
} else {
result.layerSpecifier_ = staticLayerBuilder_.build();
}
}
if (layerSpecifierCase_ == 3) {
if (diskLayerBuilder_ == null) {
result.layerSpecifier_ = layerSpecifier_;
} else {
result.layerSpecifier_ = diskLayerBuilder_.build();
}
}
if (layerSpecifierCase_ == 4) {
if (adminLayerBuilder_ == null) {
result.layerSpecifier_ = layerSpecifier_;
} else {
result.layerSpecifier_ = adminLayerBuilder_.build();
}
}
if (layerSpecifierCase_ == 5) {
if (rtdsLayerBuilder_ == null) {
result.layerSpecifier_ = layerSpecifier_;
} else {
result.layerSpecifier_ = rtdsLayerBuilder_.build();
}
}
result.layerSpecifierCase_ = layerSpecifierCase_;
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
switch (other.getLayerSpecifierCase()) {
case STATIC_LAYER: {
mergeStaticLayer(other.getStaticLayer());
break;
}
case DISK_LAYER: {
mergeDiskLayer(other.getDiskLayer());
break;
}
case ADMIN_LAYER: {
mergeAdminLayer(other.getAdminLayer());
break;
}
case RTDS_LAYER: {
mergeRtdsLayer(other.getRtdsLayer());
break;
}
case LAYERSPECIFIER_NOT_SET: {
break;
}
}
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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int layerSpecifierCase_ = 0;
private java.lang.Object layerSpecifier_;
public LayerSpecifierCase
getLayerSpecifierCase() {
return LayerSpecifierCase.forNumber(
layerSpecifierCase_);
}
public Builder clearLayerSpecifier() {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> staticLayerBuilder_;
/**
* .google.protobuf.Struct static_layer = 2;
*/
public boolean hasStaticLayer() {
return layerSpecifierCase_ == 2;
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public com.google.protobuf.Struct getStaticLayer() {
if (staticLayerBuilder_ == null) {
if (layerSpecifierCase_ == 2) {
return (com.google.protobuf.Struct) layerSpecifier_;
}
return com.google.protobuf.Struct.getDefaultInstance();
} else {
if (layerSpecifierCase_ == 2) {
return staticLayerBuilder_.getMessage();
}
return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public Builder setStaticLayer(com.google.protobuf.Struct value) {
if (staticLayerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
layerSpecifier_ = value;
onChanged();
} else {
staticLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 2;
return this;
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public Builder setStaticLayer(
com.google.protobuf.Struct.Builder builderForValue) {
if (staticLayerBuilder_ == null) {
layerSpecifier_ = builderForValue.build();
onChanged();
} else {
staticLayerBuilder_.setMessage(builderForValue.build());
}
layerSpecifierCase_ = 2;
return this;
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public Builder mergeStaticLayer(com.google.protobuf.Struct value) {
if (staticLayerBuilder_ == null) {
if (layerSpecifierCase_ == 2 &&
layerSpecifier_ != com.google.protobuf.Struct.getDefaultInstance()) {
layerSpecifier_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) layerSpecifier_)
.mergeFrom(value).buildPartial();
} else {
layerSpecifier_ = value;
}
onChanged();
} else {
if (layerSpecifierCase_ == 2) {
staticLayerBuilder_.mergeFrom(value);
}
staticLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 2;
return this;
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public Builder clearStaticLayer() {
if (staticLayerBuilder_ == null) {
if (layerSpecifierCase_ == 2) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
onChanged();
}
} else {
if (layerSpecifierCase_ == 2) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
}
staticLayerBuilder_.clear();
}
return this;
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public com.google.protobuf.Struct.Builder getStaticLayerBuilder() {
return getStaticLayerFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
public com.google.protobuf.StructOrBuilder getStaticLayerOrBuilder() {
if ((layerSpecifierCase_ == 2) && (staticLayerBuilder_ != null)) {
return staticLayerBuilder_.getMessageOrBuilder();
} else {
if (layerSpecifierCase_ == 2) {
return (com.google.protobuf.Struct) layerSpecifier_;
}
return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
* .google.protobuf.Struct static_layer = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getStaticLayerFieldBuilder() {
if (staticLayerBuilder_ == null) {
if (!(layerSpecifierCase_ == 2)) {
layerSpecifier_ = com.google.protobuf.Struct.getDefaultInstance();
}
staticLayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
(com.google.protobuf.Struct) layerSpecifier_,
getParentForChildren(),
isClean());
layerSpecifier_ = null;
}
layerSpecifierCase_ = 2;
onChanged();;
return staticLayerBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayerOrBuilder> diskLayerBuilder_;
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public boolean hasDiskLayer() {
return layerSpecifierCase_ == 3;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer getDiskLayer() {
if (diskLayerBuilder_ == null) {
if (layerSpecifierCase_ == 3) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
} else {
if (layerSpecifierCase_ == 3) {
return diskLayerBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
}
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public Builder setDiskLayer(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer value) {
if (diskLayerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
layerSpecifier_ = value;
onChanged();
} else {
diskLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 3;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public Builder setDiskLayer(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder builderForValue) {
if (diskLayerBuilder_ == null) {
layerSpecifier_ = builderForValue.build();
onChanged();
} else {
diskLayerBuilder_.setMessage(builderForValue.build());
}
layerSpecifierCase_ = 3;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public Builder mergeDiskLayer(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer value) {
if (diskLayerBuilder_ == null) {
if (layerSpecifierCase_ == 3 &&
layerSpecifier_ != io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance()) {
layerSpecifier_ = io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.newBuilder((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_)
.mergeFrom(value).buildPartial();
} else {
layerSpecifier_ = value;
}
onChanged();
} else {
if (layerSpecifierCase_ == 3) {
diskLayerBuilder_.mergeFrom(value);
}
diskLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 3;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public Builder clearDiskLayer() {
if (diskLayerBuilder_ == null) {
if (layerSpecifierCase_ == 3) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
onChanged();
}
} else {
if (layerSpecifierCase_ == 3) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
}
diskLayerBuilder_.clear();
}
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder getDiskLayerBuilder() {
return getDiskLayerFieldBuilder().getBuilder();
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayerOrBuilder getDiskLayerOrBuilder() {
if ((layerSpecifierCase_ == 3) && (diskLayerBuilder_ != null)) {
return diskLayerBuilder_.getMessageOrBuilder();
} else {
if (layerSpecifierCase_ == 3) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
}
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer disk_layer = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayerOrBuilder>
getDiskLayerFieldBuilder() {
if (diskLayerBuilder_ == null) {
if (!(layerSpecifierCase_ == 3)) {
layerSpecifier_ = io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.getDefaultInstance();
}
diskLayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayerOrBuilder>(
(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer) layerSpecifier_,
getParentForChildren(),
isClean());
layerSpecifier_ = null;
}
layerSpecifierCase_ = 3;
onChanged();;
return diskLayerBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayerOrBuilder> adminLayerBuilder_;
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public boolean hasAdminLayer() {
return layerSpecifierCase_ == 4;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer getAdminLayer() {
if (adminLayerBuilder_ == null) {
if (layerSpecifierCase_ == 4) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
} else {
if (layerSpecifierCase_ == 4) {
return adminLayerBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
}
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public Builder setAdminLayer(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer value) {
if (adminLayerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
layerSpecifier_ = value;
onChanged();
} else {
adminLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 4;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public Builder setAdminLayer(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder builderForValue) {
if (adminLayerBuilder_ == null) {
layerSpecifier_ = builderForValue.build();
onChanged();
} else {
adminLayerBuilder_.setMessage(builderForValue.build());
}
layerSpecifierCase_ = 4;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public Builder mergeAdminLayer(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer value) {
if (adminLayerBuilder_ == null) {
if (layerSpecifierCase_ == 4 &&
layerSpecifier_ != io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance()) {
layerSpecifier_ = io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.newBuilder((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_)
.mergeFrom(value).buildPartial();
} else {
layerSpecifier_ = value;
}
onChanged();
} else {
if (layerSpecifierCase_ == 4) {
adminLayerBuilder_.mergeFrom(value);
}
adminLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 4;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public Builder clearAdminLayer() {
if (adminLayerBuilder_ == null) {
if (layerSpecifierCase_ == 4) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
onChanged();
}
} else {
if (layerSpecifierCase_ == 4) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
}
adminLayerBuilder_.clear();
}
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder getAdminLayerBuilder() {
return getAdminLayerFieldBuilder().getBuilder();
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayerOrBuilder getAdminLayerOrBuilder() {
if ((layerSpecifierCase_ == 4) && (adminLayerBuilder_ != null)) {
return adminLayerBuilder_.getMessageOrBuilder();
} else {
if (layerSpecifierCase_ == 4) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
}
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer admin_layer = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayerOrBuilder>
getAdminLayerFieldBuilder() {
if (adminLayerBuilder_ == null) {
if (!(layerSpecifierCase_ == 4)) {
layerSpecifier_ = io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.getDefaultInstance();
}
adminLayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayerOrBuilder>(
(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer) layerSpecifier_,
getParentForChildren(),
isClean());
layerSpecifier_ = null;
}
layerSpecifierCase_ = 4;
onChanged();;
return adminLayerBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayerOrBuilder> rtdsLayerBuilder_;
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public boolean hasRtdsLayer() {
return layerSpecifierCase_ == 5;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer getRtdsLayer() {
if (rtdsLayerBuilder_ == null) {
if (layerSpecifierCase_ == 5) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
} else {
if (layerSpecifierCase_ == 5) {
return rtdsLayerBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public Builder setRtdsLayer(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer value) {
if (rtdsLayerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
layerSpecifier_ = value;
onChanged();
} else {
rtdsLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 5;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public Builder setRtdsLayer(
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder builderForValue) {
if (rtdsLayerBuilder_ == null) {
layerSpecifier_ = builderForValue.build();
onChanged();
} else {
rtdsLayerBuilder_.setMessage(builderForValue.build());
}
layerSpecifierCase_ = 5;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public Builder mergeRtdsLayer(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer value) {
if (rtdsLayerBuilder_ == null) {
if (layerSpecifierCase_ == 5 &&
layerSpecifier_ != io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance()) {
layerSpecifier_ = io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.newBuilder((io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_)
.mergeFrom(value).buildPartial();
} else {
layerSpecifier_ = value;
}
onChanged();
} else {
if (layerSpecifierCase_ == 5) {
rtdsLayerBuilder_.mergeFrom(value);
}
rtdsLayerBuilder_.setMessage(value);
}
layerSpecifierCase_ = 5;
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public Builder clearRtdsLayer() {
if (rtdsLayerBuilder_ == null) {
if (layerSpecifierCase_ == 5) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
onChanged();
}
} else {
if (layerSpecifierCase_ == 5) {
layerSpecifierCase_ = 0;
layerSpecifier_ = null;
}
rtdsLayerBuilder_.clear();
}
return this;
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder getRtdsLayerBuilder() {
return getRtdsLayerFieldBuilder().getBuilder();
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
public io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayerOrBuilder getRtdsLayerOrBuilder() {
if ((layerSpecifierCase_ == 5) && (rtdsLayerBuilder_ != null)) {
return rtdsLayerBuilder_.getMessageOrBuilder();
} else {
if (layerSpecifierCase_ == 5) {
return (io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
}
/**
* .envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayerOrBuilder>
getRtdsLayerFieldBuilder() {
if (rtdsLayerBuilder_ == null) {
if (!(layerSpecifierCase_ == 5)) {
layerSpecifier_ = io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
rtdsLayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer.Builder, io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayerOrBuilder>(
(io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer) layerSpecifier_,
getParentForChildren(),
isClean());
layerSpecifier_ = null;
}
layerSpecifierCase_ = 5;
onChanged();;
return rtdsLayerBuilder_;
}
@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:envoy.config.bootstrap.v2.RuntimeLayer)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v2.RuntimeLayer)
private static final io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer();
}
public static io.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RuntimeLayer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RuntimeLayer(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.envoyproxy.envoy.config.bootstrap.v2.RuntimeLayer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}