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/service/discovery/v3/discovery.proto
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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DiscoveryResponse(
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();
versionInfo_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
resources_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
case 24: {
canary_ = input.readBool();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
typeUrl_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
nonce_ = s;
break;
}
case 50: {
io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder subBuilder = null;
if (controlPlane_ != null) {
subBuilder = controlPlane_.toBuilder();
}
controlPlane_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.ControlPlane.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(controlPlane_);
controlPlane_ = subBuilder.buildPartial();
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
resources_ = java.util.Collections.unmodifiableList(resources_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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);
}
public static final int VERSION_INFO_FIELD_NUMBER = 1;
private volatile java.lang.Object versionInfo_;
/**
*
* 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_;
/**
*
* [#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;
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).
*
* 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;
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.
*
* 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 controlPlane_ != null;
}
/**
*
* The control plane instance that sent the response.
*
* [#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.
*
* [#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;
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.
*
* 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).
*
* 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;
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();
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;
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.
*
* 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;
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();
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;
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 controlPlaneBuilder_ != null || controlPlane_ != null;
}
/**
*
* The control plane instance that sent the response.
*