Class DiscoveryRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<DiscoveryRequest.Builder>
-
- io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DiscoveryRequestOrBuilder,java.lang.Cloneable
- Enclosing class:
- DiscoveryRequest
public static final class DiscoveryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryRequest.Builder> implements DiscoveryRequestOrBuilder
A DiscoveryRequest requests a set of versioned resources of the same type for a given Envoy node on some API. [#next-free-field: 8]
Protobuf typeenvoy.service.discovery.v3.DiscoveryRequest
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private com.google.rpc.StatuserrorDetail_private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder>errorDetailBuilder_private Nodenode_private com.google.protobuf.SingleFieldBuilder<Node,Node.Builder,NodeOrBuilder>nodeBuilder_private java.util.List<ResourceLocator>resourceLocators_private com.google.protobuf.RepeatedFieldBuilder<ResourceLocator,ResourceLocator.Builder,ResourceLocatorOrBuilder>resourceLocatorsBuilder_private com.google.protobuf.LazyStringArrayListresourceNames_private java.lang.ObjectresponseNonce_private java.lang.ObjecttypeUrl_private java.lang.ObjectversionInfo_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscoveryRequest.BuilderaddAllResourceLocators(java.lang.Iterable<? extends ResourceLocator> values)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuilderaddAllResourceNames(java.lang.Iterable<java.lang.String> values)List of resources to subscribe to, e.g.DiscoveryRequest.BuilderaddResourceLocators(int index, ResourceLocator value)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuilderaddResourceLocators(int index, ResourceLocator.Builder builderForValue)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuilderaddResourceLocators(ResourceLocator value)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuilderaddResourceLocators(ResourceLocator.Builder builderForValue)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.ResourceLocator.BuilderaddResourceLocatorsBuilder()[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.ResourceLocator.BuilderaddResourceLocatorsBuilder(int index)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuilderaddResourceNames(java.lang.String value)List of resources to subscribe to, e.g.DiscoveryRequest.BuilderaddResourceNamesBytes(com.google.protobuf.ByteString value)List of resources to subscribe to, e.g.DiscoveryRequestbuild()DiscoveryRequestbuildPartial()private voidbuildPartial0(DiscoveryRequest result)private voidbuildPartialRepeatedFields(DiscoveryRequest result)DiscoveryRequest.Builderclear()DiscoveryRequest.BuilderclearErrorDetail()This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.DiscoveryRequest.BuilderclearNode()The node making the request.DiscoveryRequest.BuilderclearResourceLocators()[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuilderclearResourceNames()List of resources to subscribe to, e.g.DiscoveryRequest.BuilderclearResponseNonce()nonce corresponding to DiscoveryResponse being ACK/NACKed.DiscoveryRequest.BuilderclearTypeUrl()Type of the resource that is being requested, e.g.DiscoveryRequest.BuilderclearVersionInfo()The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request.private voidensureResourceLocatorsIsMutable()private voidensureResourceNamesIsMutable()DiscoveryRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetErrorDetail()This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.com.google.rpc.Status.BuildergetErrorDetailBuilder()This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder>getErrorDetailFieldBuilder()This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.com.google.rpc.StatusOrBuildergetErrorDetailOrBuilder()This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.NodegetNode()The node making the request.Node.BuildergetNodeBuilder()The node making the request.private com.google.protobuf.SingleFieldBuilder<Node,Node.Builder,NodeOrBuilder>getNodeFieldBuilder()The node making the request.NodeOrBuildergetNodeOrBuilder()The node making the request.ResourceLocatorgetResourceLocators(int index)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.ResourceLocator.BuildergetResourceLocatorsBuilder(int index)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.java.util.List<ResourceLocator.Builder>getResourceLocatorsBuilderList()[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.intgetResourceLocatorsCount()[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.private com.google.protobuf.RepeatedFieldBuilder<ResourceLocator,ResourceLocator.Builder,ResourceLocatorOrBuilder>getResourceLocatorsFieldBuilder()java.util.List<ResourceLocator>getResourceLocatorsList()[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.ResourceLocatorOrBuildergetResourceLocatorsOrBuilder(int index)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.java.util.List<? extends ResourceLocatorOrBuilder>getResourceLocatorsOrBuilderList()[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.java.lang.StringgetResourceNames(int index)List of resources to subscribe to, e.g.com.google.protobuf.ByteStringgetResourceNamesBytes(int index)List of resources to subscribe to, e.g.intgetResourceNamesCount()List of resources to subscribe to, e.g.com.google.protobuf.ProtocolStringListgetResourceNamesList()List of resources to subscribe to, e.g.java.lang.StringgetResponseNonce()nonce corresponding to DiscoveryResponse being ACK/NACKed.com.google.protobuf.ByteStringgetResponseNonceBytes()nonce corresponding to DiscoveryResponse being ACK/NACKed.java.lang.StringgetTypeUrl()Type of the resource that is being requested, e.g.com.google.protobuf.ByteStringgetTypeUrlBytes()Type of the resource that is being requested, e.g.java.lang.StringgetVersionInfo()The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request.com.google.protobuf.ByteStringgetVersionInfoBytes()The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request.booleanhasErrorDetail()This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.booleanhasNode()The node making the request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()DiscoveryRequest.BuildermergeErrorDetail(com.google.rpc.Status value)This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.DiscoveryRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DiscoveryRequest.BuildermergeFrom(com.google.protobuf.Message other)DiscoveryRequest.BuildermergeFrom(DiscoveryRequest other)DiscoveryRequest.BuildermergeNode(Node value)The node making the request.DiscoveryRequest.BuilderremoveResourceLocators(int index)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuildersetErrorDetail(com.google.rpc.Status value)This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.DiscoveryRequest.BuildersetErrorDetail(com.google.rpc.Status.Builder builderForValue)This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration.DiscoveryRequest.BuildersetNode(Node value)The node making the request.DiscoveryRequest.BuildersetNode(Node.Builder builderForValue)The node making the request.DiscoveryRequest.BuildersetResourceLocators(int index, ResourceLocator value)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuildersetResourceLocators(int index, ResourceLocator.Builder builderForValue)[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name.DiscoveryRequest.BuildersetResourceNames(int index, java.lang.String value)List of resources to subscribe to, e.g.DiscoveryRequest.BuildersetResponseNonce(java.lang.String value)nonce corresponding to DiscoveryResponse being ACK/NACKed.DiscoveryRequest.BuildersetResponseNonceBytes(com.google.protobuf.ByteString value)nonce corresponding to DiscoveryResponse being ACK/NACKed.DiscoveryRequest.BuildersetTypeUrl(java.lang.String value)Type of the resource that is being requested, e.g.DiscoveryRequest.BuildersetTypeUrlBytes(com.google.protobuf.ByteString value)Type of the resource that is being requested, e.g.DiscoveryRequest.BuildersetVersionInfo(java.lang.String value)The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request.DiscoveryRequest.BuildersetVersionInfoBytes(com.google.protobuf.ByteString value)The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request.-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
versionInfo_
private java.lang.Object versionInfo_
-
node_
private Node node_
-
nodeBuilder_
private com.google.protobuf.SingleFieldBuilder<Node,Node.Builder,NodeOrBuilder> nodeBuilder_
-
resourceNames_
private com.google.protobuf.LazyStringArrayList resourceNames_
-
resourceLocators_
private java.util.List<ResourceLocator> resourceLocators_
-
resourceLocatorsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<ResourceLocator,ResourceLocator.Builder,ResourceLocatorOrBuilder> resourceLocatorsBuilder_
-
typeUrl_
private java.lang.Object typeUrl_
-
responseNonce_
private java.lang.Object responseNonce_
-
errorDetail_
private com.google.rpc.Status errorDetail_
-
errorDetailBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder> errorDetailBuilder_
-
-
Method Detail
-
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<DiscoveryRequest.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public DiscoveryRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryRequest.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<DiscoveryRequest.Builder>
-
getDefaultInstanceForType
public DiscoveryRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DiscoveryRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DiscoveryRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(DiscoveryRequest result)
-
buildPartial0
private void buildPartial0(DiscoveryRequest result)
-
mergeFrom
public DiscoveryRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryRequest.Builder>
-
mergeFrom
public DiscoveryRequest.Builder mergeFrom(DiscoveryRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryRequest.Builder>
-
mergeFrom
public DiscoveryRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryRequest.Builder>- Throws:
java.io.IOException
-
getVersionInfo
public java.lang.String getVersionInfo()
The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request. It is expected that no new request is sent after a response is received until the Envoy instance is ready to ACK/NACK the new configuration. ACK/NACK takes place by returning the new API config version as applied or the previous API config version respectively. Each type_url (see below) has an independent version associated with it.
string version_info = 1;- Specified by:
getVersionInfoin interfaceDiscoveryRequestOrBuilder- Returns:
- The versionInfo.
-
getVersionInfoBytes
public com.google.protobuf.ByteString getVersionInfoBytes()
The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request. It is expected that no new request is sent after a response is received until the Envoy instance is ready to ACK/NACK the new configuration. ACK/NACK takes place by returning the new API config version as applied or the previous API config version respectively. Each type_url (see below) has an independent version associated with it.
string version_info = 1;- Specified by:
getVersionInfoBytesin interfaceDiscoveryRequestOrBuilder- Returns:
- The bytes for versionInfo.
-
setVersionInfo
public DiscoveryRequest.Builder setVersionInfo(java.lang.String value)
The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request. It is expected that no new request is sent after a response is received until the Envoy instance is ready to ACK/NACK the new configuration. ACK/NACK takes place by returning the new API config version as applied or the previous API config version respectively. Each type_url (see below) has an independent version associated with it.
string version_info = 1;- Parameters:
value- The versionInfo to set.- Returns:
- This builder for chaining.
-
clearVersionInfo
public DiscoveryRequest.Builder clearVersionInfo()
The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request. It is expected that no new request is sent after a response is received until the Envoy instance is ready to ACK/NACK the new configuration. ACK/NACK takes place by returning the new API config version as applied or the previous API config version respectively. Each type_url (see below) has an independent version associated with it.
string version_info = 1;- Returns:
- This builder for chaining.
-
setVersionInfoBytes
public DiscoveryRequest.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
The version_info provided in the request messages will be the version_info received with the most recent successfully processed response or empty on the first request. It is expected that no new request is sent after a response is received until the Envoy instance is ready to ACK/NACK the new configuration. ACK/NACK takes place by returning the new API config version as applied or the previous API config version respectively. Each type_url (see below) has an independent version associated with it.
string version_info = 1;- Parameters:
value- The bytes for versionInfo to set.- Returns:
- This builder for chaining.
-
hasNode
public boolean hasNode()
The node making the request.
.envoy.config.core.v3.Node node = 2;- Specified by:
hasNodein interfaceDiscoveryRequestOrBuilder- Returns:
- Whether the node field is set.
-
getNode
public Node getNode()
The node making the request.
.envoy.config.core.v3.Node node = 2;- Specified by:
getNodein interfaceDiscoveryRequestOrBuilder- Returns:
- The node.
-
setNode
public DiscoveryRequest.Builder setNode(Node value)
The node making the request.
.envoy.config.core.v3.Node node = 2;
-
setNode
public DiscoveryRequest.Builder setNode(Node.Builder builderForValue)
The node making the request.
.envoy.config.core.v3.Node node = 2;
-
mergeNode
public DiscoveryRequest.Builder mergeNode(Node value)
The node making the request.
.envoy.config.core.v3.Node node = 2;
-
clearNode
public DiscoveryRequest.Builder clearNode()
The node making the request.
.envoy.config.core.v3.Node node = 2;
-
getNodeBuilder
public Node.Builder getNodeBuilder()
The node making the request.
.envoy.config.core.v3.Node node = 2;
-
getNodeOrBuilder
public NodeOrBuilder getNodeOrBuilder()
The node making the request.
.envoy.config.core.v3.Node node = 2;- Specified by:
getNodeOrBuilderin interfaceDiscoveryRequestOrBuilder
-
getNodeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Node,Node.Builder,NodeOrBuilder> getNodeFieldBuilder()
The node making the request.
.envoy.config.core.v3.Node node = 2;
-
ensureResourceNamesIsMutable
private void ensureResourceNamesIsMutable()
-
getResourceNamesList
public com.google.protobuf.ProtocolStringList getResourceNamesList()
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Specified by:
getResourceNamesListin interfaceDiscoveryRequestOrBuilder- Returns:
- A list containing the resourceNames.
-
getResourceNamesCount
public int getResourceNamesCount()
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Specified by:
getResourceNamesCountin interfaceDiscoveryRequestOrBuilder- Returns:
- The count of resourceNames.
-
getResourceNames
public java.lang.String getResourceNames(int index)
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Specified by:
getResourceNamesin interfaceDiscoveryRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resourceNames at the given index.
-
getResourceNamesBytes
public com.google.protobuf.ByteString getResourceNamesBytes(int index)
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Specified by:
getResourceNamesBytesin interfaceDiscoveryRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourceNames at the given index.
-
setResourceNames
public DiscoveryRequest.Builder setResourceNames(int index, java.lang.String value)
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Parameters:
index- The index to set the value at.value- The resourceNames to set.- Returns:
- This builder for chaining.
-
addResourceNames
public DiscoveryRequest.Builder addResourceNames(java.lang.String value)
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Parameters:
value- The resourceNames to add.- Returns:
- This builder for chaining.
-
addAllResourceNames
public DiscoveryRequest.Builder addAllResourceNames(java.lang.Iterable<java.lang.String> values)
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Parameters:
values- The resourceNames to add.- Returns:
- This builder for chaining.
-
clearResourceNames
public DiscoveryRequest.Builder clearResourceNames()
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Returns:
- This builder for chaining.
-
addResourceNamesBytes
public DiscoveryRequest.Builder addResourceNamesBytes(com.google.protobuf.ByteString value)
List of resources to subscribe to, e.g. list of cluster names or a route configuration name. If this is empty, all resources for the API are returned. LDS/CDS may have empty resource_names, which will cause all resources for the Envoy instance to be returned. The LDS and CDS responses will then imply a number of resources that need to be fetched via EDS/RDS, which will be explicitly enumerated in resource_names.
repeated string resource_names = 3;- Parameters:
value- The bytes of the resourceNames to add.- Returns:
- This builder for chaining.
-
ensureResourceLocatorsIsMutable
private void ensureResourceLocatorsIsMutable()
-
getResourceLocatorsList
public java.util.List<ResourceLocator> getResourceLocatorsList()
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;- Specified by:
getResourceLocatorsListin interfaceDiscoveryRequestOrBuilder
-
getResourceLocatorsCount
public int getResourceLocatorsCount()
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;- Specified by:
getResourceLocatorsCountin interfaceDiscoveryRequestOrBuilder
-
getResourceLocators
public ResourceLocator getResourceLocators(int index)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;- Specified by:
getResourceLocatorsin interfaceDiscoveryRequestOrBuilder
-
setResourceLocators
public DiscoveryRequest.Builder setResourceLocators(int index, ResourceLocator value)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
setResourceLocators
public DiscoveryRequest.Builder setResourceLocators(int index, ResourceLocator.Builder builderForValue)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
addResourceLocators
public DiscoveryRequest.Builder addResourceLocators(ResourceLocator value)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
addResourceLocators
public DiscoveryRequest.Builder addResourceLocators(int index, ResourceLocator value)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
addResourceLocators
public DiscoveryRequest.Builder addResourceLocators(ResourceLocator.Builder builderForValue)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
addResourceLocators
public DiscoveryRequest.Builder addResourceLocators(int index, ResourceLocator.Builder builderForValue)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
addAllResourceLocators
public DiscoveryRequest.Builder addAllResourceLocators(java.lang.Iterable<? extends ResourceLocator> values)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
clearResourceLocators
public DiscoveryRequest.Builder clearResourceLocators()
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
removeResourceLocators
public DiscoveryRequest.Builder removeResourceLocators(int index)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
getResourceLocatorsBuilder
public ResourceLocator.Builder getResourceLocatorsBuilder(int index)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
getResourceLocatorsOrBuilder
public ResourceLocatorOrBuilder getResourceLocatorsOrBuilder(int index)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;- Specified by:
getResourceLocatorsOrBuilderin interfaceDiscoveryRequestOrBuilder
-
getResourceLocatorsOrBuilderList
public java.util.List<? extends ResourceLocatorOrBuilder> getResourceLocatorsOrBuilderList()
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;- Specified by:
getResourceLocatorsOrBuilderListin interfaceDiscoveryRequestOrBuilder
-
addResourceLocatorsBuilder
public ResourceLocator.Builder addResourceLocatorsBuilder()
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
addResourceLocatorsBuilder
public ResourceLocator.Builder addResourceLocatorsBuilder(int index)
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
getResourceLocatorsBuilderList
public java.util.List<ResourceLocator.Builder> getResourceLocatorsBuilderList()
[#not-implemented-hide:] Alternative to ``resource_names`` field that allows specifying dynamic parameters along with each resource name. Clients that populate this field must be able to handle responses from the server where resources are wrapped in a Resource message. Note that it is legal for a request to have some resources listed in ``resource_names`` and others in ``resource_locators``.
repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
-
getResourceLocatorsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<ResourceLocator,ResourceLocator.Builder,ResourceLocatorOrBuilder> getResourceLocatorsFieldBuilder()
-
getTypeUrl
public java.lang.String getTypeUrl()
Type of the resource that is being requested, e.g. "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit in requests made via singleton xDS APIs such as CDS, LDS, etc. but is required for ADS.
string type_url = 4;- Specified by:
getTypeUrlin interfaceDiscoveryRequestOrBuilder- Returns:
- The typeUrl.
-
getTypeUrlBytes
public com.google.protobuf.ByteString getTypeUrlBytes()
Type of the resource that is being requested, e.g. "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit in requests made via singleton xDS APIs such as CDS, LDS, etc. but is required for ADS.
string type_url = 4;- Specified by:
getTypeUrlBytesin interfaceDiscoveryRequestOrBuilder- Returns:
- The bytes for typeUrl.
-
setTypeUrl
public DiscoveryRequest.Builder setTypeUrl(java.lang.String value)
Type of the resource that is being requested, e.g. "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit in requests made via singleton xDS APIs such as CDS, LDS, etc. but is required for ADS.
string type_url = 4;- Parameters:
value- The typeUrl to set.- Returns:
- This builder for chaining.
-
clearTypeUrl
public DiscoveryRequest.Builder clearTypeUrl()
Type of the resource that is being requested, e.g. "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit in requests made via singleton xDS APIs such as CDS, LDS, etc. but is required for ADS.
string type_url = 4;- Returns:
- This builder for chaining.
-
setTypeUrlBytes
public DiscoveryRequest.Builder setTypeUrlBytes(com.google.protobuf.ByteString value)
Type of the resource that is being requested, e.g. "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit in requests made via singleton xDS APIs such as CDS, LDS, etc. but is required for ADS.
string type_url = 4;- Parameters:
value- The bytes for typeUrl to set.- Returns:
- This builder for chaining.
-
getResponseNonce
public java.lang.String getResponseNonce()
nonce corresponding to DiscoveryResponse being ACK/NACKed. See above discussion on version_info and the DiscoveryResponse nonce comment. This may be empty only if 1) this is a non-persistent-stream xDS such as HTTP, or 2) the client has not yet accepted an update in this xDS stream (unlike delta, where it is populated only for new explicit ACKs).
string response_nonce = 5;- Specified by:
getResponseNoncein interfaceDiscoveryRequestOrBuilder- Returns:
- The responseNonce.
-
getResponseNonceBytes
public com.google.protobuf.ByteString getResponseNonceBytes()
nonce corresponding to DiscoveryResponse being ACK/NACKed. See above discussion on version_info and the DiscoveryResponse nonce comment. This may be empty only if 1) this is a non-persistent-stream xDS such as HTTP, or 2) the client has not yet accepted an update in this xDS stream (unlike delta, where it is populated only for new explicit ACKs).
string response_nonce = 5;- Specified by:
getResponseNonceBytesin interfaceDiscoveryRequestOrBuilder- Returns:
- The bytes for responseNonce.
-
setResponseNonce
public DiscoveryRequest.Builder setResponseNonce(java.lang.String value)
nonce corresponding to DiscoveryResponse being ACK/NACKed. See above discussion on version_info and the DiscoveryResponse nonce comment. This may be empty only if 1) this is a non-persistent-stream xDS such as HTTP, or 2) the client has not yet accepted an update in this xDS stream (unlike delta, where it is populated only for new explicit ACKs).
string response_nonce = 5;- Parameters:
value- The responseNonce to set.- Returns:
- This builder for chaining.
-
clearResponseNonce
public DiscoveryRequest.Builder clearResponseNonce()
nonce corresponding to DiscoveryResponse being ACK/NACKed. See above discussion on version_info and the DiscoveryResponse nonce comment. This may be empty only if 1) this is a non-persistent-stream xDS such as HTTP, or 2) the client has not yet accepted an update in this xDS stream (unlike delta, where it is populated only for new explicit ACKs).
string response_nonce = 5;- Returns:
- This builder for chaining.
-
setResponseNonceBytes
public DiscoveryRequest.Builder setResponseNonceBytes(com.google.protobuf.ByteString value)
nonce corresponding to DiscoveryResponse being ACK/NACKed. See above discussion on version_info and the DiscoveryResponse nonce comment. This may be empty only if 1) this is a non-persistent-stream xDS such as HTTP, or 2) the client has not yet accepted an update in this xDS stream (unlike delta, where it is populated only for new explicit ACKs).
string response_nonce = 5;- Parameters:
value- The bytes for responseNonce to set.- Returns:
- This builder for chaining.
-
hasErrorDetail
public boolean hasErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;- Specified by:
hasErrorDetailin interfaceDiscoveryRequestOrBuilder- Returns:
- Whether the errorDetail field is set.
-
getErrorDetail
public com.google.rpc.Status getErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;- Specified by:
getErrorDetailin interfaceDiscoveryRequestOrBuilder- Returns:
- The errorDetail.
-
setErrorDetail
public DiscoveryRequest.Builder setErrorDetail(com.google.rpc.Status value)
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;
-
setErrorDetail
public DiscoveryRequest.Builder setErrorDetail(com.google.rpc.Status.Builder builderForValue)
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;
-
mergeErrorDetail
public DiscoveryRequest.Builder mergeErrorDetail(com.google.rpc.Status value)
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;
-
clearErrorDetail
public DiscoveryRequest.Builder clearErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;
-
getErrorDetailBuilder
public com.google.rpc.Status.Builder getErrorDetailBuilder()
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;
-
getErrorDetailOrBuilder
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder()
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;- Specified by:
getErrorDetailOrBuilderin interfaceDiscoveryRequestOrBuilder
-
getErrorDetailFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder> getErrorDetailFieldBuilder()
This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.DiscoveryResponse>` failed to update configuration. The ``message`` field in ``error_details`` provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;
-
-