public final class Endpoint extends GeneratedMessageV3 implements EndpointOrBuilder
Endpoint
describes a network endpoint of a service that serves a set of
APIs. It is commonly known as a service endpoint. A service may expose
any number of service endpoints, and all service endpoints share the same
service definition, such as quota limits and monitoring metrics.
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: true
Protobuf type google.api.Endpoint
Static Fields
ALIASES_FIELD_NUMBER
public static final int ALIASES_FIELD_NUMBER
Field Value
ALLOW_CORS_FIELD_NUMBER
public static final int ALLOW_CORS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
TARGET_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Endpoint getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Endpoint.Builder newBuilder()
Returns
newBuilder(Endpoint prototype)
public static Endpoint.Builder newBuilder(Endpoint prototype)
Parameter
Returns
public static Endpoint parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Endpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Endpoint parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Endpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Endpoint parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Endpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Endpoint parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Endpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Endpoint parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Endpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Endpoint parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Endpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Endpoint> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAliases(int index) (deprecated)
public String getAliases(int index)
Deprecated. google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
Unimplemented. Dot not use.
DEPRECATED: This field is no longer supported. Instead of using aliases,
please specify multiple google.api.Endpoint for each of the intended
aliases.
Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The aliases at the given index.
|
getAliasesBytes(int index) (deprecated)
public ByteString getAliasesBytes(int index)
Deprecated. google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
Unimplemented. Dot not use.
DEPRECATED: This field is no longer supported. Instead of using aliases,
please specify multiple google.api.Endpoint for each of the intended
aliases.
Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the aliases at the given index.
|
getAliasesCount() (deprecated)
public int getAliasesCount()
Deprecated. google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
Unimplemented. Dot not use.
DEPRECATED: This field is no longer supported. Instead of using aliases,
please specify multiple google.api.Endpoint for each of the intended
aliases.
Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
Returns
Type | Description |
int | The count of aliases.
|
getAliasesList() (deprecated)
public ProtocolStringList getAliasesList()
Deprecated. google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
Unimplemented. Dot not use.
DEPRECATED: This field is no longer supported. Instead of using aliases,
please specify multiple google.api.Endpoint for each of the intended
aliases.
Additional names that this endpoint will be hosted on.
repeated string aliases = 2 [deprecated = true];
Returns
getAllowCors()
public boolean getAllowCors()
Allowing
CORS, 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;
Returns
Type | Description |
boolean | The allowCors.
|
getDefaultInstanceForType()
public Endpoint getDefaultInstanceForType()
Returns
getName()
The canonical name of this endpoint.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The canonical name of this endpoint.
string name = 1;
Returns
getParserForType()
public Parser<Endpoint> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTarget()
public String getTarget()
The specification of an Internet routable address of API frontend that will
handle requests to this API
Endpoint. 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;
Returns
Type | Description |
String | The target.
|
getTargetBytes()
public ByteString getTargetBytes()
The specification of an Internet routable address of API frontend that will
handle requests to this API
Endpoint. 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;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Endpoint.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Endpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Endpoint.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions