Class/Object

com.google.protobuf.api

Api

Related Docs: object Api | package api

Permalink

final case class Api(name: String = "", methods: Seq[Method] = Nil, options: Seq[OptionProto] = Nil, version: String = "", sourceContext: Option[SourceContext] = None, mixins: Seq[Mixin] = Nil, syntax: Syntax = ...) extends trueaccord.scalapb.GeneratedMessage with trueaccord.scalapb.Message[Api] with Updatable[Api] with Product with Serializable

Api is a light-weight descriptor for a protocol buffer service.

name

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

methods

The methods of this api, in unspecified order.

options

Any metadata attached to the API.

version

A version string for this api. 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 API, 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, none-GA apis.

sourceContext

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

mixins

Included APIs. See [Mixin][].

syntax

The source syntax of the service.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[Api], trueaccord.scalapb.Message[Api], trueaccord.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] = Nil, options: Seq[OptionProto] = Nil, version: String = "", sourceContext: Option[SourceContext] = None, mixins: Seq[Mixin] = Nil, syntax: Syntax = ...)

    Permalink

    name

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

    methods

    The methods of this api, in unspecified order.

    options

    Any metadata attached to the API.

    version

    A version string for this api. 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 API, 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, none-GA apis.

    sourceContext

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

    mixins

    Included APIs. 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. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getField(__field: FieldDescriptor): 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 api, in unspecified order.

  26. val mixins: Seq[Mixin]

    Permalink

    Included APIs.

    Included APIs. See [Mixin][].

  27. val name: String

    Permalink

    The fully qualified name of this api, including package name followed by the api'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 API.

  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 toString(): String

    Permalink
    Definition Classes
    Api → AnyRef → Any
  38. def update(ms: (Lens[Api, Api]) ⇒ Mutation[Api]*): Api

    Permalink
    Definition Classes
    Updatable
  39. val version: String

    Permalink

    A version string for this api.

    A version string for this api. 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 API, 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, none-GA apis.

  40. final def wait(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[Api]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped