Class Api.Builder

All Implemented Interfaces:
ApiOrBuilder, Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable
Enclosing class:
Api

public static final class Api.Builder extends GeneratedMessage.Builder<Api.Builder> implements ApiOrBuilder
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.

New usages of this message as an alternative to ServiceDescriptorProto are
strongly discouraged. This message does not reliability preserve all
information necessary to model the schema and preserve semantics. Instead
make use of FileDescriptorSet which preserves the necessary information.
Protobuf type google.protobuf.Api
  • Field Details

  • Constructor Details

  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Description copied from class: GeneratedMessage.Builder
      Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<Api.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public Api.Builder clear()
      Description copied from class: GeneratedMessage.Builder
      Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<Api.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Description copied from interface: Message.Builder
      Get the message's type's descriptor. See MessageOrBuilder.getDescriptorForType().
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.Builder<Api.Builder>
    • getDefaultInstanceForType

      public Api getDefaultInstanceForType()
      Description copied from interface: MessageLiteOrBuilder
      Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

      public Api build()
      Description copied from interface: MessageLite.Builder
      Constructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.
      Specified by:
      build in interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public Api buildPartial()
      Description copied from interface: MessageLite.Builder
      Like MessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • buildPartialRepeatedFields

      private void buildPartialRepeatedFields(Api result)
    • buildPartial0

      private void buildPartial0(Api result)
    • mergeFrom

      public Api.Builder mergeFrom(Message other)
      Description copied from interface: Message.Builder
      Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

      Merging occurs as follows. For each field:
      * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
      * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
      * For repeated fields, the elements in other are concatenated with the elements in this message.
      * For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

      This is equivalent to the Message::MergeFrom method in C++.

      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<Api.Builder>
    • mergeFrom

      public Api.Builder mergeFrom(Api other)
    • isInitialized

      public final boolean isInitialized()
      Description copied from interface: MessageLiteOrBuilder
      Returns true if all required fields in the message and all embedded messages are set, false otherwise.

      See also: MessageOrBuilder.getInitializationErrorString()

      Specified by:
      isInitialized in interface MessageLiteOrBuilder
      Overrides:
      isInitialized in class GeneratedMessage.Builder<Api.Builder>
    • mergeFrom

      public Api.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Description copied from interface: MessageLite.Builder
      Like MessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in extensionRegistry. Extensions not in the registry will be treated as unknown fields.
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<Api.Builder>
      Throws:
      IOException - an I/O error reading from the stream
    • getName

      public String getName()
      The fully qualified name of this interface, including package name
      followed by the interface's simple name.
      
      string name = 1;
      Specified by:
      getName in interface ApiOrBuilder
      Returns:
      The name.
    • getNameBytes

      public ByteString getNameBytes()
      The fully qualified name of this interface, including package name
      followed by the interface's simple name.
      
      string name = 1;
      Specified by:
      getNameBytes in interface ApiOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Api.Builder setName(String value)
      The fully qualified name of this interface, including package name
      followed by the interface's simple name.
      
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Api.Builder clearName()
      The fully qualified name of this interface, including package name
      followed by the interface's simple name.
      
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Api.Builder setNameBytes(ByteString value)
      The fully qualified name of this interface, including package name
      followed by the interface's simple name.
      
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • ensureMethodsIsMutable

      private void ensureMethodsIsMutable()
    • getMethodsList

      public List<Method> getMethodsList()
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
      Specified by:
      getMethodsList in interface ApiOrBuilder
    • getMethodsCount

      public int getMethodsCount()
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
      Specified by:
      getMethodsCount in interface ApiOrBuilder
    • getMethods

      public Method getMethods(int index)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
      Specified by:
      getMethods in interface ApiOrBuilder
    • setMethods

      public Api.Builder setMethods(int index, Method value)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • setMethods

      public Api.Builder setMethods(int index, Method.Builder builderForValue)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • addMethods

      public Api.Builder addMethods(Method value)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • addMethods

      public Api.Builder addMethods(int index, Method value)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • addMethods

      public Api.Builder addMethods(Method.Builder builderForValue)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • addMethods

      public Api.Builder addMethods(int index, Method.Builder builderForValue)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • addAllMethods

      public Api.Builder addAllMethods(Iterable<? extends Method> values)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • clearMethods

      public Api.Builder clearMethods()
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • removeMethods

      public Api.Builder removeMethods(int index)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • getMethodsBuilder

      public Method.Builder getMethodsBuilder(int index)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • getMethodsOrBuilder

      public MethodOrBuilder getMethodsOrBuilder(int index)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
      Specified by:
      getMethodsOrBuilder in interface ApiOrBuilder
    • getMethodsOrBuilderList

      public List<? extends MethodOrBuilder> getMethodsOrBuilderList()
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
      Specified by:
      getMethodsOrBuilderList in interface ApiOrBuilder
    • addMethodsBuilder

      public Method.Builder addMethodsBuilder()
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • addMethodsBuilder

      public Method.Builder addMethodsBuilder(int index)
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • getMethodsBuilderList

      public List<Method.Builder> getMethodsBuilderList()
      The methods of this interface, in unspecified order.
      
      repeated .google.protobuf.Method methods = 2;
    • internalGetMethodsFieldBuilder

      private RepeatedFieldBuilder<Method, Method.Builder, MethodOrBuilder> internalGetMethodsFieldBuilder()
    • ensureOptionsIsMutable

      private void ensureOptionsIsMutable()
    • getOptionsList

      public List<Option> getOptionsList()
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
      Specified by:
      getOptionsList in interface ApiOrBuilder
    • getOptionsCount

      public int getOptionsCount()
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
      Specified by:
      getOptionsCount in interface ApiOrBuilder
    • getOptions

      public Option getOptions(int index)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
      Specified by:
      getOptions in interface ApiOrBuilder
    • setOptions

      public Api.Builder setOptions(int index, Option value)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • setOptions

      public Api.Builder setOptions(int index, Option.Builder builderForValue)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • addOptions

      public Api.Builder addOptions(Option value)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • addOptions

      public Api.Builder addOptions(int index, Option value)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • addOptions

      public Api.Builder addOptions(Option.Builder builderForValue)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • addOptions

      public Api.Builder addOptions(int index, Option.Builder builderForValue)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • addAllOptions

      public Api.Builder addAllOptions(Iterable<? extends Option> values)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • clearOptions

      public Api.Builder clearOptions()
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • removeOptions

      public Api.Builder removeOptions(int index)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • getOptionsBuilder

      public Option.Builder getOptionsBuilder(int index)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • getOptionsOrBuilder

      public OptionOrBuilder getOptionsOrBuilder(int index)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
      Specified by:
      getOptionsOrBuilder in interface ApiOrBuilder
    • getOptionsOrBuilderList

      public List<? extends OptionOrBuilder> getOptionsOrBuilderList()
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
      Specified by:
      getOptionsOrBuilderList in interface ApiOrBuilder
    • addOptionsBuilder

      public Option.Builder addOptionsBuilder()
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • addOptionsBuilder

      public Option.Builder addOptionsBuilder(int index)
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • getOptionsBuilderList

      public List<Option.Builder> getOptionsBuilderList()
      Any metadata attached to the interface.
      
      repeated .google.protobuf.Option options = 3;
    • internalGetOptionsFieldBuilder

      private RepeatedFieldBuilder<Option, Option.Builder, OptionOrBuilder> internalGetOptionsFieldBuilder()
    • getVersion

      public String getVersion()
      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.
      
      string version = 4;
      Specified by:
      getVersion in interface ApiOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public ByteString getVersionBytes()
      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.
      
      string version = 4;
      Specified by:
      getVersionBytes in interface ApiOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Api.Builder setVersion(String value)
      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.
      
      string version = 4;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Api.Builder clearVersion()
      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.
      
      string version = 4;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Api.Builder setVersionBytes(ByteString value)
      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.
      
      string version = 4;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • hasSourceContext

      public boolean hasSourceContext()
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
      Specified by:
      hasSourceContext in interface ApiOrBuilder
      Returns:
      Whether the sourceContext field is set.
    • getSourceContext

      public SourceContext getSourceContext()
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
      Specified by:
      getSourceContext in interface ApiOrBuilder
      Returns:
      The sourceContext.
    • setSourceContext

      public Api.Builder setSourceContext(SourceContext value)
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
    • setSourceContext

      public Api.Builder setSourceContext(SourceContext.Builder builderForValue)
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
    • mergeSourceContext

      public Api.Builder mergeSourceContext(SourceContext value)
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
    • clearSourceContext

      public Api.Builder clearSourceContext()
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
    • getSourceContextBuilder

      public SourceContext.Builder getSourceContextBuilder()
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
    • getSourceContextOrBuilder

      public SourceContextOrBuilder getSourceContextOrBuilder()
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
      Specified by:
      getSourceContextOrBuilder in interface ApiOrBuilder
    • internalGetSourceContextFieldBuilder

      private SingleFieldBuilder<SourceContext, SourceContext.Builder, SourceContextOrBuilder> internalGetSourceContextFieldBuilder()
      Source context for the protocol buffer service represented by this
      message.
      
      .google.protobuf.SourceContext source_context = 5;
    • ensureMixinsIsMutable

      private void ensureMixinsIsMutable()
    • getMixinsList

      public List<Mixin> getMixinsList()
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
      Specified by:
      getMixinsList in interface ApiOrBuilder
    • getMixinsCount

      public int getMixinsCount()
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
      Specified by:
      getMixinsCount in interface ApiOrBuilder
    • getMixins

      public Mixin getMixins(int index)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
      Specified by:
      getMixins in interface ApiOrBuilder
    • setMixins

      public Api.Builder setMixins(int index, Mixin value)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • setMixins

      public Api.Builder setMixins(int index, Mixin.Builder builderForValue)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • addMixins

      public Api.Builder addMixins(Mixin value)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • addMixins

      public Api.Builder addMixins(int index, Mixin value)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • addMixins

      public Api.Builder addMixins(Mixin.Builder builderForValue)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • addMixins

      public Api.Builder addMixins(int index, Mixin.Builder builderForValue)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • addAllMixins

      public Api.Builder addAllMixins(Iterable<? extends Mixin> values)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • clearMixins

      public Api.Builder clearMixins()
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • removeMixins

      public Api.Builder removeMixins(int index)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • getMixinsBuilder

      public Mixin.Builder getMixinsBuilder(int index)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • getMixinsOrBuilder

      public MixinOrBuilder getMixinsOrBuilder(int index)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
      Specified by:
      getMixinsOrBuilder in interface ApiOrBuilder
    • getMixinsOrBuilderList

      public List<? extends MixinOrBuilder> getMixinsOrBuilderList()
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
      Specified by:
      getMixinsOrBuilderList in interface ApiOrBuilder
    • addMixinsBuilder

      public Mixin.Builder addMixinsBuilder()
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • addMixinsBuilder

      public Mixin.Builder addMixinsBuilder(int index)
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • getMixinsBuilderList

      public List<Mixin.Builder> getMixinsBuilderList()
      Included interfaces. See [Mixin][].
      
      repeated .google.protobuf.Mixin mixins = 6;
    • internalGetMixinsFieldBuilder

      private RepeatedFieldBuilder<Mixin, Mixin.Builder, MixinOrBuilder> internalGetMixinsFieldBuilder()
    • getSyntaxValue

      public int getSyntaxValue()
      The source syntax of the service.
      
      .google.protobuf.Syntax syntax = 7;
      Specified by:
      getSyntaxValue in interface ApiOrBuilder
      Returns:
      The enum numeric value on the wire for syntax.
    • setSyntaxValue

      public Api.Builder setSyntaxValue(int value)
      The source syntax of the service.
      
      .google.protobuf.Syntax syntax = 7;
      Parameters:
      value - The enum numeric value on the wire for syntax to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getSyntax

      public Syntax getSyntax()
      The source syntax of the service.
      
      .google.protobuf.Syntax syntax = 7;
      Specified by:
      getSyntax in interface ApiOrBuilder
      Returns:
      The syntax.
    • setSyntax

      public Api.Builder setSyntax(Syntax value)
      The source syntax of the service.
      
      .google.protobuf.Syntax syntax = 7;
      Parameters:
      value - The syntax to set.
      Returns:
      This builder for chaining.
    • clearSyntax

      public Api.Builder clearSyntax()
      The source syntax of the service.
      
      .google.protobuf.Syntax syntax = 7;
      Returns:
      This builder for chaining.
    • getEdition

      public String getEdition()
      The source edition string, only valid when syntax is SYNTAX_EDITIONS.
      
      string edition = 8;
      Specified by:
      getEdition in interface ApiOrBuilder
      Returns:
      The edition.
    • getEditionBytes

      public ByteString getEditionBytes()
      The source edition string, only valid when syntax is SYNTAX_EDITIONS.
      
      string edition = 8;
      Specified by:
      getEditionBytes in interface ApiOrBuilder
      Returns:
      The bytes for edition.
    • setEdition

      public Api.Builder setEdition(String value)
      The source edition string, only valid when syntax is SYNTAX_EDITIONS.
      
      string edition = 8;
      Parameters:
      value - The edition to set.
      Returns:
      This builder for chaining.
    • clearEdition

      public Api.Builder clearEdition()
      The source edition string, only valid when syntax is SYNTAX_EDITIONS.
      
      string edition = 8;
      Returns:
      This builder for chaining.
    • setEditionBytes

      public Api.Builder setEditionBytes(ByteString value)
      The source edition string, only valid when syntax is SYNTAX_EDITIONS.
      
      string edition = 8;
      Parameters:
      value - The bytes for edition to set.
      Returns:
      This builder for chaining.