Class/Object

com.google.protobuf.api

Api

Related Docs: object Api | package api

Permalink

final case class Api(name: String = "", methods: Seq[Method] = _root_.scala.collection.Seq.empty, options: Seq[OptionProto] = _root_.scala.collection.Seq.empty, version: String = "", sourceContext: Option[SourceContext] = _root_.scala.None, mixins: Seq[Mixin] = _root_.scala.collection.Seq.empty, syntax: Syntax = ...) extends scalapb.GeneratedMessage with scalapb.Message[Api] 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 in 1.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 in v<major-version>, as in google.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()
Linear Supertypes
Product, Equals, Updatable[Api], scalapb.Message[Api], scalapb.GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Api
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Api(name: String = "", methods: Seq[Method] = _root_.scala.collection.Seq.empty, options: Seq[OptionProto] = _root_.scala.collection.Seq.empty, version: String = "", sourceContext: Option[SourceContext] = _root_.scala.None, mixins: Seq[Mixin] = _root_.scala.collection.Seq.empty, syntax: Syntax = ...)

    Permalink

    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 in 1.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 in v<major-version>, as in google.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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAllMethods(__vs: TraversableOnce[Method]): Api

    Permalink
  5. def addAllMixins(__vs: TraversableOnce[Mixin]): Api

    Permalink
  6. def addAllOptions(__vs: TraversableOnce[OptionProto]): Api

    Permalink
  7. def addMethods(__vs: Method*): Api

    Permalink
  8. def addMixins(__vs: Mixin*): Api

    Permalink
  9. def addOptions(__vs: OptionProto*): Api

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clearMethods: Api

    Permalink
  12. def clearMixins: Api

    Permalink
  13. def clearOptions: Api

    Permalink
  14. def clearSourceContext: Api

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def companion: Api.type

    Permalink
    Definition Classes
    ApiGeneratedMessage
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    ApiGeneratedMessage
  21. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    ApiGeneratedMessage
  22. def getSourceContext: SourceContext

    Permalink
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def mergeFrom(_input__: CodedInputStream): Api

    Permalink
    Definition Classes
    ApiMessage
  25. val methods: Seq[Method]

    Permalink

    The methods of this interface, in unspecified order.

  26. val mixins: Seq[Mixin]

    Permalink

    Included interfaces.

    Included interfaces. See [Mixin][].

  27. val name: String

    Permalink

    The fully qualified name of this interface, including package name followed by the interface's simple name.

  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. val options: Seq[OptionProto]

    Permalink

    Any metadata attached to the interface.

  32. final def serializedSize: Int

    Permalink
    Definition Classes
    ApiGeneratedMessage
  33. val sourceContext: Option[SourceContext]

    Permalink

    Source context for the protocol buffer service represented by this message.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. val syntax: Syntax

    Permalink

    The source syntax of the service.

  36. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  37. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  38. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  39. def toProtoString: String

    Permalink

    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
    ApiGeneratedMessage
  40. def update(ms: (Lens[Api, Api]) ⇒ Mutation[Api]*): Api

    Permalink
    Definition Classes
    Updatable
  41. val version: String

    Permalink

    A version string for this interface.

    A version string for this interface. If specified, must have the form major-version.minor-version, as in 1.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 in v<major-version>, as in google.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.

  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def withMethods(__v: Seq[Method]): Api

    Permalink
  46. def withMixins(__v: Seq[Mixin]): Api

    Permalink
  47. def withName(__v: String): Api

    Permalink
  48. def withOptions(__v: Seq[OptionProto]): Api

    Permalink
  49. def withSourceContext(__v: SourceContext): Api

    Permalink
  50. def withSyntax(__v: Syntax): Api

    Permalink
  51. def withVersion(__v: String): Api

    Permalink
  52. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  53. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    ApiGeneratedMessage
  54. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[Api]

Inherited from scalapb.Message[Api]

Inherited from scalapb.GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped