public final class Endpoint extends GeneratedMessageV3 implements EndpointOrBuilder
`Endpoint` describes a network endpoint that serves a set of APIs. A service may expose any number of endpoints, and all endpoints share the same service configuration, such as quota configuration and monitoring configuration. Example service configuration: name: library-example.googleapis.com endpoints: # Below entry makes 'google.example.library.v1.Library' # API be served from endpoint address library-example.googleapis.com. # It also allows HTTP OPTIONS calls to be passed to the backend, for # it to decide whether the subsequent cross-origin request is # allowed to proceed. - name: library-example.googleapis.com allow_cors: trueProtobuf type
google.api.Endpoint
Modifier and Type | Class and Description |
---|---|
static class |
Endpoint.Builder
`Endpoint` describes a network endpoint that serves a set of APIs.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ALIASES_FIELD_NUMBER |
static int |
ALLOW_CORS_FIELD_NUMBER |
static int |
FEATURES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TARGET_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAliases(int index)
Deprecated.
|
ByteString |
getAliasesBytes(int index)
Deprecated.
|
int |
getAliasesCount()
Deprecated.
|
ProtocolStringList |
getAliasesList()
Deprecated.
|
boolean |
getAllowCors()
Allowing
[CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
cross-domain traffic, would allow the backends served from this endpoint to
receive and respond to HTTP OPTIONS requests.
|
static Endpoint |
getDefaultInstance() |
Endpoint |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getFeatures(int index)
The list of features enabled on this endpoint.
|
ByteString |
getFeaturesBytes(int index)
The list of features enabled on this endpoint.
|
int |
getFeaturesCount()
The list of features enabled on this endpoint.
|
ProtocolStringList |
getFeaturesList()
The list of features enabled on this endpoint.
|
java.lang.String |
getName()
The canonical name of this endpoint.
|
ByteString |
getNameBytes()
The canonical name of this endpoint.
|
Parser<Endpoint> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getTarget()
The specification of an Internet routable address of API frontend that will
handle requests to this [API
Endpoint](https://cloud.google.com/apis/design/glossary).
|
ByteString |
getTargetBytes()
The specification of an Internet routable address of API frontend that will
handle requests to this [API
Endpoint](https://cloud.google.com/apis/design/glossary).
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Endpoint.Builder |
newBuilder() |
static Endpoint.Builder |
newBuilder(Endpoint prototype) |
Endpoint.Builder |
newBuilderForType() |
protected Endpoint.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Endpoint |
parseDelimitedFrom(java.io.InputStream input) |
static Endpoint |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(byte[] data) |
static Endpoint |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(java.nio.ByteBuffer data) |
static Endpoint |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(ByteString data) |
static Endpoint |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(CodedInputStream input) |
static Endpoint |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(java.io.InputStream input) |
static Endpoint |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Endpoint> |
parser() |
Endpoint.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int ALIASES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER
public static final int ALLOW_CORS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getName()
The canonical name of this endpoint.
string name = 1;
getName
in interface EndpointOrBuilder
public ByteString getNameBytes()
The canonical name of this endpoint.
string name = 1;
getNameBytes
in interface EndpointOrBuilder
@Deprecated public ProtocolStringList getAliasesList()
DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended aliases. Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
getAliasesList
in interface EndpointOrBuilder
@Deprecated public int getAliasesCount()
DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended aliases. Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
getAliasesCount
in interface EndpointOrBuilder
@Deprecated public java.lang.String getAliases(int index)
DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended aliases. Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
getAliases
in interface EndpointOrBuilder
@Deprecated public ByteString getAliasesBytes(int index)
DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended aliases. Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
getAliasesBytes
in interface EndpointOrBuilder
public ProtocolStringList getFeaturesList()
The list of features enabled on this endpoint.
repeated string features = 4;
getFeaturesList
in interface EndpointOrBuilder
public int getFeaturesCount()
The list of features enabled on this endpoint.
repeated string features = 4;
getFeaturesCount
in interface EndpointOrBuilder
public java.lang.String getFeatures(int index)
The list of features enabled on this endpoint.
repeated string features = 4;
getFeatures
in interface EndpointOrBuilder
public ByteString getFeaturesBytes(int index)
The list of features enabled on this endpoint.
repeated string features = 4;
getFeaturesBytes
in interface EndpointOrBuilder
public java.lang.String getTarget()
The specification of an Internet routable address of API frontend that will handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). It should be either a valid IPv4 address or a fully-qualified domain name. For example, "8.8.8.8" or "myservice.appspot.com".
string target = 101;
getTarget
in interface EndpointOrBuilder
public ByteString getTargetBytes()
The specification of an Internet routable address of API frontend that will handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). It should be either a valid IPv4 address or a fully-qualified domain name. For example, "8.8.8.8" or "myservice.appspot.com".
string target = 101;
getTargetBytes
in interface EndpointOrBuilder
public boolean getAllowCors()
Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
bool allow_cors = 5;
getAllowCors
in interface EndpointOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Endpoint parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Endpoint parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Endpoint parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Endpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Endpoint parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Endpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Endpoint parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Endpoint parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Endpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Endpoint parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Endpoint parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Endpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Endpoint.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Endpoint.Builder newBuilder()
public static Endpoint.Builder newBuilder(Endpoint prototype)
public Endpoint.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Endpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Endpoint getDefaultInstance()
public Parser<Endpoint> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Endpoint getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder