Class DiscoveryResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DiscoveryResponse.Builder> implements DiscoveryResponseOrBuilder
[#next-free-field: 7]
Protobuf typeenvoy.service.discovery.v3.DiscoveryResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscoveryResponse.BuilderaddAllResources(Iterable<? extends com.google.protobuf.Any> values)The response resources.DiscoveryResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DiscoveryResponse.BuilderaddResources(int index, com.google.protobuf.Any value)The response resources.DiscoveryResponse.BuilderaddResources(int index, com.google.protobuf.Any.Builder builderForValue)The response resources.DiscoveryResponse.BuilderaddResources(com.google.protobuf.Any value)The response resources.DiscoveryResponse.BuilderaddResources(com.google.protobuf.Any.Builder builderForValue)The response resources.com.google.protobuf.Any.BuilderaddResourcesBuilder()The response resources.com.google.protobuf.Any.BuilderaddResourcesBuilder(int index)The response resources.DiscoveryResponsebuild()DiscoveryResponsebuildPartial()DiscoveryResponse.Builderclear()DiscoveryResponse.BuilderclearCanary()[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.DiscoveryResponse.BuilderclearControlPlane()The control plane instance that sent the response.DiscoveryResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DiscoveryResponse.BuilderclearNonce()For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.DiscoveryResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DiscoveryResponse.BuilderclearResources()The response resources.DiscoveryResponse.BuilderclearTypeUrl()Type URL for resources.DiscoveryResponse.BuilderclearVersionInfo()The version of the response data.DiscoveryResponse.Builderclone()booleangetCanary()[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.ControlPlanegetControlPlane()The control plane instance that sent the response.ControlPlane.BuildergetControlPlaneBuilder()The control plane instance that sent the response.ControlPlaneOrBuildergetControlPlaneOrBuilder()The control plane instance that sent the response.DiscoveryResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNonce()For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.com.google.protobuf.ByteStringgetNonceBytes()For 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>getResourcesBuilderList()The response resources.intgetResourcesCount()The response resources.List<com.google.protobuf.Any>getResourcesList()The response resources.com.google.protobuf.AnyOrBuildergetResourcesOrBuilder(int index)The response resources.List<? extends com.google.protobuf.AnyOrBuilder>getResourcesOrBuilderList()The response resources.StringgetTypeUrl()Type URL for resources.com.google.protobuf.ByteStringgetTypeUrlBytes()Type URL for resources.StringgetVersionInfo()The version of the response data.com.google.protobuf.ByteStringgetVersionInfoBytes()The version of the response data.booleanhasControlPlane()The control plane instance that sent the response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DiscoveryResponse.BuildermergeControlPlane(ControlPlane value)The control plane instance that sent the response.DiscoveryResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DiscoveryResponse.BuildermergeFrom(com.google.protobuf.Message other)DiscoveryResponse.BuildermergeFrom(DiscoveryResponse other)DiscoveryResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DiscoveryResponse.BuilderremoveResources(int index)The response resources.DiscoveryResponse.BuildersetCanary(boolean value)[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.DiscoveryResponse.BuildersetControlPlane(ControlPlane value)The control plane instance that sent the response.DiscoveryResponse.BuildersetControlPlane(ControlPlane.Builder builderForValue)The control plane instance that sent the response.DiscoveryResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DiscoveryResponse.BuildersetNonce(String value)For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.DiscoveryResponse.BuildersetNonceBytes(com.google.protobuf.ByteString value)For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.DiscoveryResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DiscoveryResponse.BuildersetResources(int index, com.google.protobuf.Any value)The response resources.DiscoveryResponse.BuildersetResources(int index, com.google.protobuf.Any.Builder builderForValue)The response resources.DiscoveryResponse.BuildersetTypeUrl(String value)Type URL for resources.DiscoveryResponse.BuildersetTypeUrlBytes(com.google.protobuf.ByteString value)Type URL for resources.DiscoveryResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DiscoveryResponse.BuildersetVersionInfo(String value)The version of the response data.DiscoveryResponse.BuildersetVersionInfoBytes(com.google.protobuf.ByteString value)The version of the response data.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
clear
public DiscoveryResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
getDefaultInstanceForType
public DiscoveryResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DiscoveryResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DiscoveryResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DiscoveryResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
setField
public DiscoveryResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
clearField
public DiscoveryResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
clearOneof
public DiscoveryResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
setRepeatedField
public DiscoveryResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
addRepeatedField
public DiscoveryResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
mergeFrom
public DiscoveryResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryResponse.Builder>
-
mergeFrom
public DiscoveryResponse.Builder mergeFrom(DiscoveryResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public DiscoveryResponse.Builder setVersionInfo(String value)
The version of the response data.
string version_info = 1;- Parameters:
value- The versionInfo to set.- Returns:
- This builder for chaining.
-
clearVersionInfo
public DiscoveryResponse.Builder clearVersionInfo()
The version of the response data.
string version_info = 1;- Returns:
- This builder for chaining.
-
setVersionInfoBytes
public DiscoveryResponse.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
The version of the response data.
string version_info = 1;- Parameters:
value- The bytes for versionInfo to set.- Returns:
- This builder for chaining.
-
getResourcesList
public List<com.google.protobuf.Any> 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
public DiscoveryResponse.Builder setResources(int index, com.google.protobuf.Any value)
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
public DiscoveryResponse.Builder addResources(com.google.protobuf.Any value)
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 value)
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(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
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
public DiscoveryResponse.Builder clearResources()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;
-
removeResources
public DiscoveryResponse.Builder removeResources(int index)
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
public List<? extends com.google.protobuf.AnyOrBuilder> 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
public List<com.google.protobuf.Any.Builder> getResourcesBuilderList()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;
-
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
public DiscoveryResponse.Builder setCanary(boolean value)
[#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
public DiscoveryResponse.Builder 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
public String 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
public DiscoveryResponse.Builder setTypeUrl(String value)
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
public DiscoveryResponse.Builder 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
public DiscoveryResponse.Builder setTypeUrlBytes(com.google.protobuf.ByteString value)
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
public String 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
public DiscoveryResponse.Builder setNonce(String value)
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
public DiscoveryResponse.Builder 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
public DiscoveryResponse.Builder 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. 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
public ControlPlane 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
public DiscoveryResponse.Builder setControlPlane(ControlPlane value)
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
-
setControlPlane
public DiscoveryResponse.Builder setControlPlane(ControlPlane.Builder builderForValue)
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
-
mergeControlPlane
public DiscoveryResponse.Builder mergeControlPlane(ControlPlane value)
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
-
clearControlPlane
public DiscoveryResponse.Builder clearControlPlane()
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
-
getControlPlaneBuilder
public ControlPlane.Builder getControlPlaneBuilder()
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
-
getControlPlaneOrBuilder
public ControlPlaneOrBuilder getControlPlaneOrBuilder()
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;- Specified by:
getControlPlaneOrBuilderin interfaceDiscoveryResponseOrBuilder
-
setUnknownFields
public final DiscoveryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
mergeUnknownFields
public final DiscoveryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>
-
-