public static final class DiscoveryResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder> implements DiscoveryResponseOrBuilder
[#next-free-field: 7]Protobuf type
envoy.service.discovery.v4alpha.DiscoveryResponse| Modifier and Type | Method and Description |
|---|---|
DiscoveryResponse.Builder |
addAllResources(Iterable<? extends com.google.protobuf.Any> values)
The response resources.
|
DiscoveryResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DiscoveryResponse.Builder |
addResources(com.google.protobuf.Any.Builder builderForValue)
The response resources.
|
DiscoveryResponse.Builder |
addResources(com.google.protobuf.Any value)
The response resources.
|
DiscoveryResponse.Builder |
addResources(int index,
com.google.protobuf.Any.Builder builderForValue)
The response resources.
|
DiscoveryResponse.Builder |
addResources(int index,
com.google.protobuf.Any value)
The response resources.
|
com.google.protobuf.Any.Builder |
addResourcesBuilder()
The response resources.
|
com.google.protobuf.Any.Builder |
addResourcesBuilder(int index)
The response resources.
|
DiscoveryResponse |
build() |
DiscoveryResponse |
buildPartial() |
DiscoveryResponse.Builder |
clear() |
DiscoveryResponse.Builder |
clearCanary()
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
DiscoveryResponse.Builder |
clearControlPlane()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
DiscoveryResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DiscoveryResponse.Builder |
clearNonce()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
DiscoveryResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DiscoveryResponse.Builder |
clearResources()
The response resources.
|
DiscoveryResponse.Builder |
clearTypeUrl()
Type URL for resources.
|
DiscoveryResponse.Builder |
clearVersionInfo()
The version of the response data.
|
DiscoveryResponse.Builder |
clone() |
boolean |
getCanary()
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
ControlPlane |
getControlPlane()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
ControlPlane.Builder |
getControlPlaneBuilder()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
ControlPlaneOrBuilder |
getControlPlaneOrBuilder()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
DiscoveryResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getNonce()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
com.google.protobuf.ByteString |
getNonceBytes()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
com.google.protobuf.Any |
getResources(int index)
The response resources.
|
com.google.protobuf.Any.Builder |
getResourcesBuilder(int index)
The response resources.
|
List<com.google.protobuf.Any.Builder> |
getResourcesBuilderList()
The response resources.
|
int |
getResourcesCount()
The response resources.
|
List<com.google.protobuf.Any> |
getResourcesList()
The response resources.
|
com.google.protobuf.AnyOrBuilder |
getResourcesOrBuilder(int index)
The response resources.
|
List<? extends com.google.protobuf.AnyOrBuilder> |
getResourcesOrBuilderList()
The response resources.
|
String |
getTypeUrl()
Type URL for resources.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Type URL for resources.
|
String |
getVersionInfo()
The version of the response data.
|
com.google.protobuf.ByteString |
getVersionInfoBytes()
The version of the response data.
|
boolean |
hasControlPlane()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DiscoveryResponse.Builder |
mergeControlPlane(ControlPlane value)
[#not-implemented-hide:]
The control plane instance that sent the response.
|
DiscoveryResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DiscoveryResponse.Builder |
mergeFrom(DiscoveryResponse other) |
DiscoveryResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
DiscoveryResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DiscoveryResponse.Builder |
removeResources(int index)
The response resources.
|
DiscoveryResponse.Builder |
setCanary(boolean value)
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
DiscoveryResponse.Builder |
setControlPlane(ControlPlane.Builder builderForValue)
[#not-implemented-hide:]
The control plane instance that sent the response.
|
DiscoveryResponse.Builder |
setControlPlane(ControlPlane value)
[#not-implemented-hide:]
The control plane instance that sent the response.
|
DiscoveryResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DiscoveryResponse.Builder |
setNonce(String value)
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
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.
|
DiscoveryResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DiscoveryResponse.Builder |
setResources(int index,
com.google.protobuf.Any.Builder builderForValue)
The response resources.
|
DiscoveryResponse.Builder |
setResources(int index,
com.google.protobuf.Any value)
The response resources.
|
DiscoveryResponse.Builder |
setTypeUrl(String value)
Type URL for resources.
|
DiscoveryResponse.Builder |
setTypeUrlBytes(com.google.protobuf.ByteString value)
Type URL for resources.
|
DiscoveryResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DiscoveryResponse.Builder |
setVersionInfo(String value)
The version of the response data.
|
DiscoveryResponse.Builder |
setVersionInfoBytes(com.google.protobuf.ByteString value)
The version of the response data.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DiscoveryResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DiscoveryResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DiscoveryResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder mergeFrom(DiscoveryResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public DiscoveryResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryResponse.Builder>IOExceptionpublic String getVersionInfo()
The version of the response data.
string version_info = 1;getVersionInfo in interface DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getVersionInfoBytes()
The version of the response data.
string version_info = 1;getVersionInfoBytes in interface DiscoveryResponseOrBuilderpublic DiscoveryResponse.Builder setVersionInfo(String value)
The version of the response data.
string version_info = 1;public DiscoveryResponse.Builder clearVersionInfo()
The version of the response data.
string version_info = 1;public DiscoveryResponse.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
The version of the response data.
string version_info = 1;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;getResourcesList in interface DiscoveryResponseOrBuilderpublic int getResourcesCount()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;getResourcesCount in interface DiscoveryResponseOrBuilderpublic 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;getResources in interface DiscoveryResponseOrBuilderpublic 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;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;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;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;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;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;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;public DiscoveryResponse.Builder clearResources()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;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;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;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;getResourcesOrBuilder in interface DiscoveryResponseOrBuilderpublic 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;getResourcesOrBuilderList in interface DiscoveryResponseOrBuilderpublic 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;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;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;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;getCanary in interface DiscoveryResponseOrBuilderpublic 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;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;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;getTypeUrl in interface DiscoveryResponseOrBuilderpublic 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;getTypeUrlBytes in interface DiscoveryResponseOrBuilderpublic 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;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;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;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;getNonce in interface DiscoveryResponseOrBuilderpublic 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;getNonceBytes in interface DiscoveryResponseOrBuilderpublic 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;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;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;public boolean hasControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;hasControlPlane in interface DiscoveryResponseOrBuilderpublic ControlPlane getControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;getControlPlane in interface DiscoveryResponseOrBuilderpublic DiscoveryResponse.Builder setControlPlane(ControlPlane value)
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;public DiscoveryResponse.Builder setControlPlane(ControlPlane.Builder builderForValue)
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;public DiscoveryResponse.Builder mergeControlPlane(ControlPlane value)
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;public DiscoveryResponse.Builder clearControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;public ControlPlane.Builder getControlPlaneBuilder()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;public ControlPlaneOrBuilder getControlPlaneOrBuilder()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.config.core.v4alpha.ControlPlane control_plane = 6;getControlPlaneOrBuilder in interface DiscoveryResponseOrBuilderpublic final DiscoveryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>public final DiscoveryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryResponse.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.