All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.Api Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/api.proto

package com.google.protobuf;

/**
 * 
 * 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.
 * 
* * Protobuf type {@code google.protobuf.Api} */ public final class Api extends com.google.protobuf.GeneratedMessageLite< Api, Api.Builder> implements // @@protoc_insertion_point(message_implements:google.protobuf.Api) ApiOrBuilder { private Api() { name_ = ""; methods_ = emptyProtobufList(); options_ = emptyProtobufList(); version_ = ""; mixins_ = emptyProtobufList(); } public static final int NAME_FIELD_NUMBER = 1; private java.lang.String name_; /** *
   * The fully qualified name of this interface, including package name
   * followed by the interface's simple name.
   * 
* * string name = 1; */ @java.lang.Override public java.lang.String getName() { return name_; } /** *
   * The fully qualified name of this interface, including package name
   * followed by the interface's simple name.
   * 
* * string name = 1; */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(name_); } /** *
   * The fully qualified name of this interface, including package name
   * followed by the interface's simple name.
   * 
* * string name = 1; */ private void setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; } /** *
   * The fully qualified name of this interface, including package name
   * followed by the interface's simple name.
   * 
* * string name = 1; */ private void clearName() { name_ = getDefaultInstance().getName(); } /** *
   * The fully qualified name of this interface, including package name
   * followed by the interface's simple name.
   * 
* * string name = 1; */ private void setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value.toStringUtf8(); } public static final int METHODS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.ProtobufList methods_; /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ public java.util.List getMethodsOrBuilderList() { return methods_; } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ @java.lang.Override public com.google.protobuf.Method getMethods(int index) { return methods_.get(index); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ public com.google.protobuf.MethodOrBuilder getMethodsOrBuilder( int index) { return methods_.get(index); } private void ensureMethodsIsMutable() { if (!methods_.isModifiable()) { methods_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(methods_); } } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void setMethods( int index, com.google.protobuf.Method value) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.set(index, value); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void setMethods( int index, com.google.protobuf.Method.Builder builderForValue) { ensureMethodsIsMutable(); methods_.set(index, builderForValue.build()); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void addMethods(com.google.protobuf.Method value) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.add(value); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void addMethods( int index, com.google.protobuf.Method value) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.add(index, value); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void addMethods( com.google.protobuf.Method.Builder builderForValue) { ensureMethodsIsMutable(); methods_.add(builderForValue.build()); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void addMethods( int index, com.google.protobuf.Method.Builder builderForValue) { ensureMethodsIsMutable(); methods_.add(index, builderForValue.build()); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void addAllMethods( java.lang.Iterable values) { ensureMethodsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, methods_); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void clearMethods() { methods_ = emptyProtobufList(); } /** *
   * The methods of this interface, in unspecified order.
   * 
* * repeated .google.protobuf.Method methods = 2; */ private void removeMethods(int index) { ensureMethodsIsMutable(); methods_.remove(index); } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.ProtobufList options_; /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ public java.util.List getOptionsOrBuilderList() { return options_; } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ @java.lang.Override public com.google.protobuf.Option getOptions(int index) { return options_.get(index); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } private void ensureOptionsIsMutable() { if (!options_.isModifiable()) { options_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(options_); } } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void setOptions( int index, com.google.protobuf.Option value) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void setOptions( int index, com.google.protobuf.Option.Builder builderForValue) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void addOptions(com.google.protobuf.Option value) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void addOptions( int index, com.google.protobuf.Option value) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void addOptions( com.google.protobuf.Option.Builder builderForValue) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void addOptions( int index, com.google.protobuf.Option.Builder builderForValue) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void addAllOptions( java.lang.Iterable values) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, options_); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void clearOptions() { options_ = emptyProtobufList(); } /** *
   * Any metadata attached to the interface.
   * 
* * repeated .google.protobuf.Option options = 3; */ private void removeOptions(int index) { ensureOptionsIsMutable(); options_.remove(index); } public static final int VERSION_FIELD_NUMBER = 4; private java.lang.String 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.
   * 
* * string version = 4; */ @java.lang.Override public java.lang.String getVersion() { return 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.
   * 
* * string version = 4; */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { return com.google.protobuf.ByteString.copyFromUtf8(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.
   * 
* * string version = 4; */ private void setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = 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; */ private void clearVersion() { version_ = getDefaultInstance().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; */ private void setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value.toStringUtf8(); } public static final int SOURCE_CONTEXT_FIELD_NUMBER = 5; private com.google.protobuf.SourceContext sourceContext_; /** *
   * Source context for the protocol buffer service represented by this
   * message.
   * 
* * .google.protobuf.SourceContext source_context = 5; */ @java.lang.Override public boolean hasSourceContext() { return sourceContext_ != null; } /** *
   * Source context for the protocol buffer service represented by this
   * message.
   * 
* * .google.protobuf.SourceContext source_context = 5; */ @java.lang.Override public com.google.protobuf.SourceContext getSourceContext() { return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; } /** *
   * Source context for the protocol buffer service represented by this
   * message.
   * 
* * .google.protobuf.SourceContext source_context = 5; */ private void setSourceContext(com.google.protobuf.SourceContext value) { if (value == null) { throw new NullPointerException(); } sourceContext_ = value; } /** *
   * Source context for the protocol buffer service represented by this
   * message.
   * 
* * .google.protobuf.SourceContext source_context = 5; */ private void setSourceContext( com.google.protobuf.SourceContext.Builder builderForValue) { sourceContext_ = builderForValue.build(); } /** *
   * Source context for the protocol buffer service represented by this
   * message.
   * 
* * .google.protobuf.SourceContext source_context = 5; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSourceContext(com.google.protobuf.SourceContext value) { if (value == null) { throw new NullPointerException(); } if (sourceContext_ != null && sourceContext_ != com.google.protobuf.SourceContext.getDefaultInstance()) { sourceContext_ = com.google.protobuf.SourceContext.newBuilder(sourceContext_).mergeFrom(value).buildPartial(); } else { sourceContext_ = value; } } /** *
   * Source context for the protocol buffer service represented by this
   * message.
   * 
* * .google.protobuf.SourceContext source_context = 5; */ private void clearSourceContext() { sourceContext_ = null; } public static final int MIXINS_FIELD_NUMBER = 6; private com.google.protobuf.Internal.ProtobufList mixins_; /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ @java.lang.Override public java.util.List getMixinsList() { return mixins_; } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public java.util.List getMixinsOrBuilderList() { return mixins_; } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ @java.lang.Override public int getMixinsCount() { return mixins_.size(); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ @java.lang.Override public com.google.protobuf.Mixin getMixins(int index) { return mixins_.get(index); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public com.google.protobuf.MixinOrBuilder getMixinsOrBuilder( int index) { return mixins_.get(index); } private void ensureMixinsIsMutable() { if (!mixins_.isModifiable()) { mixins_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(mixins_); } } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void setMixins( int index, com.google.protobuf.Mixin value) { if (value == null) { throw new NullPointerException(); } ensureMixinsIsMutable(); mixins_.set(index, value); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void setMixins( int index, com.google.protobuf.Mixin.Builder builderForValue) { ensureMixinsIsMutable(); mixins_.set(index, builderForValue.build()); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void addMixins(com.google.protobuf.Mixin value) { if (value == null) { throw new NullPointerException(); } ensureMixinsIsMutable(); mixins_.add(value); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void addMixins( int index, com.google.protobuf.Mixin value) { if (value == null) { throw new NullPointerException(); } ensureMixinsIsMutable(); mixins_.add(index, value); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void addMixins( com.google.protobuf.Mixin.Builder builderForValue) { ensureMixinsIsMutable(); mixins_.add(builderForValue.build()); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void addMixins( int index, com.google.protobuf.Mixin.Builder builderForValue) { ensureMixinsIsMutable(); mixins_.add(index, builderForValue.build()); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void addAllMixins( java.lang.Iterable values) { ensureMixinsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, mixins_); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void clearMixins() { mixins_ = emptyProtobufList(); } /** *
   * Included interfaces. See [Mixin][].
   * 
* * repeated .google.protobuf.Mixin mixins = 6; */ private void removeMixins(int index) { ensureMixinsIsMutable(); mixins_.remove(index); } public static final int SYNTAX_FIELD_NUMBER = 7; private int syntax_; /** *
   * The source syntax of the service.
   * 
* * .google.protobuf.Syntax syntax = 7; */ @java.lang.Override public int getSyntaxValue() { return syntax_; } /** *
   * The source syntax of the service.
   * 
* * .google.protobuf.Syntax syntax = 7; */ @java.lang.Override public com.google.protobuf.Syntax getSyntax() { com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; } /** *
   * The source syntax of the service.
   * 
* * .google.protobuf.Syntax syntax = 7; */ private void setSyntaxValue(int value) { syntax_ = value; } /** *
   * The source syntax of the service.
   * 
* * .google.protobuf.Syntax syntax = 7; */ private void setSyntax(com.google.protobuf.Syntax value) { if (value == null) { throw new NullPointerException(); } syntax_ = value.getNumber(); } /** *
   * The source syntax of the service.
   * 
* * .google.protobuf.Syntax syntax = 7; */ private void clearSyntax() { syntax_ = 0; } public static com.google.protobuf.Api parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.protobuf.Api parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.google.protobuf.Api parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.protobuf.Api parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.google.protobuf.Api parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.protobuf.Api parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.google.protobuf.Api parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.google.protobuf.Api parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.google.protobuf.Api parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.google.protobuf.Api parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.google.protobuf.Api parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.google.protobuf.Api parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.google.protobuf.Api prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * 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.
   * 
* * Protobuf type {@code google.protobuf.Api} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protobuf.Api, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.Api) com.google.protobuf.ApiOrBuilder { // Construct using com.google.protobuf.Api.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * The fully qualified name of this interface, including package name
     * followed by the interface's simple name.
     * 
* * string name = 1; */ @java.lang.Override public java.lang.String getName() { return instance.getName(); } /** *
     * The fully qualified name of this interface, including package name
     * followed by the interface's simple name.
     * 
* * string name = 1; */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return instance.getNameBytes(); } /** *
     * The fully qualified name of this interface, including package name
     * followed by the interface's simple name.
     * 
* * string name = 1; */ public Builder setName( java.lang.String value) { copyOnWrite(); instance.setName(value); return this; } /** *
     * The fully qualified name of this interface, including package name
     * followed by the interface's simple name.
     * 
* * string name = 1; */ public Builder clearName() { copyOnWrite(); instance.clearName(); return this; } /** *
     * The fully qualified name of this interface, including package name
     * followed by the interface's simple name.
     * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNameBytes(value); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ @java.lang.Override public java.util.List getMethodsList() { return java.util.Collections.unmodifiableList( instance.getMethodsList()); } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ @java.lang.Override public int getMethodsCount() { return instance.getMethodsCount(); }/** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ @java.lang.Override public com.google.protobuf.Method getMethods(int index) { return instance.getMethods(index); } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder setMethods( int index, com.google.protobuf.Method value) { copyOnWrite(); instance.setMethods(index, value); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder setMethods( int index, com.google.protobuf.Method.Builder builderForValue) { copyOnWrite(); instance.setMethods(index, builderForValue); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder addMethods(com.google.protobuf.Method value) { copyOnWrite(); instance.addMethods(value); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder addMethods( int index, com.google.protobuf.Method value) { copyOnWrite(); instance.addMethods(index, value); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder addMethods( com.google.protobuf.Method.Builder builderForValue) { copyOnWrite(); instance.addMethods(builderForValue); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder addMethods( int index, com.google.protobuf.Method.Builder builderForValue) { copyOnWrite(); instance.addMethods(index, builderForValue); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder addAllMethods( java.lang.Iterable values) { copyOnWrite(); instance.addAllMethods(values); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder clearMethods() { copyOnWrite(); instance.clearMethods(); return this; } /** *
     * The methods of this interface, in unspecified order.
     * 
* * repeated .google.protobuf.Method methods = 2; */ public Builder removeMethods(int index) { copyOnWrite(); instance.removeMethods(index); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ @java.lang.Override public java.util.List getOptionsList() { return java.util.Collections.unmodifiableList( instance.getOptionsList()); } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ @java.lang.Override public int getOptionsCount() { return instance.getOptionsCount(); }/** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ @java.lang.Override public com.google.protobuf.Option getOptions(int index) { return instance.getOptions(index); } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder setOptions( int index, com.google.protobuf.Option value) { copyOnWrite(); instance.setOptions(index, value); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder setOptions( int index, com.google.protobuf.Option.Builder builderForValue) { copyOnWrite(); instance.setOptions(index, builderForValue); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder addOptions(com.google.protobuf.Option value) { copyOnWrite(); instance.addOptions(value); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder addOptions( int index, com.google.protobuf.Option value) { copyOnWrite(); instance.addOptions(index, value); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder addOptions( com.google.protobuf.Option.Builder builderForValue) { copyOnWrite(); instance.addOptions(builderForValue); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder addOptions( int index, com.google.protobuf.Option.Builder builderForValue) { copyOnWrite(); instance.addOptions(index, builderForValue); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder addAllOptions( java.lang.Iterable values) { copyOnWrite(); instance.addAllOptions(values); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder clearOptions() { copyOnWrite(); instance.clearOptions(); return this; } /** *
     * Any metadata attached to the interface.
     * 
* * repeated .google.protobuf.Option options = 3; */ public Builder removeOptions(int index) { copyOnWrite(); instance.removeOptions(index); return this; } /** *
     * 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; */ @java.lang.Override public java.lang.String getVersion() { return instance.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; */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { return instance.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; */ public Builder setVersion( java.lang.String value) { copyOnWrite(); instance.setVersion(value); return this; } /** *
     * 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; */ public Builder clearVersion() { copyOnWrite(); instance.clearVersion(); return this; } /** *
     * 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; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setVersionBytes(value); return this; } /** *
     * Source context for the protocol buffer service represented by this
     * message.
     * 
* * .google.protobuf.SourceContext source_context = 5; */ @java.lang.Override public boolean hasSourceContext() { return instance.hasSourceContext(); } /** *
     * Source context for the protocol buffer service represented by this
     * message.
     * 
* * .google.protobuf.SourceContext source_context = 5; */ @java.lang.Override public com.google.protobuf.SourceContext getSourceContext() { return instance.getSourceContext(); } /** *
     * Source context for the protocol buffer service represented by this
     * message.
     * 
* * .google.protobuf.SourceContext source_context = 5; */ public Builder setSourceContext(com.google.protobuf.SourceContext value) { copyOnWrite(); instance.setSourceContext(value); return this; } /** *
     * Source context for the protocol buffer service represented by this
     * message.
     * 
* * .google.protobuf.SourceContext source_context = 5; */ public Builder setSourceContext( com.google.protobuf.SourceContext.Builder builderForValue) { copyOnWrite(); instance.setSourceContext(builderForValue); return this; } /** *
     * Source context for the protocol buffer service represented by this
     * message.
     * 
* * .google.protobuf.SourceContext source_context = 5; */ public Builder mergeSourceContext(com.google.protobuf.SourceContext value) { copyOnWrite(); instance.mergeSourceContext(value); return this; } /** *
     * Source context for the protocol buffer service represented by this
     * message.
     * 
* * .google.protobuf.SourceContext source_context = 5; */ public Builder clearSourceContext() { copyOnWrite(); instance.clearSourceContext(); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ @java.lang.Override public java.util.List getMixinsList() { return java.util.Collections.unmodifiableList( instance.getMixinsList()); } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ @java.lang.Override public int getMixinsCount() { return instance.getMixinsCount(); }/** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ @java.lang.Override public com.google.protobuf.Mixin getMixins(int index) { return instance.getMixins(index); } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder setMixins( int index, com.google.protobuf.Mixin value) { copyOnWrite(); instance.setMixins(index, value); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder setMixins( int index, com.google.protobuf.Mixin.Builder builderForValue) { copyOnWrite(); instance.setMixins(index, builderForValue); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder addMixins(com.google.protobuf.Mixin value) { copyOnWrite(); instance.addMixins(value); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder addMixins( int index, com.google.protobuf.Mixin value) { copyOnWrite(); instance.addMixins(index, value); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder addMixins( com.google.protobuf.Mixin.Builder builderForValue) { copyOnWrite(); instance.addMixins(builderForValue); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder addMixins( int index, com.google.protobuf.Mixin.Builder builderForValue) { copyOnWrite(); instance.addMixins(index, builderForValue); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder addAllMixins( java.lang.Iterable values) { copyOnWrite(); instance.addAllMixins(values); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder clearMixins() { copyOnWrite(); instance.clearMixins(); return this; } /** *
     * Included interfaces. See [Mixin][].
     * 
* * repeated .google.protobuf.Mixin mixins = 6; */ public Builder removeMixins(int index) { copyOnWrite(); instance.removeMixins(index); return this; } /** *
     * The source syntax of the service.
     * 
* * .google.protobuf.Syntax syntax = 7; */ @java.lang.Override public int getSyntaxValue() { return instance.getSyntaxValue(); } /** *
     * The source syntax of the service.
     * 
* * .google.protobuf.Syntax syntax = 7; */ public Builder setSyntaxValue(int value) { copyOnWrite(); instance.setSyntaxValue(value); return this; } /** *
     * The source syntax of the service.
     * 
* * .google.protobuf.Syntax syntax = 7; */ @java.lang.Override public com.google.protobuf.Syntax getSyntax() { return instance.getSyntax(); } /** *
     * The source syntax of the service.
     * 
* * .google.protobuf.Syntax syntax = 7; */ public Builder setSyntax(com.google.protobuf.Syntax value) { copyOnWrite(); instance.setSyntax(value); return this; } /** *
     * The source syntax of the service.
     * 
* * .google.protobuf.Syntax syntax = 7; */ public Builder clearSyntax() { copyOnWrite(); instance.clearSyntax(); return this; } // @@protoc_insertion_point(builder_scope:google.protobuf.Api) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.google.protobuf.Api(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "name_", "methods_", com.google.protobuf.Method.class, "options_", com.google.protobuf.Option.class, "version_", "sourceContext_", "mixins_", com.google.protobuf.Mixin.class, "syntax_", }; java.lang.String info = "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0003\u0000\u0001\u0208\u0002\u001b" + "\u0003\u001b\u0004\u0208\u0005\t\u0006\u001b\u0007\f"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.google.protobuf.Api.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:google.protobuf.Api) private static final com.google.protobuf.Api DEFAULT_INSTANCE; static { // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = new Api(); } static { com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Api.class, DEFAULT_INSTANCE); } public static com.google.protobuf.Api getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy