Class DiscoveryResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DiscoveryResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<DiscoveryResponse.Builder>
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DiscoveryResponseOrBuilder, Cloneable
- Enclosing class:
DiscoveryResponse
public static final class DiscoveryResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryResponse.Builder>
implements DiscoveryResponseOrBuilder
[#next-free-field: 7]Protobuf type
envoy.service.discovery.v3.DiscoveryResponse-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate ControlPlaneprivate com.google.protobuf.SingleFieldBuilder<ControlPlane, ControlPlane.Builder, ControlPlaneOrBuilder> private Objectprivate List<com.google.protobuf.Any> private com.google.protobuf.RepeatedFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> private Objectprivate Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllResources(Iterable<? extends com.google.protobuf.Any> values) The response resources.addResources(int index, com.google.protobuf.Any value) The response resources.addResources(int index, com.google.protobuf.Any.Builder builderForValue) The response resources.addResources(com.google.protobuf.Any value) The response resources.addResources(com.google.protobuf.Any.Builder builderForValue) The response resources.com.google.protobuf.Any.BuilderThe response resources.com.google.protobuf.Any.BuilderaddResourcesBuilder(int index) The response resources.build()private voidbuildPartial0(DiscoveryResponse result) private voidclear()[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.The control plane instance that sent the response.For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.The response resources.Type URL for resources.The version of the response data.private voidboolean[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.The control plane instance that sent the response.The control plane instance that sent the response.The control plane instance that sent the response.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetNonce()For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.com.google.protobuf.ByteStringFor gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.com.google.protobuf.AnygetResources(int index) The response resources.com.google.protobuf.Any.BuildergetResourcesBuilder(int index) The response resources.List<com.google.protobuf.Any.Builder> The response resources.intThe response resources.List<com.google.protobuf.Any> The response resources.com.google.protobuf.AnyOrBuildergetResourcesOrBuilder(int index) The response resources.List<? extends com.google.protobuf.AnyOrBuilder> The response resources.Type URL for resources.com.google.protobuf.ByteStringType URL for resources.The version of the response data.com.google.protobuf.ByteStringThe version of the response data.booleanThe control plane instance that sent the response.private com.google.protobuf.SingleFieldBuilder<ControlPlane, ControlPlane.Builder, ControlPlaneOrBuilder> The control plane instance that sent the response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.RepeatedFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> final booleanprivate voidmergeControlPlane(ControlPlane value) The control plane instance that sent the response.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DiscoveryResponse other) removeResources(int index) The response resources.setCanary(boolean value) [#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.setControlPlane(ControlPlane value) The control plane instance that sent the response.setControlPlane(ControlPlane.Builder builderForValue) The control plane instance that sent the response.For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.setNonceBytes(com.google.protobuf.ByteString value) For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.setResources(int index, com.google.protobuf.Any value) The response resources.setResources(int index, com.google.protobuf.Any.Builder builderForValue) The response resources.setTypeUrl(String value) Type URL for resources.setTypeUrlBytes(com.google.protobuf.ByteString value) Type URL for resources.setVersionInfo(String value) The version of the response data.setVersionInfoBytes(com.google.protobuf.ByteString value) The version of the response data.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
versionInfo_
-
resources_
-
resourcesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> resourcesBuilder_ -
canary_
private boolean canary_ -
typeUrl_
-
nonce_
-
controlPlane_
-
controlPlaneBuilder_
private com.google.protobuf.SingleFieldBuilder<ControlPlane, ControlPlane.Builder, ControlPlaneOrBuilder> controlPlaneBuilder_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryResponse.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryResponse.Builder>
-
mergeFrom
public DiscoveryResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryResponse.Builder>- Throws:
IOException
-
getVersionInfo
The version of the response data.
string version_info = 1;- Specified by:
getVersionInfoin interfaceDiscoveryResponseOrBuilder- Returns:
- The versionInfo.
-
getVersionInfoBytes
public com.google.protobuf.ByteString getVersionInfoBytes()The version of the response data.
string version_info = 1;- Specified by:
getVersionInfoBytesin interfaceDiscoveryResponseOrBuilder- Returns:
- The bytes for versionInfo.
-
setVersionInfo
The version of the response data.
string version_info = 1;- Parameters:
value- The versionInfo to set.- Returns:
- This builder for chaining.
-
clearVersionInfo
The version of the response data.
string version_info = 1;- Returns:
- This builder for chaining.
-
setVersionInfoBytes
The version of the response data.
string version_info = 1;- Parameters:
value- The bytes for versionInfo to set.- Returns:
- This builder for chaining.
-
ensureResourcesIsMutable
private void ensureResourcesIsMutable() -
getResourcesList
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;- Specified by:
getResourcesListin interfaceDiscoveryResponseOrBuilder
-
getResourcesCount
public int getResourcesCount()The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;- Specified by:
getResourcesCountin interfaceDiscoveryResponseOrBuilder
-
getResources
public com.google.protobuf.Any getResources(int index) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;- Specified by:
getResourcesin interfaceDiscoveryResponseOrBuilder
-
setResources
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
setResources
public DiscoveryResponse.Builder setResources(int index, com.google.protobuf.Any.Builder builderForValue) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
addResources
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
addResources
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
addResources
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
addResources
public DiscoveryResponse.Builder addResources(int index, com.google.protobuf.Any.Builder builderForValue) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
addAllResources
public DiscoveryResponse.Builder addAllResources(Iterable<? extends com.google.protobuf.Any> values) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
clearResources
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
removeResources
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
getResourcesBuilder
public com.google.protobuf.Any.Builder getResourcesBuilder(int index) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
getResourcesOrBuilder
public com.google.protobuf.AnyOrBuilder getResourcesOrBuilder(int index) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;- Specified by:
getResourcesOrBuilderin interfaceDiscoveryResponseOrBuilder
-
getResourcesOrBuilderList
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;- Specified by:
getResourcesOrBuilderListin interfaceDiscoveryResponseOrBuilder
-
addResourcesBuilder
public com.google.protobuf.Any.Builder addResourcesBuilder()The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
addResourcesBuilder
public com.google.protobuf.Any.Builder addResourcesBuilder(int index) The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
getResourcesBuilderList
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2; -
internalGetResourcesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> internalGetResourcesFieldBuilder() -
getCanary
public boolean getCanary()[#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;- Specified by:
getCanaryin interfaceDiscoveryResponseOrBuilder- Returns:
- The canary.
-
setCanary
[#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;- Parameters:
value- The canary to set.- Returns:
- This builder for chaining.
-
clearCanary
[#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;- Returns:
- This builder for chaining.
-
getTypeUrl
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;- Specified by:
getTypeUrlin interfaceDiscoveryResponseOrBuilder- Returns:
- The typeUrl.
-
getTypeUrlBytes
public com.google.protobuf.ByteString getTypeUrlBytes()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;- Specified by:
getTypeUrlBytesin interfaceDiscoveryResponseOrBuilder- Returns:
- The bytes for typeUrl.
-
setTypeUrl
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;- Parameters:
value- The typeUrl to set.- Returns:
- This builder for chaining.
-
clearTypeUrl
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;- Returns:
- This builder for chaining.
-
setTypeUrlBytes
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;- Parameters:
value- The bytes for typeUrl to set.- Returns:
- This builder for chaining.
-
getNonce
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;- Specified by:
getNoncein interfaceDiscoveryResponseOrBuilder- Returns:
- The nonce.
-
getNonceBytes
public com.google.protobuf.ByteString getNonceBytes()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;- Specified by:
getNonceBytesin interfaceDiscoveryResponseOrBuilder- Returns:
- The bytes for nonce.
-
setNonce
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;- Parameters:
value- The nonce to set.- Returns:
- This builder for chaining.
-
clearNonce
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;- Returns:
- This builder for chaining.
-
setNonceBytes
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;- Parameters:
value- The bytes for nonce to set.- Returns:
- This builder for chaining.
-
hasControlPlane
public boolean hasControlPlane()The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;- Specified by:
hasControlPlanein interfaceDiscoveryResponseOrBuilder- Returns:
- Whether the controlPlane field is set.
-
getControlPlane
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;- Specified by:
getControlPlanein interfaceDiscoveryResponseOrBuilder- Returns:
- The controlPlane.
-
setControlPlane
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6; -
setControlPlane
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6; -
mergeControlPlane
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6; -
clearControlPlane
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6; -
getControlPlaneBuilder
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6; -
getControlPlaneOrBuilder
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;- Specified by:
getControlPlaneOrBuilderin interfaceDiscoveryResponseOrBuilder
-
internalGetControlPlaneFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ControlPlane, ControlPlane.Builder, ControlPlaneOrBuilder> internalGetControlPlaneFieldBuilder()The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
-