public static final class Discovery.DiscoveryResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Discovery.DiscoveryResponse.Builder> implements Discovery.DiscoveryResponseOrBuilder
envoy.api.v2.DiscoveryResponse| Modifier and Type | Method and Description |
|---|---|
Discovery.DiscoveryResponse.Builder |
addAllResources(Iterable<? extends com.google.protobuf.Any> values)
The response resources.
|
Discovery.DiscoveryResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Discovery.DiscoveryResponse.Builder |
addResources(com.google.protobuf.Any.Builder builderForValue)
The response resources.
|
Discovery.DiscoveryResponse.Builder |
addResources(com.google.protobuf.Any value)
The response resources.
|
Discovery.DiscoveryResponse.Builder |
addResources(int index,
com.google.protobuf.Any.Builder builderForValue)
The response resources.
|
Discovery.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.
|
Discovery.DiscoveryResponse |
build() |
Discovery.DiscoveryResponse |
buildPartial() |
Discovery.DiscoveryResponse.Builder |
clear() |
Discovery.DiscoveryResponse.Builder |
clearCanary()
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
Discovery.DiscoveryResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Discovery.DiscoveryResponse.Builder |
clearNonce()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
Discovery.DiscoveryResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Discovery.DiscoveryResponse.Builder |
clearResources()
The response resources.
|
Discovery.DiscoveryResponse.Builder |
clearTypeUrl()
Type URL for resources.
|
Discovery.DiscoveryResponse.Builder |
clearVersionInfo()
The version of the response data.
|
Discovery.DiscoveryResponse.Builder |
clone() |
boolean |
getCanary()
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
Discovery.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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Discovery.DiscoveryResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Discovery.DiscoveryResponse.Builder |
mergeFrom(Discovery.DiscoveryResponse other) |
Discovery.DiscoveryResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
Discovery.DiscoveryResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Discovery.DiscoveryResponse.Builder |
removeResources(int index)
The response resources.
|
Discovery.DiscoveryResponse.Builder |
setCanary(boolean value)
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
Discovery.DiscoveryResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Discovery.DiscoveryResponse.Builder |
setNonce(String value)
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
Discovery.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.
|
Discovery.DiscoveryResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Discovery.DiscoveryResponse.Builder |
setResources(int index,
com.google.protobuf.Any.Builder builderForValue)
The response resources.
|
Discovery.DiscoveryResponse.Builder |
setResources(int index,
com.google.protobuf.Any value)
The response resources.
|
Discovery.DiscoveryResponse.Builder |
setTypeUrl(String value)
Type URL for resources.
|
Discovery.DiscoveryResponse.Builder |
setTypeUrlBytes(com.google.protobuf.ByteString value)
Type URL for resources.
|
Discovery.DiscoveryResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Discovery.DiscoveryResponse.Builder |
setVersionInfo(String value)
The version of the response data.
|
Discovery.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<Discovery.DiscoveryResponse.Builder>public Discovery.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<Discovery.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<Discovery.DiscoveryResponse.Builder>public Discovery.DiscoveryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Discovery.DiscoveryResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Discovery.DiscoveryResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Discovery.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<Discovery.DiscoveryResponse.Builder>public Discovery.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<Discovery.DiscoveryResponse.Builder>public Discovery.DiscoveryResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Discovery.DiscoveryResponse.Builder>public Discovery.DiscoveryResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Discovery.DiscoveryResponse.Builder>public Discovery.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<Discovery.DiscoveryResponse.Builder>public Discovery.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<Discovery.DiscoveryResponse.Builder>public Discovery.DiscoveryResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Discovery.DiscoveryResponse.Builder>public Discovery.DiscoveryResponse.Builder mergeFrom(Discovery.DiscoveryResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Discovery.DiscoveryResponse.Builder>public Discovery.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<Discovery.DiscoveryResponse.Builder>IOExceptionpublic String getVersionInfo()
The version of the response data.
string version_info = 1;getVersionInfo in interface Discovery.DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getVersionInfoBytes()
The version of the response data.
string version_info = 1;getVersionInfoBytes in interface Discovery.DiscoveryResponseOrBuilderpublic Discovery.DiscoveryResponse.Builder setVersionInfo(String value)
The version of the response data.
string version_info = 1;public Discovery.DiscoveryResponse.Builder clearVersionInfo()
The version of the response data.
string version_info = 1;public Discovery.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 [(.gogoproto.nullable) = false];getResourcesList in interface Discovery.DiscoveryResponseOrBuilderpublic int getResourcesCount()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2 [(.gogoproto.nullable) = false];getResourcesCount in interface Discovery.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 [(.gogoproto.nullable) = false];getResources in interface Discovery.DiscoveryResponseOrBuilderpublic Discovery.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 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];public Discovery.DiscoveryResponse.Builder clearResources()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2 [(.gogoproto.nullable) = false];public Discovery.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 [(.gogoproto.nullable) = false];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 [(.gogoproto.nullable) = false];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 [(.gogoproto.nullable) = false];getResourcesOrBuilder in interface Discovery.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 [(.gogoproto.nullable) = false];getResourcesOrBuilderList in interface Discovery.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 [(.gogoproto.nullable) = false];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 [(.gogoproto.nullable) = false];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 [(.gogoproto.nullable) = false];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 Discovery.DiscoveryResponseOrBuilderpublic Discovery.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 Discovery.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. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
string type_url = 4;getTypeUrl in interface Discovery.DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
Type URL for resources. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
string type_url = 4;getTypeUrlBytes in interface Discovery.DiscoveryResponseOrBuilderpublic Discovery.DiscoveryResponse.Builder setTypeUrl(String value)
Type URL for resources. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
string type_url = 4;public Discovery.DiscoveryResponse.Builder clearTypeUrl()
Type URL for resources. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
string type_url = 4;public Discovery.DiscoveryResponse.Builder setTypeUrlBytes(com.google.protobuf.ByteString value)
Type URL for resources. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
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 Discovery.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 Discovery.DiscoveryResponseOrBuilderpublic Discovery.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 Discovery.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 Discovery.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 final Discovery.DiscoveryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Discovery.DiscoveryResponse.Builder>public final Discovery.DiscoveryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Discovery.DiscoveryResponse.Builder>Copyright © 2018 The Envoy Project. All rights reserved.