public final class ApiConfigSource extends com.google.protobuf.GeneratedMessageV3 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 type
envoy.config.core.v3.ApiConfigSource| Modifier and Type | Class and Description |
|---|---|
static class |
ApiConfigSource.ApiType
APIs may be fetched via either REST or gRPC.
|
static class |
ApiConfigSource.Builder
API configuration source.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
API_TYPE_FIELD_NUMBER |
static int |
CLUSTER_NAMES_FIELD_NUMBER |
static int |
GRPC_SERVICES_FIELD_NUMBER |
static int |
RATE_LIMIT_SETTINGS_FIELD_NUMBER |
static int |
REFRESH_DELAY_FIELD_NUMBER |
static int |
REQUEST_TIMEOUT_FIELD_NUMBER |
static int |
SET_NODE_ON_FIRST_MESSAGE_ONLY_FIELD_NUMBER |
static int |
TRANSPORT_API_VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ApiConfigSource.ApiType |
getApiType()
API type (gRPC, REST, delta gRPC)
.envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... } |
int |
getApiTypeValue()
API type (gRPC, REST, delta gRPC)
.envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... } |
String |
getClusterNames(int index)
Cluster names should be used only with REST.
|
com.google.protobuf.ByteString |
getClusterNamesBytes(int index)
Cluster names should be used only with REST.
|
int |
getClusterNamesCount()
Cluster names should be used only with REST.
|
com.google.protobuf.ProtocolStringList |
getClusterNamesList()
Cluster names should be used only with REST.
|
static ApiConfigSource |
getDefaultInstance() |
ApiConfigSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GrpcService |
getGrpcServices(int index)
Multiple gRPC services be provided for GRPC.
|
int |
getGrpcServicesCount()
Multiple gRPC services be provided for GRPC.
|
List<GrpcService> |
getGrpcServicesList()
Multiple gRPC services be provided for GRPC.
|
GrpcServiceOrBuilder |
getGrpcServicesOrBuilder(int index)
Multiple gRPC services be provided for GRPC.
|
List<? extends GrpcServiceOrBuilder> |
getGrpcServicesOrBuilderList()
Multiple gRPC services be provided for GRPC.
|
com.google.protobuf.Parser<ApiConfigSource> |
getParserForType() |
RateLimitSettings |
getRateLimitSettings()
For GRPC APIs, the rate limit settings.
|
RateLimitSettingsOrBuilder |
getRateLimitSettingsOrBuilder()
For GRPC APIs, the rate limit settings.
|
com.google.protobuf.Duration |
getRefreshDelay()
For REST APIs, the delay between successive polls.
|
com.google.protobuf.DurationOrBuilder |
getRefreshDelayOrBuilder()
For REST APIs, the delay between successive polls.
|
com.google.protobuf.Duration |
getRequestTimeout()
For REST APIs, the request timeout.
|
com.google.protobuf.DurationOrBuilder |
getRequestTimeoutOrBuilder()
For REST APIs, the request timeout.
|
int |
getSerializedSize() |
boolean |
getSetNodeOnFirstMessageOnly()
Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
|
ApiVersion |
getTransportApiVersion()
API version for xDS transport protocol.
|
int |
getTransportApiVersionValue()
API version for xDS transport protocol.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasRateLimitSettings()
For GRPC APIs, the rate limit settings.
|
boolean |
hasRefreshDelay()
For REST APIs, the delay between successive polls.
|
boolean |
hasRequestTimeout()
For REST APIs, the request timeout.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ApiConfigSource.Builder |
newBuilder() |
static ApiConfigSource.Builder |
newBuilder(ApiConfigSource prototype) |
ApiConfigSource.Builder |
newBuilderForType() |
protected ApiConfigSource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ApiConfigSource |
parseDelimitedFrom(InputStream input) |
static ApiConfigSource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ApiConfigSource |
parseFrom(byte[] data) |
static ApiConfigSource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ApiConfigSource |
parseFrom(ByteBuffer data) |
static ApiConfigSource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ApiConfigSource |
parseFrom(com.google.protobuf.ByteString data) |
static ApiConfigSource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ApiConfigSource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ApiConfigSource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ApiConfigSource |
parseFrom(InputStream input) |
static ApiConfigSource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ApiConfigSource> |
parser() |
ApiConfigSource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int API_TYPE_FIELD_NUMBER
public static final int TRANSPORT_API_VERSION_FIELD_NUMBER
public static final int CLUSTER_NAMES_FIELD_NUMBER
public static final int GRPC_SERVICES_FIELD_NUMBER
public static final int REFRESH_DELAY_FIELD_NUMBER
public static final int REQUEST_TIMEOUT_FIELD_NUMBER
public static final int RATE_LIMIT_SETTINGS_FIELD_NUMBER
public static final int SET_NODE_ON_FIRST_MESSAGE_ONLY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getApiTypeValue()
API type (gRPC, REST, delta gRPC)
.envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }getApiTypeValue in interface ApiConfigSourceOrBuilderpublic ApiConfigSource.ApiType getApiType()
API type (gRPC, REST, delta gRPC)
.envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }getApiType in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }getTransportApiVersionValue in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }getTransportApiVersion in interface ApiConfigSourceOrBuilderpublic 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;getClusterNamesList in interface ApiConfigSourceOrBuilderpublic 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;getClusterNamesCount in interface ApiConfigSourceOrBuilderpublic 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;getClusterNames in interface ApiConfigSourceOrBuilderpublic 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;getClusterNamesBytes in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.GrpcService grpc_services = 4;getGrpcServicesList in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.GrpcService grpc_services = 4;getGrpcServicesOrBuilderList in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.GrpcService grpc_services = 4;getGrpcServicesCount in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.GrpcService grpc_services = 4;getGrpcServices in interface ApiConfigSourceOrBuilderpublic 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.config.core.v3.GrpcService grpc_services = 4;getGrpcServicesOrBuilder in interface ApiConfigSourceOrBuilderpublic boolean hasRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;hasRefreshDelay in interface ApiConfigSourceOrBuilderpublic com.google.protobuf.Duration getRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;getRefreshDelay in interface ApiConfigSourceOrBuilderpublic com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3;getRefreshDelayOrBuilder in interface ApiConfigSourceOrBuilderpublic 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) = { ... }hasRequestTimeout in interface ApiConfigSourceOrBuilderpublic 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) = { ... }getRequestTimeout in interface ApiConfigSourceOrBuilderpublic 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) = { ... }getRequestTimeoutOrBuilder in interface ApiConfigSourceOrBuilderpublic boolean hasRateLimitSettings()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;hasRateLimitSettings in interface ApiConfigSourceOrBuilderpublic RateLimitSettings getRateLimitSettings()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;getRateLimitSettings in interface ApiConfigSourceOrBuilderpublic RateLimitSettingsOrBuilder getRateLimitSettingsOrBuilder()
For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be rate limited.
.envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;getRateLimitSettingsOrBuilder in interface ApiConfigSourceOrBuilderpublic boolean getSetNodeOnFirstMessageOnly()
Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
bool set_node_on_first_message_only = 7;getSetNodeOnFirstMessageOnly in interface ApiConfigSourceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ApiConfigSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ApiConfigSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ApiConfigSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ApiConfigSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ApiConfigSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ApiConfigSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ApiConfigSource parseFrom(InputStream input) throws IOException
IOExceptionpublic static ApiConfigSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ApiConfigSource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ApiConfigSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ApiConfigSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ApiConfigSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ApiConfigSource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ApiConfigSource.Builder newBuilder()
public static ApiConfigSource.Builder newBuilder(ApiConfigSource prototype)
public ApiConfigSource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ApiConfigSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ApiConfigSource getDefaultInstance()
public static com.google.protobuf.Parser<ApiConfigSource> parser()
public com.google.protobuf.Parser<ApiConfigSource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ApiConfigSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.