Package com.google.protobuf
Class Api.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
- com.google.protobuf.Api.Builder
-
- All Implemented Interfaces:
ApiOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Api
public static final class Api.Builder extends com.google.protobuf.GeneratedMessageV3.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.
Protobuf typegoogle.protobuf.Api
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Api.BuilderaddAllMethods(java.lang.Iterable<? extends Method> values)The methods of this interface, in unspecified order.Api.BuilderaddAllMixins(java.lang.Iterable<? extends Mixin> values)Included interfaces.Api.BuilderaddAllOptions(java.lang.Iterable<? extends Option> values)Any metadata attached to the interface.Api.BuilderaddMethods(int index, Method value)The methods of this interface, in unspecified order.Api.BuilderaddMethods(int index, Method.Builder builderForValue)The methods of this interface, in unspecified order.Api.BuilderaddMethods(Method value)The methods of this interface, in unspecified order.Api.BuilderaddMethods(Method.Builder builderForValue)The methods of this interface, in unspecified order.Method.BuilderaddMethodsBuilder()The methods of this interface, in unspecified order.Method.BuilderaddMethodsBuilder(int index)The methods of this interface, in unspecified order.Api.BuilderaddMixins(int index, Mixin value)Included interfaces.Api.BuilderaddMixins(int index, Mixin.Builder builderForValue)Included interfaces.Api.BuilderaddMixins(Mixin value)Included interfaces.Api.BuilderaddMixins(Mixin.Builder builderForValue)Included interfaces.Mixin.BuilderaddMixinsBuilder()Included interfaces.Mixin.BuilderaddMixinsBuilder(int index)Included interfaces.Api.BuilderaddOptions(int index, Option value)Any metadata attached to the interface.Api.BuilderaddOptions(int index, Option.Builder builderForValue)Any metadata attached to the interface.Api.BuilderaddOptions(Option value)Any metadata attached to the interface.Api.BuilderaddOptions(Option.Builder builderForValue)Any metadata attached to the interface.Option.BuilderaddOptionsBuilder()Any metadata attached to the interface.Option.BuilderaddOptionsBuilder(int index)Any metadata attached to the interface.Api.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Apibuild()ApibuildPartial()Api.Builderclear()Api.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Api.BuilderclearMethods()The methods of this interface, in unspecified order.Api.BuilderclearMixins()Included interfaces.Api.BuilderclearName()The fully qualified name of this interface, including package name followed by the interface's simple name.Api.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Api.BuilderclearOptions()Any metadata attached to the interface.Api.BuilderclearSourceContext()Source context for the protocol buffer service represented by this message.Api.BuilderclearSyntax()The source syntax of the service.Api.BuilderclearVersion()A version string for this interface.Api.Builderclone()ApigetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MethodgetMethods(int index)The methods of this interface, in unspecified order.Method.BuildergetMethodsBuilder(int index)The methods of this interface, in unspecified order.java.util.List<Method.Builder>getMethodsBuilderList()The methods of this interface, in unspecified order.intgetMethodsCount()The methods of this interface, in unspecified order.java.util.List<Method>getMethodsList()The methods of this interface, in unspecified order.MethodOrBuildergetMethodsOrBuilder(int index)The methods of this interface, in unspecified order.java.util.List<? extends MethodOrBuilder>getMethodsOrBuilderList()The methods of this interface, in unspecified order.MixingetMixins(int index)Included interfaces.Mixin.BuildergetMixinsBuilder(int index)Included interfaces.java.util.List<Mixin.Builder>getMixinsBuilderList()Included interfaces.intgetMixinsCount()Included interfaces.java.util.List<Mixin>getMixinsList()Included interfaces.MixinOrBuildergetMixinsOrBuilder(int index)Included interfaces.java.util.List<? extends MixinOrBuilder>getMixinsOrBuilderList()Included interfaces.java.lang.StringgetName()The fully qualified name of this interface, including package name followed by the interface's simple name.com.google.protobuf.ByteStringgetNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.OptiongetOptions(int index)Any metadata attached to the interface.Option.BuildergetOptionsBuilder(int index)Any metadata attached to the interface.java.util.List<Option.Builder>getOptionsBuilderList()Any metadata attached to the interface.intgetOptionsCount()Any metadata attached to the interface.java.util.List<Option>getOptionsList()Any metadata attached to the interface.OptionOrBuildergetOptionsOrBuilder(int index)Any metadata attached to the interface.java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()Any metadata attached to the interface.SourceContextgetSourceContext()Source context for the protocol buffer service represented by this message.SourceContext.BuildergetSourceContextBuilder()Source context for the protocol buffer service represented by this message.SourceContextOrBuildergetSourceContextOrBuilder()Source context for the protocol buffer service represented by this message.SyntaxgetSyntax()The source syntax of the service.intgetSyntaxValue()The source syntax of the service.java.lang.StringgetVersion()A version string for this interface.com.google.protobuf.ByteStringgetVersionBytes()A version string for this interface.booleanhasSourceContext()Source context for the protocol buffer service represented by this message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Api.BuildermergeFrom(Api other)Api.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Api.BuildermergeFrom(com.google.protobuf.Message other)Api.BuildermergeSourceContext(SourceContext value)Source context for the protocol buffer service represented by this message.Api.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Api.BuilderremoveMethods(int index)The methods of this interface, in unspecified order.Api.BuilderremoveMixins(int index)Included interfaces.Api.BuilderremoveOptions(int index)Any metadata attached to the interface.Api.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Api.BuildersetMethods(int index, Method value)The methods of this interface, in unspecified order.Api.BuildersetMethods(int index, Method.Builder builderForValue)The methods of this interface, in unspecified order.Api.BuildersetMixins(int index, Mixin value)Included interfaces.Api.BuildersetMixins(int index, Mixin.Builder builderForValue)Included interfaces.Api.BuildersetName(java.lang.String value)The fully qualified name of this interface, including package name followed by the interface's simple name.Api.BuildersetNameBytes(com.google.protobuf.ByteString value)The fully qualified name of this interface, including package name followed by the interface's simple name.Api.BuildersetOptions(int index, Option value)Any metadata attached to the interface.Api.BuildersetOptions(int index, Option.Builder builderForValue)Any metadata attached to the interface.Api.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Api.BuildersetSourceContext(SourceContext value)Source context for the protocol buffer service represented by this message.Api.BuildersetSourceContext(SourceContext.Builder builderForValue)Source context for the protocol buffer service represented by this message.Api.BuildersetSyntax(Syntax value)The source syntax of the service.Api.BuildersetSyntaxValue(int value)The source syntax of the service.Api.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Api.BuildersetVersion(java.lang.String value)A version string for this interface.Api.BuildersetVersionBytes(com.google.protobuf.ByteString value)A version string for this interface.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
clear
public Api.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
getDefaultInstanceForType
public Api getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Api build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Api buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Api.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
setField
public Api.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
clearField
public Api.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
clearOneof
public Api.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
setRepeatedField
public Api.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
addRepeatedField
public Api.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
mergeFrom
public Api.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Api.Builder>
-
mergeFrom
public Api.Builder mergeFrom(Api other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
mergeFrom
public Api.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Api.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The fully qualified name of this interface, including package name followed by the interface's simple name.
string name = 1;- Specified by:
getNamein interfaceApiOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The fully qualified name of this interface, including package name followed by the interface's simple name.
string name = 1;- Specified by:
getNameBytesin interfaceApiOrBuilder- Returns:
- The bytes for name.
-
setName
public Api.Builder setName(java.lang.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(com.google.protobuf.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.
-
getMethodsList
public java.util.List<Method> getMethodsList()
The methods of this interface, in unspecified order.
repeated .google.protobuf.Method methods = 2;- Specified by:
getMethodsListin interfaceApiOrBuilder
-
getMethodsCount
public int getMethodsCount()
The methods of this interface, in unspecified order.
repeated .google.protobuf.Method methods = 2;- Specified by:
getMethodsCountin interfaceApiOrBuilder
-
getMethods
public Method getMethods(int index)
The methods of this interface, in unspecified order.
repeated .google.protobuf.Method methods = 2;- Specified by:
getMethodsin interfaceApiOrBuilder
-
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(java.lang.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:
getMethodsOrBuilderin interfaceApiOrBuilder
-
getMethodsOrBuilderList
public java.util.List<? extends MethodOrBuilder> getMethodsOrBuilderList()
The methods of this interface, in unspecified order.
repeated .google.protobuf.Method methods = 2;- Specified by:
getMethodsOrBuilderListin interfaceApiOrBuilder
-
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 java.util.List<Method.Builder> getMethodsBuilderList()
The methods of this interface, in unspecified order.
repeated .google.protobuf.Method methods = 2;
-
getOptionsList
public java.util.List<Option> getOptionsList()
Any metadata attached to the interface.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsListin interfaceApiOrBuilder
-
getOptionsCount
public int getOptionsCount()
Any metadata attached to the interface.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsCountin interfaceApiOrBuilder
-
getOptions
public Option getOptions(int index)
Any metadata attached to the interface.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsin interfaceApiOrBuilder
-
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(java.lang.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:
getOptionsOrBuilderin interfaceApiOrBuilder
-
getOptionsOrBuilderList
public java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
Any metadata attached to the interface.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsOrBuilderListin interfaceApiOrBuilder
-
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 java.util.List<Option.Builder> getOptionsBuilderList()
Any metadata attached to the interface.
repeated .google.protobuf.Option options = 3;
-
getVersion
public java.lang.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:
getVersionin interfaceApiOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.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:
getVersionBytesin interfaceApiOrBuilder- Returns:
- The bytes for version.
-
setVersion
public Api.Builder setVersion(java.lang.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(com.google.protobuf.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:
hasSourceContextin interfaceApiOrBuilder- 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:
getSourceContextin interfaceApiOrBuilder- 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:
getSourceContextOrBuilderin interfaceApiOrBuilder
-
getMixinsList
public java.util.List<Mixin> getMixinsList()
Included interfaces. See [Mixin][].
repeated .google.protobuf.Mixin mixins = 6;- Specified by:
getMixinsListin interfaceApiOrBuilder
-
getMixinsCount
public int getMixinsCount()
Included interfaces. See [Mixin][].
repeated .google.protobuf.Mixin mixins = 6;- Specified by:
getMixinsCountin interfaceApiOrBuilder
-
getMixins
public Mixin getMixins(int index)
Included interfaces. See [Mixin][].
repeated .google.protobuf.Mixin mixins = 6;- Specified by:
getMixinsin interfaceApiOrBuilder
-
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(java.lang.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:
getMixinsOrBuilderin interfaceApiOrBuilder
-
getMixinsOrBuilderList
public java.util.List<? extends MixinOrBuilder> getMixinsOrBuilderList()
Included interfaces. See [Mixin][].
repeated .google.protobuf.Mixin mixins = 6;- Specified by:
getMixinsOrBuilderListin interfaceApiOrBuilder
-
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 java.util.List<Mixin.Builder> getMixinsBuilderList()
Included interfaces. See [Mixin][].
repeated .google.protobuf.Mixin mixins = 6;
-
getSyntaxValue
public int getSyntaxValue()
The source syntax of the service.
.google.protobuf.Syntax syntax = 7;- Specified by:
getSyntaxValuein interfaceApiOrBuilder- 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.
-
getSyntax
public Syntax getSyntax()
The source syntax of the service.
.google.protobuf.Syntax syntax = 7;- Specified by:
getSyntaxin interfaceApiOrBuilder- 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.
-
setUnknownFields
public final Api.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
mergeUnknownFields
public final Api.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
-