Package io.envoyproxy.envoy.api.v2.core
Class ApiConfigSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder>
-
- io.envoyproxy.envoy.api.v2.core.ApiConfigSource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ApiConfigSourceOrBuilder,Cloneable
- Enclosing class:
- ApiConfigSource
public static final class ApiConfigSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder> implements ApiConfigSourceOrBuilder
API configuration source. This identifies the API type and cluster that Envoy will use to fetch an xDS API. [#next-free-field: 9]
Protobuf typeenvoy.api.v2.core.ApiConfigSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiConfigSource.BuilderaddAllClusterNames(Iterable<String> values)Cluster names should be used only with REST.ApiConfigSource.BuilderaddAllGrpcServices(Iterable<? extends GrpcService> values)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuilderaddClusterNames(String value)Cluster names should be used only with REST.ApiConfigSource.BuilderaddClusterNamesBytes(com.google.protobuf.ByteString value)Cluster names should be used only with REST.ApiConfigSource.BuilderaddGrpcServices(int index, GrpcService value)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuilderaddGrpcServices(int index, GrpcService.Builder builderForValue)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuilderaddGrpcServices(GrpcService value)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuilderaddGrpcServices(GrpcService.Builder builderForValue)Multiple gRPC services be provided for GRPC.GrpcService.BuilderaddGrpcServicesBuilder()Multiple gRPC services be provided for GRPC.GrpcService.BuilderaddGrpcServicesBuilder(int index)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ApiConfigSourcebuild()ApiConfigSourcebuildPartial()ApiConfigSource.Builderclear()ApiConfigSource.BuilderclearApiType()API type (gRPC, REST, delta gRPC)ApiConfigSource.BuilderclearClusterNames()Cluster names should be used only with REST.ApiConfigSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ApiConfigSource.BuilderclearGrpcServices()Multiple gRPC services be provided for GRPC.ApiConfigSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ApiConfigSource.BuilderclearRateLimitSettings()For GRPC APIs, the rate limit settings.ApiConfigSource.BuilderclearRefreshDelay()For REST APIs, the delay between successive polls.ApiConfigSource.BuilderclearRequestTimeout()For REST APIs, the request timeout.ApiConfigSource.BuilderclearSetNodeOnFirstMessageOnly()Skip the node identifier in subsequent discovery requests for streaming gRPC config types.ApiConfigSource.BuilderclearTransportApiVersion()API version for xDS transport protocol.ApiConfigSource.Builderclone()ApiConfigSource.ApiTypegetApiType()API type (gRPC, REST, delta gRPC)intgetApiTypeValue()API type (gRPC, REST, delta gRPC)StringgetClusterNames(int index)Cluster names should be used only with REST.com.google.protobuf.ByteStringgetClusterNamesBytes(int index)Cluster names should be used only with REST.intgetClusterNamesCount()Cluster names should be used only with REST.com.google.protobuf.ProtocolStringListgetClusterNamesList()Cluster names should be used only with REST.ApiConfigSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GrpcServicegetGrpcServices(int index)Multiple gRPC services be provided for GRPC.GrpcService.BuildergetGrpcServicesBuilder(int index)Multiple gRPC services be provided for GRPC.List<GrpcService.Builder>getGrpcServicesBuilderList()Multiple gRPC services be provided for GRPC.intgetGrpcServicesCount()Multiple gRPC services be provided for GRPC.List<GrpcService>getGrpcServicesList()Multiple gRPC services be provided for GRPC.GrpcServiceOrBuildergetGrpcServicesOrBuilder(int index)Multiple gRPC services be provided for GRPC.List<? extends GrpcServiceOrBuilder>getGrpcServicesOrBuilderList()Multiple gRPC services be provided for GRPC.RateLimitSettingsgetRateLimitSettings()For GRPC APIs, the rate limit settings.RateLimitSettings.BuildergetRateLimitSettingsBuilder()For GRPC APIs, the rate limit settings.RateLimitSettingsOrBuildergetRateLimitSettingsOrBuilder()For GRPC APIs, the rate limit settings.com.google.protobuf.DurationgetRefreshDelay()For REST APIs, the delay between successive polls.com.google.protobuf.Duration.BuildergetRefreshDelayBuilder()For REST APIs, the delay between successive polls.com.google.protobuf.DurationOrBuildergetRefreshDelayOrBuilder()For REST APIs, the delay between successive polls.com.google.protobuf.DurationgetRequestTimeout()For REST APIs, the request timeout.com.google.protobuf.Duration.BuildergetRequestTimeoutBuilder()For REST APIs, the request timeout.com.google.protobuf.DurationOrBuildergetRequestTimeoutOrBuilder()For REST APIs, the request timeout.booleangetSetNodeOnFirstMessageOnly()Skip the node identifier in subsequent discovery requests for streaming gRPC config types.ApiVersiongetTransportApiVersion()API version for xDS transport protocol.intgetTransportApiVersionValue()API version for xDS transport protocol.booleanhasRateLimitSettings()For GRPC APIs, the rate limit settings.booleanhasRefreshDelay()For REST APIs, the delay between successive polls.booleanhasRequestTimeout()For REST APIs, the request timeout.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ApiConfigSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ApiConfigSource.BuildermergeFrom(com.google.protobuf.Message other)ApiConfigSource.BuildermergeFrom(ApiConfigSource other)ApiConfigSource.BuildermergeRateLimitSettings(RateLimitSettings value)For GRPC APIs, the rate limit settings.ApiConfigSource.BuildermergeRefreshDelay(com.google.protobuf.Duration value)For REST APIs, the delay between successive polls.ApiConfigSource.BuildermergeRequestTimeout(com.google.protobuf.Duration value)For REST APIs, the request timeout.ApiConfigSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ApiConfigSource.BuilderremoveGrpcServices(int index)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuildersetApiType(ApiConfigSource.ApiType value)API type (gRPC, REST, delta gRPC)ApiConfigSource.BuildersetApiTypeValue(int value)API type (gRPC, REST, delta gRPC)ApiConfigSource.BuildersetClusterNames(int index, String value)Cluster names should be used only with REST.ApiConfigSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ApiConfigSource.BuildersetGrpcServices(int index, GrpcService value)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuildersetGrpcServices(int index, GrpcService.Builder builderForValue)Multiple gRPC services be provided for GRPC.ApiConfigSource.BuildersetRateLimitSettings(RateLimitSettings value)For GRPC APIs, the rate limit settings.ApiConfigSource.BuildersetRateLimitSettings(RateLimitSettings.Builder builderForValue)For GRPC APIs, the rate limit settings.ApiConfigSource.BuildersetRefreshDelay(com.google.protobuf.Duration value)For REST APIs, the delay between successive polls.ApiConfigSource.BuildersetRefreshDelay(com.google.protobuf.Duration.Builder builderForValue)For REST APIs, the delay between successive polls.ApiConfigSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ApiConfigSource.BuildersetRequestTimeout(com.google.protobuf.Duration value)For REST APIs, the request timeout.ApiConfigSource.BuildersetRequestTimeout(com.google.protobuf.Duration.Builder builderForValue)For REST APIs, the request timeout.ApiConfigSource.BuildersetSetNodeOnFirstMessageOnly(boolean value)Skip the node identifier in subsequent discovery requests for streaming gRPC config types.ApiConfigSource.BuildersetTransportApiVersion(ApiVersion value)API version for xDS transport protocol.ApiConfigSource.BuildersetTransportApiVersionValue(int value)API version for xDS transport protocol.ApiConfigSource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<ApiConfigSource.Builder>
-
clear
public ApiConfigSource.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<ApiConfigSource.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<ApiConfigSource.Builder>
-
getDefaultInstanceForType
public ApiConfigSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApiConfigSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApiConfigSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApiConfigSource.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<ApiConfigSource.Builder>
-
setField
public ApiConfigSource.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<ApiConfigSource.Builder>
-
clearField
public ApiConfigSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder>
-
clearOneof
public ApiConfigSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder>
-
setRepeatedField
public ApiConfigSource.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<ApiConfigSource.Builder>
-
addRepeatedField
public ApiConfigSource.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<ApiConfigSource.Builder>
-
mergeFrom
public ApiConfigSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiConfigSource.Builder>
-
mergeFrom
public ApiConfigSource.Builder mergeFrom(ApiConfigSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder>
-
mergeFrom
public ApiConfigSource.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<ApiConfigSource.Builder>- Throws:
IOException
-
getApiTypeValue
public int getApiTypeValue()
API type (gRPC, REST, delta gRPC)
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }- Specified by:
getApiTypeValuein interfaceApiConfigSourceOrBuilder- Returns:
- The enum numeric value on the wire for apiType.
-
setApiTypeValue
public ApiConfigSource.Builder setApiTypeValue(int value)
API type (gRPC, REST, delta gRPC)
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for apiType to set.- Returns:
- This builder for chaining.
-
getApiType
public ApiConfigSource.ApiType getApiType()
API type (gRPC, REST, delta gRPC)
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }- Specified by:
getApiTypein interfaceApiConfigSourceOrBuilder- Returns:
- The apiType.
-
setApiType
public ApiConfigSource.Builder setApiType(ApiConfigSource.ApiType value)
API type (gRPC, REST, delta gRPC)
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }- Parameters:
value- The apiType to set.- Returns:
- This builder for chaining.
-
clearApiType
public ApiConfigSource.Builder clearApiType()
API type (gRPC, REST, delta gRPC)
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getTransportApiVersionValue
public int getTransportApiVersionValue()
API version for xDS transport protocol. This describes the xDS gRPC/REST endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
.envoy.api.v2.core.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }- Specified by:
getTransportApiVersionValuein interfaceApiConfigSourceOrBuilder- Returns:
- The enum numeric value on the wire for transportApiVersion.
-
setTransportApiVersionValue
public ApiConfigSource.Builder setTransportApiVersionValue(int value)
API version for xDS transport protocol. This describes the xDS gRPC/REST endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
.envoy.api.v2.core.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for transportApiVersion to set.- Returns:
- This builder for chaining.
-
getTransportApiVersion
public ApiVersion getTransportApiVersion()
API version for xDS transport protocol. This describes the xDS gRPC/REST endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
.envoy.api.v2.core.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }- Specified by:
getTransportApiVersionin interfaceApiConfigSourceOrBuilder- Returns:
- The transportApiVersion.
-
setTransportApiVersion
public ApiConfigSource.Builder setTransportApiVersion(ApiVersion value)
API version for xDS transport protocol. This describes the xDS gRPC/REST endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
.envoy.api.v2.core.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }- Parameters:
value- The transportApiVersion to set.- Returns:
- This builder for chaining.
-
clearTransportApiVersion
public ApiConfigSource.Builder clearTransportApiVersion()
API version for xDS transport protocol. This describes the xDS gRPC/REST endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
.envoy.api.v2.core.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getClusterNamesList
public com.google.protobuf.ProtocolStringList getClusterNamesList()
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Specified by:
getClusterNamesListin interfaceApiConfigSourceOrBuilder- Returns:
- A list containing the clusterNames.
-
getClusterNamesCount
public int getClusterNamesCount()
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Specified by:
getClusterNamesCountin interfaceApiConfigSourceOrBuilder- Returns:
- The count of clusterNames.
-
getClusterNames
public String getClusterNames(int index)
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Specified by:
getClusterNamesin interfaceApiConfigSourceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The clusterNames at the given index.
-
getClusterNamesBytes
public com.google.protobuf.ByteString getClusterNamesBytes(int index)
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Specified by:
getClusterNamesBytesin interfaceApiConfigSourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the clusterNames at the given index.
-
setClusterNames
public ApiConfigSource.Builder setClusterNames(int index, String value)
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Parameters:
index- The index to set the value at.value- The clusterNames to set.- Returns:
- This builder for chaining.
-
addClusterNames
public ApiConfigSource.Builder addClusterNames(String value)
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Parameters:
value- The clusterNames to add.- Returns:
- This builder for chaining.
-
addAllClusterNames
public ApiConfigSource.Builder addAllClusterNames(Iterable<String> values)
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Parameters:
values- The clusterNames to add.- Returns:
- This builder for chaining.
-
clearClusterNames
public ApiConfigSource.Builder clearClusterNames()
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Returns:
- This builder for chaining.
-
addClusterNamesBytes
public ApiConfigSource.Builder addClusterNamesBytes(com.google.protobuf.ByteString value)
Cluster names should be used only with REST. If > 1 cluster is defined, clusters will be cycled through if any kind of failure occurs. .. note:: The cluster with name ``cluster_name`` must be statically defined and its type must not be ``EDS``.
repeated string cluster_names = 2;- Parameters:
value- The bytes of the clusterNames to add.- Returns:
- This builder for chaining.
-
getGrpcServicesList
public List<GrpcService> getGrpcServicesList()
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;- Specified by:
getGrpcServicesListin interfaceApiConfigSourceOrBuilder
-
getGrpcServicesCount
public int getGrpcServicesCount()
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;- Specified by:
getGrpcServicesCountin interfaceApiConfigSourceOrBuilder
-
getGrpcServices
public GrpcService getGrpcServices(int index)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;- Specified by:
getGrpcServicesin interfaceApiConfigSourceOrBuilder
-
setGrpcServices
public ApiConfigSource.Builder setGrpcServices(int index, GrpcService value)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
setGrpcServices
public ApiConfigSource.Builder setGrpcServices(int index, GrpcService.Builder builderForValue)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
addGrpcServices
public ApiConfigSource.Builder addGrpcServices(GrpcService value)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
addGrpcServices
public ApiConfigSource.Builder addGrpcServices(int index, GrpcService value)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
addGrpcServices
public ApiConfigSource.Builder addGrpcServices(GrpcService.Builder builderForValue)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
addGrpcServices
public ApiConfigSource.Builder addGrpcServices(int index, GrpcService.Builder builderForValue)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
addAllGrpcServices
public ApiConfigSource.Builder addAllGrpcServices(Iterable<? extends GrpcService> values)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
clearGrpcServices
public ApiConfigSource.Builder clearGrpcServices()
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
removeGrpcServices
public ApiConfigSource.Builder removeGrpcServices(int index)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
getGrpcServicesBuilder
public GrpcService.Builder getGrpcServicesBuilder(int index)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
getGrpcServicesOrBuilder
public GrpcServiceOrBuilder getGrpcServicesOrBuilder(int index)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;- Specified by:
getGrpcServicesOrBuilderin interfaceApiConfigSourceOrBuilder
-
getGrpcServicesOrBuilderList
public List<? extends GrpcServiceOrBuilder> getGrpcServicesOrBuilderList()
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;- Specified by:
getGrpcServicesOrBuilderListin interfaceApiConfigSourceOrBuilder
-
addGrpcServicesBuilder
public GrpcService.Builder addGrpcServicesBuilder()
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
addGrpcServicesBuilder
public GrpcService.Builder addGrpcServicesBuilder(int index)
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
getGrpcServicesBuilderList
public List<GrpcService.Builder> getGrpcServicesBuilderList()
Multiple gRPC services be provided for GRPC. If > 1 cluster is defined, services will be cycled through if any kind of failure occurs.
repeated .envoy.api.v2.core.GrpcService grpc_services = 4;
-
hasRefreshDelay
public boolean hasRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;- Specified by:
hasRefreshDelayin interfaceApiConfigSourceOrBuilder- Returns:
- Whether the refreshDelay field is set.
-
getRefreshDelay
public com.google.protobuf.Duration getRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;- Specified by:
getRefreshDelayin interfaceApiConfigSourceOrBuilder- Returns:
- The refreshDelay.
-
setRefreshDelay
public ApiConfigSource.Builder setRefreshDelay(com.google.protobuf.Duration value)
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;
-
setRefreshDelay
public ApiConfigSource.Builder setRefreshDelay(com.google.protobuf.Duration.Builder builderForValue)
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;
-
mergeRefreshDelay
public ApiConfigSource.Builder mergeRefreshDelay(com.google.protobuf.Duration value)
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;
-
clearRefreshDelay
public ApiConfigSource.Builder clearRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;
-
getRefreshDelayBuilder
public com.google.protobuf.Duration.Builder getRefreshDelayBuilder()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;
-
getRefreshDelayOrBuilder
public com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;- Specified by:
getRefreshDelayOrBuilderin interfaceApiConfigSourceOrBuilder
-
hasRequestTimeout
public boolean hasRequestTimeout()
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }- Specified by:
hasRequestTimeoutin interfaceApiConfigSourceOrBuilder- Returns:
- Whether the requestTimeout field is set.
-
getRequestTimeout
public com.google.protobuf.Duration getRequestTimeout()
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }- Specified by:
getRequestTimeoutin interfaceApiConfigSourceOrBuilder- Returns:
- The requestTimeout.
-
setRequestTimeout
public ApiConfigSource.Builder setRequestTimeout(com.google.protobuf.Duration value)
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
-
setRequestTimeout
public ApiConfigSource.Builder setRequestTimeout(com.google.protobuf.Duration.Builder builderForValue)
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
-
mergeRequestTimeout
public ApiConfigSource.Builder mergeRequestTimeout(com.google.protobuf.Duration value)
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
-
clearRequestTimeout
public ApiConfigSource.Builder clearRequestTimeout()
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
-
getRequestTimeoutBuilder
public com.google.protobuf.Duration.Builder getRequestTimeoutBuilder()
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
-
getRequestTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getRequestTimeoutOrBuilder()
For REST APIs, the request timeout. If not set, a default value of 1s will be used.
.google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }- Specified by:
getRequestTimeoutOrBuilderin interfaceApiConfigSourceOrBuilder
-
hasRateLimitSettings
public boolean hasRateLimitSettings()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;- Specified by:
hasRateLimitSettingsin interfaceApiConfigSourceOrBuilder- Returns:
- Whether the rateLimitSettings field is set.
-
getRateLimitSettings
public RateLimitSettings getRateLimitSettings()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;- Specified by:
getRateLimitSettingsin interfaceApiConfigSourceOrBuilder- Returns:
- The rateLimitSettings.
-
setRateLimitSettings
public ApiConfigSource.Builder setRateLimitSettings(RateLimitSettings value)
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;
-
setRateLimitSettings
public ApiConfigSource.Builder setRateLimitSettings(RateLimitSettings.Builder builderForValue)
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;
-
mergeRateLimitSettings
public ApiConfigSource.Builder mergeRateLimitSettings(RateLimitSettings value)
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;
-
clearRateLimitSettings
public ApiConfigSource.Builder clearRateLimitSettings()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;
-
getRateLimitSettingsBuilder
public RateLimitSettings.Builder getRateLimitSettingsBuilder()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;
-
getRateLimitSettingsOrBuilder
public RateLimitSettingsOrBuilder getRateLimitSettingsOrBuilder()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.api.v2.core.RateLimitSettings rate_limit_settings = 6;- Specified by:
getRateLimitSettingsOrBuilderin interfaceApiConfigSourceOrBuilder
-
getSetNodeOnFirstMessageOnly
public boolean getSetNodeOnFirstMessageOnly()
Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
bool set_node_on_first_message_only = 7;- Specified by:
getSetNodeOnFirstMessageOnlyin interfaceApiConfigSourceOrBuilder- Returns:
- The setNodeOnFirstMessageOnly.
-
setSetNodeOnFirstMessageOnly
public ApiConfigSource.Builder setSetNodeOnFirstMessageOnly(boolean value)
Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
bool set_node_on_first_message_only = 7;- Parameters:
value- The setNodeOnFirstMessageOnly to set.- Returns:
- This builder for chaining.
-
clearSetNodeOnFirstMessageOnly
public ApiConfigSource.Builder clearSetNodeOnFirstMessageOnly()
Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
bool set_node_on_first_message_only = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ApiConfigSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder>
-
mergeUnknownFields
public final ApiConfigSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiConfigSource.Builder>
-
-