public static final class ConfigSourceOuterClass.ApiConfigSource extends com.google.protobuf.GeneratedMessageV3 implements ConfigSourceOuterClass.ApiConfigSourceOrBuilder
API configuration source. This identifies the API type and cluster that Envoy will use to fetch an xDS API.
Protobuf type envoy.api.v2.core.ApiConfigSource
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigSourceOuterClass.ApiConfigSource.ApiType
APIs may be fetched via either REST or gRPC.
|
static class |
ConfigSourceOuterClass.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| 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 |
REFRESH_DELAY_FIELD_NUMBER |
static int |
REQUEST_TIMEOUT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ConfigSourceOuterClass.ApiConfigSource.ApiType |
getApiType()
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... |
int |
getApiTypeValue()
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... |
String |
getClusterNames(int index)
Cluster names should be used only with REST_LEGACY/REST.
|
com.google.protobuf.ByteString |
getClusterNamesBytes(int index)
Cluster names should be used only with REST_LEGACY/REST.
|
int |
getClusterNamesCount()
Cluster names should be used only with REST_LEGACY/REST.
|
com.google.protobuf.ProtocolStringList |
getClusterNamesList()
Cluster names should be used only with REST_LEGACY/REST.
|
static ConfigSourceOuterClass.ApiConfigSource |
getDefaultInstance() |
ConfigSourceOuterClass.ApiConfigSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GrpcServiceOuterClass.GrpcService |
getGrpcServices(int index)
Multiple gRPC services be provided for GRPC.
|
int |
getGrpcServicesCount()
Multiple gRPC services be provided for GRPC.
|
List<GrpcServiceOuterClass.GrpcService> |
getGrpcServicesList()
Multiple gRPC services be provided for GRPC.
|
GrpcServiceOuterClass.GrpcServiceOrBuilder |
getGrpcServicesOrBuilder(int index)
Multiple gRPC services be provided for GRPC.
|
List<? extends GrpcServiceOuterClass.GrpcServiceOrBuilder> |
getGrpcServicesOrBuilderList()
Multiple gRPC services be provided for GRPC.
|
com.google.protobuf.Parser<ConfigSourceOuterClass.ApiConfigSource> |
getParserForType() |
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() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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 ConfigSourceOuterClass.ApiConfigSource.Builder |
newBuilder() |
static ConfigSourceOuterClass.ApiConfigSource.Builder |
newBuilder(ConfigSourceOuterClass.ApiConfigSource prototype) |
ConfigSourceOuterClass.ApiConfigSource.Builder |
newBuilderForType() |
protected ConfigSourceOuterClass.ApiConfigSource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static ConfigSourceOuterClass.ApiConfigSource |
parseDelimitedFrom(InputStream input) |
static ConfigSourceOuterClass.ApiConfigSource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(byte[] data) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(ByteBuffer data) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(com.google.protobuf.ByteString data) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(InputStream input) |
static ConfigSourceOuterClass.ApiConfigSource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ConfigSourceOuterClass.ApiConfigSource> |
parser() |
ConfigSourceOuterClass.ApiConfigSource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 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 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()
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }getApiTypeValue in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic ConfigSourceOuterClass.ApiConfigSource.ApiType getApiType()
.envoy.api.v2.core.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }getApiType in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic com.google.protobuf.ProtocolStringList getClusterNamesList()
Cluster names should be used only with REST_LEGACY/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 ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic int getClusterNamesCount()
Cluster names should be used only with REST_LEGACY/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 ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic String getClusterNames(int index)
Cluster names should be used only with REST_LEGACY/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 ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic com.google.protobuf.ByteString getClusterNamesBytes(int index)
Cluster names should be used only with REST_LEGACY/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 ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic List<GrpcServiceOuterClass.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;getGrpcServicesList in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic List<? extends GrpcServiceOuterClass.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;getGrpcServicesOrBuilderList in interface ConfigSourceOuterClass.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.api.v2.core.GrpcService grpc_services = 4;getGrpcServicesCount in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic GrpcServiceOuterClass.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;getGrpcServices in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic GrpcServiceOuterClass.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;getGrpcServicesOrBuilder in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic boolean hasRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3 [(.gogoproto.stdduration) = true];hasRefreshDelay in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic com.google.protobuf.Duration getRefreshDelay()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3 [(.gogoproto.stdduration) = true];getRefreshDelay in interface ConfigSourceOuterClass.ApiConfigSourceOrBuilderpublic com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder()
For REST APIs, the delay between successive polls.
.google.protobuf.Duration refresh_delay = 3 [(.gogoproto.stdduration) = true];getRefreshDelayOrBuilder in interface ConfigSourceOuterClass.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 [(.gogoproto.stdduration) = true, (.validate.rules) = { ... }hasRequestTimeout in interface ConfigSourceOuterClass.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 [(.gogoproto.stdduration) = true, (.validate.rules) = { ... }getRequestTimeout in interface ConfigSourceOuterClass.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 [(.gogoproto.stdduration) = true, (.validate.rules) = { ... }getRequestTimeoutOrBuilder in interface ConfigSourceOuterClass.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 ConfigSourceOuterClass.ApiConfigSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(InputStream input) throws IOException
IOExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ConfigSourceOuterClass.ApiConfigSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ConfigSourceOuterClass.ApiConfigSource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ConfigSourceOuterClass.ApiConfigSource.Builder newBuilder()
public static ConfigSourceOuterClass.ApiConfigSource.Builder newBuilder(ConfigSourceOuterClass.ApiConfigSource prototype)
public ConfigSourceOuterClass.ApiConfigSource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ConfigSourceOuterClass.ApiConfigSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ConfigSourceOuterClass.ApiConfigSource getDefaultInstance()
public static com.google.protobuf.Parser<ConfigSourceOuterClass.ApiConfigSource> parser()
public com.google.protobuf.Parser<ConfigSourceOuterClass.ApiConfigSource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ConfigSourceOuterClass.ApiConfigSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 WSO2. All rights reserved.