io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/discovery/v3/discovery.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.service.discovery.v3;
/**
*
* [#next-free-field: 7]
*
*
* Protobuf type {@code envoy.service.discovery.v3.DiscoveryResponse}
*/
public final class DiscoveryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.DiscoveryResponse)
DiscoveryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiscoveryResponse.newBuilder() to construct.
private DiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiscoveryResponse() {
versionInfo_ = "";
resources_ = java.util.Collections.emptyList();
typeUrl_ = "";
nonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiscoveryResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.class, io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.Builder.class);
}
private int bitField0_;
public static final int VERSION_INFO_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object versionInfo_ = "";
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @return The versionInfo.
*/
@java.lang.Override
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
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();
versionInfo_ = s;
return s;
}
}
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @return The bytes for versionInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List resources_;
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
@java.lang.Override
public java.util.List getResourcesList() {
return resources_;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getResourcesOrBuilderList() {
return resources_;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
@java.lang.Override
public int getResourcesCount() {
return resources_.size();
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
@java.lang.Override
public com.google.protobuf.Any getResources(int index) {
return resources_.get(index);
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getResourcesOrBuilder(
int index) {
return resources_.get(index);
}
public static final int CANARY_FIELD_NUMBER = 3;
private boolean canary_ = false;
/**
*
* [#not-implemented-hide:]
* Canary is used to support two Envoy command line flags:
*
* * --terminate-on-canary-transition-failure. When set, Envoy is able to
* terminate if it detects that configuration is stuck at canary. Consider
* this example sequence of updates:
* - Management server applies a canary config successfully.
* - Management server rolls back to a production config.
* - Envoy rejects the new production config.
* Since there is no sensible way to continue receiving configuration
* updates, Envoy will then terminate and apply production config from a
* clean slate.
* * --dry-run-canary. When set, a canary response will never be applied, only
* validated via a dry run.
*
*
* bool canary = 3;
* @return The canary.
*/
@java.lang.Override
public boolean getCanary() {
return canary_;
}
public static final int TYPE_URL_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object typeUrl_ = "";
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @return The typeUrl.
*/
@java.lang.Override
public java.lang.String getTypeUrl() {
java.lang.Object ref = typeUrl_;
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();
typeUrl_ = s;
return s;
}
}
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @return The bytes for typeUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NONCE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object nonce_ = "";
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @return The nonce.
*/
@java.lang.Override
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
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();
nonce_ = s;
return s;
}
}
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @return The bytes for nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTROL_PLANE_FIELD_NUMBER = 6;
private io.envoyproxy.envoy.config.core.v3.ControlPlane controlPlane_;
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
* @return Whether the controlPlane field is set.
*/
@java.lang.Override
public boolean hasControlPlane() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
* @return The controlPlane.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ControlPlane getControlPlane() {
return controlPlane_ == null ? io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_;
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder getControlPlaneOrBuilder() {
return controlPlane_ == null ? io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_;
}
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(versionInfo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
if (canary_ != false) {
output.writeBool(3, canary_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nonce_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getControlPlane());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
for (int i = 0; i < resources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, resources_.get(i));
}
if (canary_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, canary_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nonce_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getControlPlane());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse other = (io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse) obj;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (!getResourcesList()
.equals(other.getResourcesList())) return false;
if (getCanary()
!= other.getCanary()) return false;
if (!getTypeUrl()
.equals(other.getTypeUrl())) return false;
if (!getNonce()
.equals(other.getNonce())) return false;
if (hasControlPlane() != other.hasControlPlane()) return false;
if (hasControlPlane()) {
if (!getControlPlane()
.equals(other.getControlPlane())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
if (getResourcesCount() > 0) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResourcesList().hashCode();
}
hash = (37 * hash) + CANARY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanary());
hash = (37 * hash) + TYPE_URL_FIELD_NUMBER;
hash = (53 * hash) + getTypeUrl().hashCode();
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
if (hasControlPlane()) {
hash = (37 * hash) + CONTROL_PLANE_FIELD_NUMBER;
hash = (53 * hash) + getControlPlane().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse 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.service.discovery.v3.DiscoveryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse 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.service.discovery.v3.DiscoveryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse 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.service.discovery.v3.DiscoveryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse 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.service.discovery.v3.DiscoveryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse 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.service.discovery.v3.DiscoveryResponse 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: 7]
*
*
* Protobuf type {@code envoy.service.discovery.v3.DiscoveryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DiscoveryResponse)
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.class, io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourcesFieldBuilder();
getControlPlaneFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
versionInfo_ = "";
if (resourcesBuilder_ == null) {
resources_ = java.util.Collections.emptyList();
} else {
resources_ = null;
resourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
canary_ = false;
typeUrl_ = "";
nonce_ = "";
controlPlane_ = null;
if (controlPlaneBuilder_ != null) {
controlPlaneBuilder_.dispose();
controlPlaneBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryResponse_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse build() {
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse buildPartial() {
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse result = new io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse result) {
if (resourcesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
resources_ = java.util.Collections.unmodifiableList(resources_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.versionInfo_ = versionInfo_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.canary_ = canary_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.typeUrl_ = typeUrl_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.nonce_ = nonce_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.controlPlane_ = controlPlaneBuilder_ == null
? controlPlane_
: controlPlaneBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse) {
return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse other) {
if (other == io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.getDefaultInstance()) return this;
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
bitField0_ |= 0x00000001;
onChanged();
}
if (resourcesBuilder_ == null) {
if (!other.resources_.isEmpty()) {
if (resources_.isEmpty()) {
resources_ = other.resources_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureResourcesIsMutable();
resources_.addAll(other.resources_);
}
onChanged();
}
} else {
if (!other.resources_.isEmpty()) {
if (resourcesBuilder_.isEmpty()) {
resourcesBuilder_.dispose();
resourcesBuilder_ = null;
resources_ = other.resources_;
bitField0_ = (bitField0_ & ~0x00000002);
resourcesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourcesFieldBuilder() : null;
} else {
resourcesBuilder_.addAllMessages(other.resources_);
}
}
}
if (other.getCanary() != false) {
setCanary(other.getCanary());
}
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getNonce().isEmpty()) {
nonce_ = other.nonce_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasControlPlane()) {
mergeControlPlane(other.getControlPlane());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
versionInfo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.Any m =
input.readMessage(
com.google.protobuf.Any.parser(),
extensionRegistry);
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.add(m);
} else {
resourcesBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
canary_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
typeUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
nonce_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getControlPlaneFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object versionInfo_ = "";
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @return The versionInfo.
*/
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @return The bytes for versionInfo.
*/
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @param value The versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
versionInfo_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @return This builder for chaining.
*/
public Builder clearVersionInfo() {
versionInfo_ = getDefaultInstance().getVersionInfo();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The version of the response data.
*
*
* string version_info = 1;
* @param value The bytes for versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
versionInfo_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List resources_ =
java.util.Collections.emptyList();
private void ensureResourcesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
resources_ = new java.util.ArrayList(resources_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> resourcesBuilder_;
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public java.util.List getResourcesList() {
if (resourcesBuilder_ == null) {
return java.util.Collections.unmodifiableList(resources_);
} else {
return resourcesBuilder_.getMessageList();
}
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public int getResourcesCount() {
if (resourcesBuilder_ == null) {
return resources_.size();
} else {
return resourcesBuilder_.getCount();
}
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public com.google.protobuf.Any getResources(int index) {
if (resourcesBuilder_ == null) {
return resources_.get(index);
} else {
return resourcesBuilder_.getMessage(index);
}
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder setResources(
int index, com.google.protobuf.Any value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourcesIsMutable();
resources_.set(index, value);
onChanged();
} else {
resourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder setResources(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.set(index, builderForValue.build());
onChanged();
} else {
resourcesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder addResources(com.google.protobuf.Any value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourcesIsMutable();
resources_.add(value);
onChanged();
} else {
resourcesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder addResources(
int index, com.google.protobuf.Any value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourcesIsMutable();
resources_.add(index, value);
onChanged();
} else {
resourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder addResources(
com.google.protobuf.Any.Builder builderForValue) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.add(builderForValue.build());
onChanged();
} else {
resourcesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder addResources(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.add(index, builderForValue.build());
onChanged();
} else {
resourcesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder addAllResources(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resources_);
onChanged();
} else {
resourcesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
resourcesBuilder_.clear();
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public Builder removeResources(int index) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.remove(index);
onChanged();
} else {
resourcesBuilder_.remove(index);
}
return this;
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public com.google.protobuf.Any.Builder getResourcesBuilder(
int index) {
return getResourcesFieldBuilder().getBuilder(index);
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public com.google.protobuf.AnyOrBuilder getResourcesOrBuilder(
int index) {
if (resourcesBuilder_ == null) {
return resources_.get(index); } else {
return resourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getResourcesOrBuilderList() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resources_);
}
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public com.google.protobuf.Any.Builder addResourcesBuilder() {
return getResourcesFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public com.google.protobuf.Any.Builder addResourcesBuilder(
int index) {
return getResourcesFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* The response resources. These resources are typed and depend on the API being called.
*
*
* repeated .google.protobuf.Any resources = 2;
*/
public java.util.List
getResourcesBuilderList() {
return getResourcesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
resources_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private boolean canary_ ;
/**
*
* [#not-implemented-hide:]
* Canary is used to support two Envoy command line flags:
*
* * --terminate-on-canary-transition-failure. When set, Envoy is able to
* terminate if it detects that configuration is stuck at canary. Consider
* this example sequence of updates:
* - Management server applies a canary config successfully.
* - Management server rolls back to a production config.
* - Envoy rejects the new production config.
* Since there is no sensible way to continue receiving configuration
* updates, Envoy will then terminate and apply production config from a
* clean slate.
* * --dry-run-canary. When set, a canary response will never be applied, only
* validated via a dry run.
*
*
* bool canary = 3;
* @return The canary.
*/
@java.lang.Override
public boolean getCanary() {
return canary_;
}
/**
*
* [#not-implemented-hide:]
* Canary is used to support two Envoy command line flags:
*
* * --terminate-on-canary-transition-failure. When set, Envoy is able to
* terminate if it detects that configuration is stuck at canary. Consider
* this example sequence of updates:
* - Management server applies a canary config successfully.
* - Management server rolls back to a production config.
* - Envoy rejects the new production config.
* Since there is no sensible way to continue receiving configuration
* updates, Envoy will then terminate and apply production config from a
* clean slate.
* * --dry-run-canary. When set, a canary response will never be applied, only
* validated via a dry run.
*
*
* bool canary = 3;
* @param value The canary to set.
* @return This builder for chaining.
*/
public Builder setCanary(boolean value) {
canary_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:]
* Canary is used to support two Envoy command line flags:
*
* * --terminate-on-canary-transition-failure. When set, Envoy is able to
* terminate if it detects that configuration is stuck at canary. Consider
* this example sequence of updates:
* - Management server applies a canary config successfully.
* - Management server rolls back to a production config.
* - Envoy rejects the new production config.
* Since there is no sensible way to continue receiving configuration
* updates, Envoy will then terminate and apply production config from a
* clean slate.
* * --dry-run-canary. When set, a canary response will never be applied, only
* validated via a dry run.
*
*
* bool canary = 3;
* @return This builder for chaining.
*/
public Builder clearCanary() {
bitField0_ = (bitField0_ & ~0x00000004);
canary_ = false;
onChanged();
return this;
}
private java.lang.Object typeUrl_ = "";
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @return The typeUrl.
*/
public java.lang.String getTypeUrl() {
java.lang.Object ref = typeUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @return The bytes for typeUrl.
*/
public com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @param value The typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrl(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
typeUrl_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @return This builder for chaining.
*/
public Builder clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Type URL for resources. Identifies the xDS API when muxing over ADS.
* Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
*
*
* string type_url = 4;
* @param value The bytes for typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
typeUrl_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object nonce_ = "";
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @return The nonce.
*/
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nonce_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @return The bytes for nonce.
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @param value The nonce to set.
* @return This builder for chaining.
*/
public Builder setNonce(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nonce_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @return This builder for chaining.
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* For gRPC based subscriptions, the nonce provides a way to explicitly ack a
* specific DiscoveryResponse in a following DiscoveryRequest. Additional
* messages may have been sent by Envoy to the management server for the
* previous version on the stream prior to this DiscoveryResponse, that were
* unprocessed at response send time. The nonce allows the management server
* to ignore any further DiscoveryRequests for the previous version until a
* DiscoveryRequest bearing the nonce. The nonce is optional and is not
* required for non-stream based xDS implementations.
*
*
* string nonce = 5;
* @param value The bytes for nonce to set.
* @return This builder for chaining.
*/
public Builder setNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nonce_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.ControlPlane controlPlane_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ControlPlane, io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder, io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder> controlPlaneBuilder_;
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
* @return Whether the controlPlane field is set.
*/
public boolean hasControlPlane() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
* @return The controlPlane.
*/
public io.envoyproxy.envoy.config.core.v3.ControlPlane getControlPlane() {
if (controlPlaneBuilder_ == null) {
return controlPlane_ == null ? io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_;
} else {
return controlPlaneBuilder_.getMessage();
}
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
public Builder setControlPlane(io.envoyproxy.envoy.config.core.v3.ControlPlane value) {
if (controlPlaneBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
controlPlane_ = value;
} else {
controlPlaneBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
public Builder setControlPlane(
io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder builderForValue) {
if (controlPlaneBuilder_ == null) {
controlPlane_ = builderForValue.build();
} else {
controlPlaneBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
public Builder mergeControlPlane(io.envoyproxy.envoy.config.core.v3.ControlPlane value) {
if (controlPlaneBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
controlPlane_ != null &&
controlPlane_ != io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance()) {
getControlPlaneBuilder().mergeFrom(value);
} else {
controlPlane_ = value;
}
} else {
controlPlaneBuilder_.mergeFrom(value);
}
if (controlPlane_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
public Builder clearControlPlane() {
bitField0_ = (bitField0_ & ~0x00000020);
controlPlane_ = null;
if (controlPlaneBuilder_ != null) {
controlPlaneBuilder_.dispose();
controlPlaneBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
public io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder getControlPlaneBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getControlPlaneFieldBuilder().getBuilder();
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
public io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder getControlPlaneOrBuilder() {
if (controlPlaneBuilder_ != null) {
return controlPlaneBuilder_.getMessageOrBuilder();
} else {
return controlPlane_ == null ?
io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_;
}
}
/**
*
* The control plane instance that sent the response.
*
*
* .envoy.config.core.v3.ControlPlane control_plane = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ControlPlane, io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder, io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder>
getControlPlaneFieldBuilder() {
if (controlPlaneBuilder_ == null) {
controlPlaneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ControlPlane, io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder, io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder>(
getControlPlane(),
getParentForChildren(),
isClean());
controlPlane_ = null;
}
return controlPlaneBuilder_;
}
@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.service.discovery.v3.DiscoveryResponse)
}
// @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DiscoveryResponse)
private static final io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse();
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiscoveryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy