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.Admin 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;
/**
*
* Administration interface :ref:`operations documentation
* <operations_admin_interface>`.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.Admin}
*/
public final class Admin extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v2.Admin)
AdminOrBuilder {
private static final long serialVersionUID = 0L;
// Use Admin.newBuilder() to construct.
private Admin(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Admin() {
accessLogPath_ = "";
profilePath_ = "";
socketOptions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Admin();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Admin(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
accessLogPath_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
profilePath_ = s;
break;
}
case 26: {
io.envoyproxy.envoy.api.v2.core.Address.Builder subBuilder = null;
if (address_ != null) {
subBuilder = address_.toBuilder();
}
address_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Address.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(address_);
address_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
socketOptions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
socketOptions_.add(
input.readMessage(io.envoyproxy.envoy.api.v2.core.SocketOption.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
socketOptions_ = java.util.Collections.unmodifiableList(socketOptions_);
}
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_Admin_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_Admin_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.Admin.class, io.envoyproxy.envoy.config.bootstrap.v2.Admin.Builder.class);
}
public static final int ACCESS_LOG_PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object accessLogPath_;
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public java.lang.String getAccessLogPath() {
java.lang.Object ref = accessLogPath_;
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();
accessLogPath_ = s;
return s;
}
}
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public com.google.protobuf.ByteString
getAccessLogPathBytes() {
java.lang.Object ref = accessLogPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accessLogPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROFILE_PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object profilePath_;
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public java.lang.String getProfilePath() {
java.lang.Object ref = profilePath_;
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();
profilePath_ = s;
return s;
}
}
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public com.google.protobuf.ByteString
getProfilePathBytes() {
java.lang.Object ref = profilePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profilePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.api.v2.core.Address address_;
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public boolean hasAddress() {
return address_ != null;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public io.envoyproxy.envoy.api.v2.core.Address getAddress() {
return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() {
return getAddress();
}
public static final int SOCKET_OPTIONS_FIELD_NUMBER = 4;
private java.util.List socketOptions_;
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public java.util.List getSocketOptionsList() {
return socketOptions_;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder>
getSocketOptionsOrBuilderList() {
return socketOptions_;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public int getSocketOptionsCount() {
return socketOptions_.size();
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOption getSocketOptions(int index) {
return socketOptions_.get(index);
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder getSocketOptionsOrBuilder(
int index) {
return socketOptions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAccessLogPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessLogPath_);
}
if (!getProfilePathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profilePath_);
}
if (address_ != null) {
output.writeMessage(3, getAddress());
}
for (int i = 0; i < socketOptions_.size(); i++) {
output.writeMessage(4, socketOptions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAccessLogPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessLogPath_);
}
if (!getProfilePathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, profilePath_);
}
if (address_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAddress());
}
for (int i = 0; i < socketOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, socketOptions_.get(i));
}
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.Admin)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v2.Admin other = (io.envoyproxy.envoy.config.bootstrap.v2.Admin) obj;
if (!getAccessLogPath()
.equals(other.getAccessLogPath())) return false;
if (!getProfilePath()
.equals(other.getProfilePath())) return false;
if (hasAddress() != other.hasAddress()) return false;
if (hasAddress()) {
if (!getAddress()
.equals(other.getAddress())) return false;
}
if (!getSocketOptionsList()
.equals(other.getSocketOptionsList())) 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) + ACCESS_LOG_PATH_FIELD_NUMBER;
hash = (53 * hash) + getAccessLogPath().hashCode();
hash = (37 * hash) + PROFILE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getProfilePath().hashCode();
if (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
if (getSocketOptionsCount() > 0) {
hash = (37 * hash) + SOCKET_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getSocketOptionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v2.Admin parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.Admin 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.Admin parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.Admin 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.Admin parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v2.Admin 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.Admin 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.Admin 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.Admin 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.Admin 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.Admin 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.Admin 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.Admin 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;
}
/**
*
* Administration interface :ref:`operations documentation
* <operations_admin_interface>`.
*
*
* Protobuf type {@code envoy.config.bootstrap.v2.Admin}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v2.Admin)
io.envoyproxy.envoy.config.bootstrap.v2.AdminOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_Admin_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_Admin_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v2.Admin.class, io.envoyproxy.envoy.config.bootstrap.v2.Admin.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v2.Admin.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSocketOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
accessLogPath_ = "";
profilePath_ = "";
if (addressBuilder_ == null) {
address_ = null;
} else {
address_ = null;
addressBuilder_ = null;
}
if (socketOptionsBuilder_ == null) {
socketOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
socketOptionsBuilder_.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_Admin_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.Admin getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v2.Admin.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.Admin build() {
io.envoyproxy.envoy.config.bootstrap.v2.Admin result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v2.Admin buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v2.Admin result = new io.envoyproxy.envoy.config.bootstrap.v2.Admin(this);
int from_bitField0_ = bitField0_;
result.accessLogPath_ = accessLogPath_;
result.profilePath_ = profilePath_;
if (addressBuilder_ == null) {
result.address_ = address_;
} else {
result.address_ = addressBuilder_.build();
}
if (socketOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
socketOptions_ = java.util.Collections.unmodifiableList(socketOptions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.socketOptions_ = socketOptions_;
} else {
result.socketOptions_ = socketOptionsBuilder_.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.Admin) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.Admin)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v2.Admin other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v2.Admin.getDefaultInstance()) return this;
if (!other.getAccessLogPath().isEmpty()) {
accessLogPath_ = other.accessLogPath_;
onChanged();
}
if (!other.getProfilePath().isEmpty()) {
profilePath_ = other.profilePath_;
onChanged();
}
if (other.hasAddress()) {
mergeAddress(other.getAddress());
}
if (socketOptionsBuilder_ == null) {
if (!other.socketOptions_.isEmpty()) {
if (socketOptions_.isEmpty()) {
socketOptions_ = other.socketOptions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSocketOptionsIsMutable();
socketOptions_.addAll(other.socketOptions_);
}
onChanged();
}
} else {
if (!other.socketOptions_.isEmpty()) {
if (socketOptionsBuilder_.isEmpty()) {
socketOptionsBuilder_.dispose();
socketOptionsBuilder_ = null;
socketOptions_ = other.socketOptions_;
bitField0_ = (bitField0_ & ~0x00000001);
socketOptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSocketOptionsFieldBuilder() : null;
} else {
socketOptionsBuilder_.addAllMessages(other.socketOptions_);
}
}
}
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.Admin parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v2.Admin) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object accessLogPath_ = "";
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public java.lang.String getAccessLogPath() {
java.lang.Object ref = accessLogPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accessLogPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public com.google.protobuf.ByteString
getAccessLogPathBytes() {
java.lang.Object ref = accessLogPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accessLogPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public Builder setAccessLogPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
accessLogPath_ = value;
onChanged();
return this;
}
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public Builder clearAccessLogPath() {
accessLogPath_ = getDefaultInstance().getAccessLogPath();
onChanged();
return this;
}
/**
*
* The path to write the access log for the administration server. If no
* access log is desired specify ‘/dev/null’. This is only required if
* :ref:`address <envoy_api_field_config.bootstrap.v2.Admin.address>` is set.
*
*
* string access_log_path = 1;
*/
public Builder setAccessLogPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
accessLogPath_ = value;
onChanged();
return this;
}
private java.lang.Object profilePath_ = "";
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public java.lang.String getProfilePath() {
java.lang.Object ref = profilePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
profilePath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public com.google.protobuf.ByteString
getProfilePathBytes() {
java.lang.Object ref = profilePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profilePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public Builder setProfilePath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
profilePath_ = value;
onChanged();
return this;
}
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public Builder clearProfilePath() {
profilePath_ = getDefaultInstance().getProfilePath();
onChanged();
return this;
}
/**
*
* The cpu profiler output path for the administration server. If no profile
* path is specified, the default is ‘/var/log/envoy/envoy.prof’.
*
*
* string profile_path = 2;
*/
public Builder setProfilePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
profilePath_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.api.v2.core.Address address_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> addressBuilder_;
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public boolean hasAddress() {
return addressBuilder_ != null || address_ != null;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public io.envoyproxy.envoy.api.v2.core.Address getAddress() {
if (addressBuilder_ == null) {
return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_;
} else {
return addressBuilder_.getMessage();
}
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public Builder setAddress(io.envoyproxy.envoy.api.v2.core.Address value) {
if (addressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
} else {
addressBuilder_.setMessage(value);
}
return this;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public Builder setAddress(
io.envoyproxy.envoy.api.v2.core.Address.Builder builderForValue) {
if (addressBuilder_ == null) {
address_ = builderForValue.build();
onChanged();
} else {
addressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public Builder mergeAddress(io.envoyproxy.envoy.api.v2.core.Address value) {
if (addressBuilder_ == null) {
if (address_ != null) {
address_ =
io.envoyproxy.envoy.api.v2.core.Address.newBuilder(address_).mergeFrom(value).buildPartial();
} else {
address_ = value;
}
onChanged();
} else {
addressBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public Builder clearAddress() {
if (addressBuilder_ == null) {
address_ = null;
onChanged();
} else {
address_ = null;
addressBuilder_ = null;
}
return this;
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public io.envoyproxy.envoy.api.v2.core.Address.Builder getAddressBuilder() {
onChanged();
return getAddressFieldBuilder().getBuilder();
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilder();
} else {
return address_ == null ?
io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_;
}
}
/**
*
* The TCP address that the administration server will listen on.
* If not specified, Envoy will not start an administration server.
*
*
* .envoy.api.v2.core.Address address = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder>(
getAddress(),
getParentForChildren(),
isClean());
address_ = null;
}
return addressBuilder_;
}
private java.util.List socketOptions_ =
java.util.Collections.emptyList();
private void ensureSocketOptionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
socketOptions_ = new java.util.ArrayList(socketOptions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.SocketOption, io.envoyproxy.envoy.api.v2.core.SocketOption.Builder, io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder> socketOptionsBuilder_;
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public java.util.List getSocketOptionsList() {
if (socketOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(socketOptions_);
} else {
return socketOptionsBuilder_.getMessageList();
}
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public int getSocketOptionsCount() {
if (socketOptionsBuilder_ == null) {
return socketOptions_.size();
} else {
return socketOptionsBuilder_.getCount();
}
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOption getSocketOptions(int index) {
if (socketOptionsBuilder_ == null) {
return socketOptions_.get(index);
} else {
return socketOptionsBuilder_.getMessage(index);
}
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder setSocketOptions(
int index, io.envoyproxy.envoy.api.v2.core.SocketOption value) {
if (socketOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocketOptionsIsMutable();
socketOptions_.set(index, value);
onChanged();
} else {
socketOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder setSocketOptions(
int index, io.envoyproxy.envoy.api.v2.core.SocketOption.Builder builderForValue) {
if (socketOptionsBuilder_ == null) {
ensureSocketOptionsIsMutable();
socketOptions_.set(index, builderForValue.build());
onChanged();
} else {
socketOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder addSocketOptions(io.envoyproxy.envoy.api.v2.core.SocketOption value) {
if (socketOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocketOptionsIsMutable();
socketOptions_.add(value);
onChanged();
} else {
socketOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder addSocketOptions(
int index, io.envoyproxy.envoy.api.v2.core.SocketOption value) {
if (socketOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocketOptionsIsMutable();
socketOptions_.add(index, value);
onChanged();
} else {
socketOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder addSocketOptions(
io.envoyproxy.envoy.api.v2.core.SocketOption.Builder builderForValue) {
if (socketOptionsBuilder_ == null) {
ensureSocketOptionsIsMutable();
socketOptions_.add(builderForValue.build());
onChanged();
} else {
socketOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder addSocketOptions(
int index, io.envoyproxy.envoy.api.v2.core.SocketOption.Builder builderForValue) {
if (socketOptionsBuilder_ == null) {
ensureSocketOptionsIsMutable();
socketOptions_.add(index, builderForValue.build());
onChanged();
} else {
socketOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder addAllSocketOptions(
java.lang.Iterable extends io.envoyproxy.envoy.api.v2.core.SocketOption> values) {
if (socketOptionsBuilder_ == null) {
ensureSocketOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, socketOptions_);
onChanged();
} else {
socketOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder clearSocketOptions() {
if (socketOptionsBuilder_ == null) {
socketOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
socketOptionsBuilder_.clear();
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public Builder removeSocketOptions(int index) {
if (socketOptionsBuilder_ == null) {
ensureSocketOptionsIsMutable();
socketOptions_.remove(index);
onChanged();
} else {
socketOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOption.Builder getSocketOptionsBuilder(
int index) {
return getSocketOptionsFieldBuilder().getBuilder(index);
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder getSocketOptionsOrBuilder(
int index) {
if (socketOptionsBuilder_ == null) {
return socketOptions_.get(index); } else {
return socketOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder>
getSocketOptionsOrBuilderList() {
if (socketOptionsBuilder_ != null) {
return socketOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(socketOptions_);
}
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOption.Builder addSocketOptionsBuilder() {
return getSocketOptionsFieldBuilder().addBuilder(
io.envoyproxy.envoy.api.v2.core.SocketOption.getDefaultInstance());
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public io.envoyproxy.envoy.api.v2.core.SocketOption.Builder addSocketOptionsBuilder(
int index) {
return getSocketOptionsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.api.v2.core.SocketOption.getDefaultInstance());
}
/**
*
* Additional socket options that may not be present in Envoy source code or
* precompiled binaries.
*
*
* repeated .envoy.api.v2.core.SocketOption socket_options = 4;
*/
public java.util.List
getSocketOptionsBuilderList() {
return getSocketOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.SocketOption, io.envoyproxy.envoy.api.v2.core.SocketOption.Builder, io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder>
getSocketOptionsFieldBuilder() {
if (socketOptionsBuilder_ == null) {
socketOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.SocketOption, io.envoyproxy.envoy.api.v2.core.SocketOption.Builder, io.envoyproxy.envoy.api.v2.core.SocketOptionOrBuilder>(
socketOptions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
socketOptions_ = null;
}
return socketOptionsBuilder_;
}
@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.Admin)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v2.Admin)
private static final io.envoyproxy.envoy.config.bootstrap.v2.Admin DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v2.Admin();
}
public static io.envoyproxy.envoy.config.bootstrap.v2.Admin getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Admin parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Admin(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.Admin getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}