public static final class Endpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder> 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| Modifier and Type | Method and Description |
|---|---|
Endpoint.Builder |
addAliases(String value)
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
Endpoint.Builder |
addAliasesBytes(com.google.protobuf.ByteString value)
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
Endpoint.Builder |
addAllAliases(Iterable<String> values)
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
Endpoint.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Endpoint |
build() |
Endpoint |
buildPartial() |
Endpoint.Builder |
clear() |
Endpoint.Builder |
clearAliases()
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
Endpoint.Builder |
clearAllowCors()
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.
|
Endpoint.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Endpoint.Builder |
clearName()
The canonical name of this endpoint.
|
Endpoint.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Endpoint.Builder |
clearTarget()
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).
|
Endpoint.Builder |
clone() |
String |
getAliases(int index)
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
com.google.protobuf.ByteString |
getAliasesBytes(int index)
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
int |
getAliasesCount()
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
com.google.protobuf.ProtocolStringList |
getAliasesList()
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
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.
|
Endpoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The canonical name of this endpoint.
|
com.google.protobuf.ByteString |
getNameBytes()
The canonical name of this endpoint.
|
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).
|
com.google.protobuf.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).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Endpoint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Endpoint.Builder |
mergeFrom(Endpoint other) |
Endpoint.Builder |
mergeFrom(com.google.protobuf.Message other) |
Endpoint.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Endpoint.Builder |
setAliases(int index,
String value)
Deprecated.
google.api.Endpoint.aliases is deprecated. See google/api/endpoint.proto;l=51
|
Endpoint.Builder |
setAllowCors(boolean value)
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.
|
Endpoint.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Endpoint.Builder |
setName(String value)
The canonical name of this endpoint.
|
Endpoint.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The canonical name of this endpoint.
|
Endpoint.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Endpoint.Builder |
setTarget(String value)
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).
|
Endpoint.Builder |
setTargetBytes(com.google.protobuf.ByteString value)
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).
|
Endpoint.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Endpoint build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Endpoint buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Endpoint.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Endpoint.Builder>public Endpoint.Builder mergeFrom(Endpoint other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public Endpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Endpoint.Builder>IOExceptionpublic String getName()
The canonical name of this endpoint.
string name = 1;getName in interface EndpointOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The canonical name of this endpoint.
string name = 1;getNameBytes in interface EndpointOrBuilderpublic Endpoint.Builder setName(String value)
The canonical name of this endpoint.
string name = 1;value - The name to set.public Endpoint.Builder clearName()
The canonical name of this endpoint.
string name = 1;public Endpoint.Builder setNameBytes(com.google.protobuf.ByteString value)
The canonical name of this endpoint.
string name = 1;value - The bytes for name to set.@Deprecated public com.google.protobuf.ProtocolStringList getAliasesList()
Unimplemented. Dot not use. 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()
Unimplemented. Dot not use. 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 String getAliases(int index)
Unimplemented. Dot not use. 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 EndpointOrBuilderindex - The index of the element to return.@Deprecated public com.google.protobuf.ByteString getAliasesBytes(int index)
Unimplemented. Dot not use. 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 EndpointOrBuilderindex - The index of the value to return.@Deprecated public Endpoint.Builder setAliases(int index, String value)
Unimplemented. Dot not use. 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];index - The index to set the value at.value - The aliases to set.@Deprecated public Endpoint.Builder addAliases(String value)
Unimplemented. Dot not use. 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];value - The aliases to add.@Deprecated public Endpoint.Builder addAllAliases(Iterable<String> values)
Unimplemented. Dot not use. 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];values - The aliases to add.@Deprecated public Endpoint.Builder clearAliases()
Unimplemented. Dot not use. 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];@Deprecated public Endpoint.Builder addAliasesBytes(com.google.protobuf.ByteString value)
Unimplemented. Dot not use. 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];value - The bytes of the aliases to add.public 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 EndpointOrBuilderpublic com.google.protobuf.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 EndpointOrBuilderpublic Endpoint.Builder setTarget(String value)
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;value - The target to set.public Endpoint.Builder clearTarget()
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;public Endpoint.Builder setTargetBytes(com.google.protobuf.ByteString value)
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;value - The bytes for target to set.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 EndpointOrBuilderpublic Endpoint.Builder setAllowCors(boolean value)
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;value - The allowCors to set.public Endpoint.Builder clearAllowCors()
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;public final Endpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>public final Endpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>Copyright © 2022 Google LLC. All rights reserved.