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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/bootstrap/v3/bootstrap.proto
package io.envoyproxy.envoy.config.bootstrap.v3;
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.RuntimeLayer}
*/
public final class RuntimeLayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.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.v3.RuntimeLayer.DiskLayer.Builder subBuilder = null;
if (layerSpecifierCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer) layerSpecifier_);
layerSpecifier_ = subBuilder.buildPartial();
}
layerSpecifierCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer.Builder subBuilder = null;
if (layerSpecifierCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer) layerSpecifier_);
layerSpecifier_ = subBuilder.buildPartial();
}
layerSpecifierCase_ = 4;
break;
}
case 42: {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer.Builder subBuilder = null;
if (layerSpecifierCase_ == 5) {
subBuilder = ((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer) layerSpecifier_).toBuilder();
}
layerSpecifier_ =
input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.class, io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.Builder.class);
}
public interface DiskLayerOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.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.
*
* 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;
* @return The bytes for symlinkRoot.
*/
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.
*
* 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;
* @return The bytes for subdirectory.
*/
com.google.protobuf.ByteString
getSubdirectoryBytes();
/**
*
* :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
* service cluster to the path under symlink root.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer}
*/
public static final class DiskLayer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.class, io.envoyproxy.envoy.config.bootstrap.v3.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.
*
* 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;
* @return The bytes for symlinkRoot.
*/
@java.lang.Override
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.
*
* 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;
* @return The bytes for subdirectory.
*/
@java.lang.Override
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.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer)
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.class, io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.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.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer build() {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer result = new io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.DiskLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.DiskLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.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.
*
* 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;
* @return The bytes for symlinkRoot.
*/
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;
* @param value The symlinkRoot to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @param value The bytes for symlinkRoot to set.
* @return This builder for chaining.
*/
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.
*
* 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;
* @return The bytes for subdirectory.
*/
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;
* @param value The subdirectory to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @param value The bytes for subdirectory to set.
* @return This builder for chaining.
*/
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.
*
*
* .envoy.config.core.v3.ConfigSource rtds_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.v3.RuntimeLayer.RtdsLayer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer other = (io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.RtdsLayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.RtdsLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.RtdsLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.RuntimeLayer.RtdsLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer)
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer.class, io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.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.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer build() {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer result = new io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.RtdsLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer.RtdsLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.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;
* @return The name.
*/
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;
* @return The bytes for name.
*/
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;
* @param value The name to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Resource to subscribe to at ``rtds_config`` for the RTDS layer.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
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.config.core.v3.ConfigSource rtdsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ConfigSource, io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder> rtdsConfigBuilder_;
/**
*
* RTDS configuration source.
*
*
* .envoy.config.core.v3.ConfigSource rtds_config = 2;
* @return Whether the rtdsConfig field is set.
*/
public boolean hasRtdsConfig() {
return rtdsConfigBuilder_ != null || rtdsConfig_ != null;
}
/**
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
@java.lang.Override
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;
/**
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
*
* .google.protobuf.Struct static_layer = 2;
* @return Whether the staticLayer field is set.
*/
@java.lang.Override
public boolean hasStaticLayer() {
return layerSpecifierCase_ == 2;
}
/**
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
*
* .google.protobuf.Struct static_layer = 2;
* @return The staticLayer.
*/
@java.lang.Override
public com.google.protobuf.Struct getStaticLayer() {
if (layerSpecifierCase_ == 2) {
return (com.google.protobuf.Struct) layerSpecifier_;
}
return com.google.protobuf.Struct.getDefaultInstance();
}
/**
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
*
* .google.protobuf.Struct static_layer = 2;
*/
@java.lang.Override
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.v3.RuntimeLayer.DiskLayer disk_layer = 3;
* @return Whether the diskLayer field is set.
*/
@java.lang.Override
public boolean hasDiskLayer() {
return layerSpecifierCase_ == 3;
}
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer disk_layer = 3;
* @return The diskLayer.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer getDiskLayer() {
if (layerSpecifierCase_ == 3) {
return (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.getDefaultInstance();
}
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer disk_layer = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayerOrBuilder getDiskLayerOrBuilder() {
if (layerSpecifierCase_ == 3) {
return (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer.getDefaultInstance();
}
public static final int ADMIN_LAYER_FIELD_NUMBER = 4;
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer admin_layer = 4;
* @return Whether the adminLayer field is set.
*/
@java.lang.Override
public boolean hasAdminLayer() {
return layerSpecifierCase_ == 4;
}
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer admin_layer = 4;
* @return The adminLayer.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer getAdminLayer() {
if (layerSpecifierCase_ == 4) {
return (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer.getDefaultInstance();
}
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer admin_layer = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayerOrBuilder getAdminLayerOrBuilder() {
if (layerSpecifierCase_ == 4) {
return (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer.getDefaultInstance();
}
public static final int RTDS_LAYER_FIELD_NUMBER = 5;
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer rtds_layer = 5;
* @return Whether the rtdsLayer field is set.
*/
@java.lang.Override
public boolean hasRtdsLayer() {
return layerSpecifierCase_ == 5;
}
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer rtds_layer = 5;
* @return The rtdsLayer.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer getRtdsLayer() {
if (layerSpecifierCase_ == 5) {
return (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer.getDefaultInstance();
}
/**
* .envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer rtds_layer = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayerOrBuilder getRtdsLayerOrBuilder() {
if (layerSpecifierCase_ == 5) {
return (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer) layerSpecifier_;
}
return io.envoyproxy.envoy.config.bootstrap.v3.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.v3.RuntimeLayer.DiskLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer) layerSpecifier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.v3.RuntimeLayer.DiskLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer) layerSpecifier_);
}
if (layerSpecifierCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer other = (io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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;
}
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.RuntimeLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.RuntimeLayer)
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.class, io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.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.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_RuntimeLayer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer build() {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer result = new io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.RuntimeLayer other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.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.v3.RuntimeLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.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.
*
* Descriptive name for the runtime layer. This is only used for the runtime
* :http:get:`/runtime` output.
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
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) = { ... }
* @param value The name to set.
* @return This builder for chaining.
*/
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) = { ... }
* @return This builder for chaining.
*/
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) = { ... }
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
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_;
/**
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
*
* .google.protobuf.Struct static_layer = 2;
* @return Whether the staticLayer field is set.
*/
@java.lang.Override
public boolean hasStaticLayer() {
return layerSpecifierCase_ == 2;
}
/**
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
*
* .google.protobuf.Struct static_layer = 2;
* @return The staticLayer.
*/
@java.lang.Override
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();
}
}
/**
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*
* :ref:`Static runtime <config_runtime_bootstrap>` layer.
* This follows the :ref:`runtime protobuf JSON representation encoding
* <config_runtime_proto_json>`. Unlike static xDS resources, this static
* layer is overridable by later layers in the runtime virtual filesystem.
*