final case class Endpoint(name: String = "", aliases: Seq[String] = _root_.scala.Seq.empty, features: Seq[String] = _root_.scala.Seq.empty, target: String = "", allowCors: Boolean = false, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Endpoint] with Product with Serializable
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: true
- name
The canonical name of this endpoint.
- aliases
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.
- features
The list of features enabled on this endpoint.
- target
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".
- allowCors
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.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Endpoint
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Endpoint(name: String = "", aliases: Seq[String] = _root_.scala.Seq.empty, features: Seq[String] = _root_.scala.Seq.empty, target: String = "", allowCors: Boolean = false, unknownFields: UnknownFieldSet = ...)
- name
The canonical name of this endpoint.
- aliases
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.
- features
The list of features enabled on this endpoint.
- target
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".
- allowCors
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.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAliases(__vs: String*): Endpoint
- def addAllAliases(__vs: Iterable[String]): Endpoint
- def addAllFeatures(__vs: Iterable[String]): Endpoint
- def addFeatures(__vs: String*): Endpoint
- val allowCors: Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearAliases: Endpoint
- def clearFeatures: Endpoint
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Endpoint.type
- Definition Classes
- Endpoint → GeneratedMessage
- def discardUnknownFields: Endpoint
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val features: Seq[String]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Endpoint → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Endpoint → GeneratedMessage
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
serializedSize: Int
- Definition Classes
- Endpoint → GeneratedMessage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val target: String
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Endpoint → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Endpoint, Endpoint]) ⇒ Mutation[Endpoint]*): Endpoint
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withAliases(__v: Seq[String]): Endpoint
- def withAllowCors(__v: Boolean): Endpoint
- def withFeatures(__v: Seq[String]): Endpoint
- def withName(__v: String): Endpoint
- def withTarget(__v: String): Endpoint
- def withUnknownFields(__v: UnknownFieldSet): Endpoint
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Endpoint → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
val
aliases: Seq[String]
- Annotations
- @deprecated
- Deprecated
(Since version ) Marked as deprecated in proto file