final case class Api(name: String = "", methods: Seq[Method] = _root_.scala.Seq.empty, options: Seq[OptionProto] = _root_.scala.Seq.empty, version: String = "", sourceContext: scala.Option[source_context.SourceContext] = _root_.scala.None, mixins: Seq[Mixin] = _root_.scala.Seq.empty, syntax: type.Syntax = ..., unknownFields: scalapb.UnknownFieldSet = ...) extends scalapb.GeneratedMessage with Updatable[Api] with Product with Serializable
Api is a light-weight descriptor for an API Interface.
Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as "APIs" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.
- name
The fully qualified name of this interface, including package name followed by the interface's simple name.
- methods
The methods of this interface, in unspecified order.
- options
Any metadata attached to the interface.
- version
A version string for this interface. If specified, must have the form
major-version.minor-version
, as in1.10
. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here. The versioning schema uses [semantic versioning](http://semver.org) where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the interface, which must end inv<major-version>
, as ingoogle.feature.v1
. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, non-GA interfaces.- sourceContext
Source context for the protocol buffer service represented by this message.
- mixins
Included interfaces. See [Mixin][].
- syntax
The source syntax of the service.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Api
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Api(name: String = "", methods: Seq[Method] = _root_.scala.Seq.empty, options: Seq[OptionProto] = _root_.scala.Seq.empty, version: String = "", sourceContext: scala.Option[source_context.SourceContext] = _root_.scala.None, mixins: Seq[Mixin] = _root_.scala.Seq.empty, syntax: type.Syntax = ..., unknownFields: scalapb.UnknownFieldSet = ...)
- name
The fully qualified name of this interface, including package name followed by the interface's simple name.
- methods
The methods of this interface, in unspecified order.
- options
Any metadata attached to the interface.
- version
A version string for this interface. If specified, must have the form
major-version.minor-version
, as in1.10
. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here. The versioning schema uses [semantic versioning](http://semver.org) where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the interface, which must end inv<major-version>
, as ingoogle.feature.v1
. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, non-GA interfaces.- sourceContext
Source context for the protocol buffer service represented by this message.
- mixins
Included interfaces. See [Mixin][].
- syntax
The source syntax of the service.
Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllMethods(__vs: Iterable[Method]): Api
- def addAllMixins(__vs: Iterable[Mixin]): Api
- def addAllOptions(__vs: Iterable[OptionProto]): Api
- def addMethods(__vs: Method*): Api
- def addMixins(__vs: Mixin*): Api
- def addOptions(__vs: OptionProto*): Api
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearMethods: Api
- def clearMixins: Api
- def clearOptions: Api
- def clearSourceContext: Api
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Api.type
- Definition Classes
- Api → GeneratedMessage
- def discardUnknownFields: Api
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
- Api → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): scala.Any
- Definition Classes
- Api → GeneratedMessage
- def getSourceContext: source_context.SourceContext
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val methods: Seq[Method]
- val mixins: Seq[Mixin]
- 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 options: Seq[OptionProto]
-
def
serializedSize: Int
- Definition Classes
- Api → GeneratedMessage
- val sourceContext: scala.Option[source_context.SourceContext]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val syntax: type.Syntax
-
final
def
toByteArray: Array[Byte]
Serializes the message and returns a byte array containing its raw bytes
Serializes the message and returns a byte array containing its raw bytes
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
Serializes the message and returns a ByteString containing its raw bytes
Serializes the message and returns a ByteString containing its raw bytes
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
Returns a human-readable ASCII format representation of this message.
Returns a human-readable ASCII format representation of this message.
The original message can be decoded from this format by using fromAscii on the companion object.
- returns
human-readable representation of this message.
- Definition Classes
- Api → GeneratedMessage
- val unknownFields: scalapb.UnknownFieldSet
-
def
update(ms: (Lens[Api, Api]) ⇒ Mutation[Api]*): Api
- Definition Classes
- Updatable
- val version: String
-
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 withMethods(__v: Seq[Method]): Api
- def withMixins(__v: Seq[Mixin]): Api
- def withName(__v: String): Api
- def withOptions(__v: Seq[OptionProto]): Api
- def withSourceContext(__v: source_context.SourceContext): Api
- def withSyntax(__v: type.Syntax): Api
- def withUnknownFields(__v: scalapb.UnknownFieldSet): Api
- def withVersion(__v: String): Api
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
Serializes the message into the given coded output stream
Serializes the message into the given coded output stream
- Definition Classes
- Api → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
Serializes the message into the given output stream
Serializes the message into the given output stream
- Definition Classes
- GeneratedMessage