final case class Service(configVersion: Option[Int] = _root_.scala.None, name: String = "", id: String = "", title: String = "", producerProjectId: String = "", apis: Seq[Api] = _root_.scala.Seq.empty, types: Seq[Type] = _root_.scala.Seq.empty, enums: Seq[Enum] = _root_.scala.Seq.empty, documentation: Option[Documentation] = _root_.scala.None, backend: Option[Backend] = _root_.scala.None, http: Option[Http] = _root_.scala.None, quota: Option[Quota] = _root_.scala.None, authentication: Option[Authentication] = _root_.scala.None, context: Option[Context] = _root_.scala.None, usage: Option[Usage] = _root_.scala.None, endpoints: Seq[Endpoint] = _root_.scala.Seq.empty, control: Option[Control] = _root_.scala.None, logs: Seq[LogDescriptor] = _root_.scala.Seq.empty, metrics: Seq[MetricDescriptor] = _root_.scala.Seq.empty, monitoredResources: Seq[MonitoredResourceDescriptor] = _root_.scala.Seq.empty, billing: Option[Billing] = _root_.scala.None, logging: Option[Logging] = _root_.scala.None, monitoring: Option[Monitoring] = _root_.scala.None, systemParameters: Option[SystemParameters] = _root_.scala.None, sourceInfo: Option[SourceInfo] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Service] with Product with Serializable
Service is the root object of Google service configuration schema. It
describes basic information about a service, such as the name and the
title, and delegates other aspects to sub-sections. Each sub-section is
either a proto message or a repeated proto message that configures a
specific aspect, such as auth. See each proto message definition for details.
Example:
type: google.api.Service config_version: 3 name: calendar.googleapis.com title: Google Calendar API apis:
- name: google.calendar.v3.Calendar
authentication:
providers:
- id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules:
- selector: "*" requirements: provider_id: google_calendar_auth
- configVersion
The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is
3.- name
The service name, which is a DNS-like logical identifier for the service, such as
calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.- id
A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters.
- title
The product title for this service.
- producerProjectId
The Google project that owns this service.
- apis
A list of API interfaces exported by this service. Only the
namefield of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files.- types
A list of all proto message types included in this API service. Types referenced directly or indirectly by the
apisare automatically included. Messages which are not referenced but shall be included, such as types used by thegoogle.protobuf.Anytype, should be listed here by name. Example: types:- name: google.protobuf.Int32
- enums
A list of all enum types included in this API service. Enums referenced directly or indirectly by the
apisare automatically included. Enums which are not referenced but shall be included should be listed here by name. Example: enums:- name: google.someapi.v1.SomeEnum
- documentation
Additional API documentation.
- backend
API backend configuration.
- http
HTTP configuration.
- quota
Quota configuration.
- authentication
Auth configuration.
- context
Context configuration.
- usage
Configuration controlling usage of this service.
- endpoints
Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.
- control
Configuration for the service control plane.
- logs
Defines the logs used by this service.
- metrics
Defines the metrics used by this service.
- monitoredResources
Defines the monitored resources used by this service. This is required by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
- billing
Billing configuration.
- logging
Logging configuration.
- monitoring
Monitoring configuration.
- systemParameters
System parameter configuration.
- sourceInfo
Output only. The source information for this configuration if available.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Service
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Service(configVersion: Option[Int] = _root_.scala.None, name: String = "", id: String = "", title: String = "", producerProjectId: String = "", apis: Seq[Api] = _root_.scala.Seq.empty, types: Seq[Type] = _root_.scala.Seq.empty, enums: Seq[Enum] = _root_.scala.Seq.empty, documentation: Option[Documentation] = _root_.scala.None, backend: Option[Backend] = _root_.scala.None, http: Option[Http] = _root_.scala.None, quota: Option[Quota] = _root_.scala.None, authentication: Option[Authentication] = _root_.scala.None, context: Option[Context] = _root_.scala.None, usage: Option[Usage] = _root_.scala.None, endpoints: Seq[Endpoint] = _root_.scala.Seq.empty, control: Option[Control] = _root_.scala.None, logs: Seq[LogDescriptor] = _root_.scala.Seq.empty, metrics: Seq[MetricDescriptor] = _root_.scala.Seq.empty, monitoredResources: Seq[MonitoredResourceDescriptor] = _root_.scala.Seq.empty, billing: Option[Billing] = _root_.scala.None, logging: Option[Logging] = _root_.scala.None, monitoring: Option[Monitoring] = _root_.scala.None, systemParameters: Option[SystemParameters] = _root_.scala.None, sourceInfo: Option[SourceInfo] = _root_.scala.None, unknownFields: UnknownFieldSet = ...)
- configVersion
The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is
3.- name
The service name, which is a DNS-like logical identifier for the service, such as
calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.- id
A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters.
- title
The product title for this service.
- producerProjectId
The Google project that owns this service.
- apis
A list of API interfaces exported by this service. Only the
namefield of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files.- types
A list of all proto message types included in this API service. Types referenced directly or indirectly by the
apisare automatically included. Messages which are not referenced but shall be included, such as types used by thegoogle.protobuf.Anytype, should be listed here by name. Example: types:- name: google.protobuf.Int32
- enums
A list of all enum types included in this API service. Enums referenced directly or indirectly by the
apisare automatically included. Enums which are not referenced but shall be included should be listed here by name. Example: enums:- name: google.someapi.v1.SomeEnum
- documentation
Additional API documentation.
- backend
API backend configuration.
- http
HTTP configuration.
- quota
Quota configuration.
- authentication
Auth configuration.
- context
Context configuration.
- usage
Configuration controlling usage of this service.
- endpoints
Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.
- control
Configuration for the service control plane.
- logs
Defines the logs used by this service.
- metrics
Defines the metrics used by this service.
- monitoredResources
Defines the monitored resources used by this service. This is required by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
- billing
Billing configuration.
- logging
Logging configuration.
- monitoring
Monitoring configuration.
- systemParameters
System parameter configuration.
- sourceInfo
Output only. The source information for this configuration if available.
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 addAllApis(__vs: Iterable[Api]): Service
- def addAllEndpoints(__vs: Iterable[Endpoint]): Service
- def addAllEnums(__vs: Iterable[Enum]): Service
- def addAllLogs(__vs: Iterable[LogDescriptor]): Service
- def addAllMetrics(__vs: Iterable[MetricDescriptor]): Service
- def addAllMonitoredResources(__vs: Iterable[MonitoredResourceDescriptor]): Service
- def addAllTypes(__vs: Iterable[Type]): Service
- def addApis(__vs: Api*): Service
- def addEndpoints(__vs: Endpoint*): Service
- def addEnums(__vs: Enum*): Service
- def addLogs(__vs: LogDescriptor*): Service
- def addMetrics(__vs: MetricDescriptor*): Service
- def addMonitoredResources(__vs: MonitoredResourceDescriptor*): Service
- def addTypes(__vs: Type*): Service
- val apis: Seq[Api]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val authentication: Option[Authentication]
- val backend: Option[Backend]
- val billing: Option[Billing]
- def clearApis: Service
- def clearAuthentication: Service
- def clearBackend: Service
- def clearBilling: Service
- def clearConfigVersion: Service
- def clearContext: Service
- def clearControl: Service
- def clearDocumentation: Service
- def clearEndpoints: Service
- def clearEnums: Service
- def clearHttp: Service
- def clearLogging: Service
- def clearLogs: Service
- def clearMetrics: Service
- def clearMonitoredResources: Service
- def clearMonitoring: Service
- def clearQuota: Service
- def clearSourceInfo: Service
- def clearSystemParameters: Service
- def clearTypes: Service
- def clearUsage: Service
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Service.type
- Definition Classes
- Service → GeneratedMessage
- val configVersion: Option[Int]
- val context: Option[Context]
- val control: Option[Control]
- def discardUnknownFields: Service
- val documentation: Option[Documentation]
- val endpoints: Seq[Endpoint]
- val enums: Seq[Enum]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getAuthentication: Authentication
- def getBackend: Backend
- def getBilling: Billing
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getConfigVersion: Int
- def getContext: Context
- def getControl: Control
- def getDocumentation: Documentation
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Service → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Service → GeneratedMessage
- def getHttp: Http
- def getLogging: Logging
- def getMonitoring: Monitoring
- def getQuota: Quota
- def getSourceInfo: SourceInfo
- def getSystemParameters: SystemParameters
- def getUsage: Usage
- val http: Option[Http]
- val id: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logging: Option[Logging]
- val logs: Seq[LogDescriptor]
- val metrics: Seq[MetricDescriptor]
- val monitoredResources: Seq[MonitoredResourceDescriptor]
- val monitoring: Option[Monitoring]
- 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()
- val producerProjectId: String
- val quota: Option[Quota]
-
def
serializedSize: Int
- Definition Classes
- Service → GeneratedMessage
- val sourceInfo: Option[SourceInfo]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val systemParameters: Option[SystemParameters]
- val title: 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
- Service → GeneratedMessage
- val types: Seq[Type]
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Service, Service]) ⇒ Mutation[Service]*): Service
- Definition Classes
- Updatable
- val usage: Option[Usage]
-
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 withApis(__v: Seq[Api]): Service
- def withAuthentication(__v: Authentication): Service
- def withBackend(__v: Backend): Service
- def withBilling(__v: Billing): Service
- def withConfigVersion(__v: Int): Service
- def withContext(__v: Context): Service
- def withControl(__v: Control): Service
- def withDocumentation(__v: Documentation): Service
- def withEndpoints(__v: Seq[Endpoint]): Service
- def withEnums(__v: Seq[Enum]): Service
- def withHttp(__v: Http): Service
- def withId(__v: String): Service
- def withLogging(__v: Logging): Service
- def withLogs(__v: Seq[LogDescriptor]): Service
- def withMetrics(__v: Seq[MetricDescriptor]): Service
- def withMonitoredResources(__v: Seq[MonitoredResourceDescriptor]): Service
- def withMonitoring(__v: Monitoring): Service
- def withName(__v: String): Service
- def withProducerProjectId(__v: String): Service
- def withQuota(__v: Quota): Service
- def withSourceInfo(__v: SourceInfo): Service
- def withSystemParameters(__v: SystemParameters): Service
- def withTitle(__v: String): Service
- def withTypes(__v: Seq[Type]): Service
- def withUnknownFields(__v: UnknownFieldSet): Service
- def withUsage(__v: Usage): Service
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Service → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage