Package com.google.protobuf
Class Api.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Api,Api.Builder>
-
- com.google.protobuf.Api.Builder
-
- All Implemented Interfaces:
ApiOrBuilder
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Api
public static final class Api.Builder extends GeneratedMessageLite.Builder<Api,Api.Builder> implements ApiOrBuilder
Protobuf typegoogle.protobuf.Api
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Api.Builder
addAllMethods(java.lang.Iterable<? extends Method> values)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
addAllMixins(java.lang.Iterable<? extends Mixin> values)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
addAllOptions(java.lang.Iterable<? extends Option> values)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
addMethods(int index, Method value)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
addMethods(int index, Method.Builder builderForValue)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
addMethods(Method value)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
addMethods(Method.Builder builderForValue)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
addMixins(int index, Mixin value)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
addMixins(int index, Mixin.Builder builderForValue)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
addMixins(Mixin value)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
addMixins(Mixin.Builder builderForValue)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
addOptions(int index, Option value)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
addOptions(int index, Option.Builder builderForValue)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
addOptions(Option value)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
addOptions(Option.Builder builderForValue)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
clearMethods()
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
clearMixins()
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
clearName()
string name = 1 [json_name = "name"];
Api.Builder
clearOptions()
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
clearSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Api.Builder
clearSyntax()
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
Api.Builder
clearVersion()
string version = 4 [json_name = "version"];
Method
getMethods(int index)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
int
getMethodsCount()
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
java.util.List<Method>
getMethodsList()
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Mixin
getMixins(int index)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
int
getMixinsCount()
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
java.util.List<Mixin>
getMixinsList()
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
java.lang.String
getName()
string name = 1 [json_name = "name"];
ByteString
getNameBytes()
string name = 1 [json_name = "name"];
Option
getOptions(int index)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
int
getOptionsCount()
repeated .google.protobuf.Option options = 3 [json_name = "options"];
java.util.List<Option>
getOptionsList()
repeated .google.protobuf.Option options = 3 [json_name = "options"];
SourceContext
getSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Syntax
getSyntax()
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
int
getSyntaxValue()
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
java.lang.String
getVersion()
string version = 4 [json_name = "version"];
ByteString
getVersionBytes()
string version = 4 [json_name = "version"];
boolean
hasSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Api.Builder
mergeSourceContext(SourceContext value)
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Api.Builder
removeMethods(int index)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
removeMixins(int index)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
removeOptions(int index)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
setMethods(int index, Method value)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
setMethods(int index, Method.Builder builderForValue)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
Api.Builder
setMixins(int index, Mixin value)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
setMixins(int index, Mixin.Builder builderForValue)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
Api.Builder
setName(java.lang.String value)
string name = 1 [json_name = "name"];
Api.Builder
setNameBytes(ByteString value)
string name = 1 [json_name = "name"];
Api.Builder
setOptions(int index, Option value)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
setOptions(int index, Option.Builder builderForValue)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
Api.Builder
setSourceContext(SourceContext value)
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Api.Builder
setSourceContext(SourceContext.Builder builderForValue)
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Api.Builder
setSyntax(Syntax value)
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
Api.Builder
setSyntaxValue(int value)
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
Api.Builder
setVersion(java.lang.String value)
string version = 4 [json_name = "version"];
Api.Builder
setVersionBytes(ByteString value)
string version = 4 [json_name = "version"];
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceApiOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for name.
-
setName
public Api.Builder setName(java.lang.String value)
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Api.Builder clearName()
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
public Api.Builder setNameBytes(ByteString value)
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getMethodsList
public java.util.List<Method> getMethodsList()
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
- Specified by:
getMethodsList
in interfaceApiOrBuilder
-
getMethodsCount
public int getMethodsCount()
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
- Specified by:
getMethodsCount
in interfaceApiOrBuilder
-
getMethods
public Method getMethods(int index)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
- Specified by:
getMethods
in interfaceApiOrBuilder
-
setMethods
public Api.Builder setMethods(int index, Method value)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
setMethods
public Api.Builder setMethods(int index, Method.Builder builderForValue)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
addMethods
public Api.Builder addMethods(Method value)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
addMethods
public Api.Builder addMethods(int index, Method value)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
addMethods
public Api.Builder addMethods(Method.Builder builderForValue)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
addMethods
public Api.Builder addMethods(int index, Method.Builder builderForValue)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
addAllMethods
public Api.Builder addAllMethods(java.lang.Iterable<? extends Method> values)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
clearMethods
public Api.Builder clearMethods()
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
removeMethods
public Api.Builder removeMethods(int index)
repeated .google.protobuf.Method methods = 2 [json_name = "methods"];
-
getOptionsList
public java.util.List<Option> getOptionsList()
repeated .google.protobuf.Option options = 3 [json_name = "options"];
- Specified by:
getOptionsList
in interfaceApiOrBuilder
-
getOptionsCount
public int getOptionsCount()
repeated .google.protobuf.Option options = 3 [json_name = "options"];
- Specified by:
getOptionsCount
in interfaceApiOrBuilder
-
getOptions
public Option getOptions(int index)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
- Specified by:
getOptions
in interfaceApiOrBuilder
-
setOptions
public Api.Builder setOptions(int index, Option value)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
setOptions
public Api.Builder setOptions(int index, Option.Builder builderForValue)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
addOptions
public Api.Builder addOptions(Option value)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
addOptions
public Api.Builder addOptions(int index, Option value)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
addOptions
public Api.Builder addOptions(Option.Builder builderForValue)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
addOptions
public Api.Builder addOptions(int index, Option.Builder builderForValue)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
addAllOptions
public Api.Builder addAllOptions(java.lang.Iterable<? extends Option> values)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
clearOptions
public Api.Builder clearOptions()
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
removeOptions
public Api.Builder removeOptions(int index)
repeated .google.protobuf.Option options = 3 [json_name = "options"];
-
getVersion
public java.lang.String getVersion()
string version = 4 [json_name = "version"];
- Specified by:
getVersion
in interfaceApiOrBuilder
- Returns:
- The version.
-
getVersionBytes
public ByteString getVersionBytes()
string version = 4 [json_name = "version"];
- Specified by:
getVersionBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for version.
-
setVersion
public Api.Builder setVersion(java.lang.String value)
string version = 4 [json_name = "version"];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Api.Builder clearVersion()
string version = 4 [json_name = "version"];
- Returns:
- This builder for chaining.
-
setVersionBytes
public Api.Builder setVersionBytes(ByteString value)
string version = 4 [json_name = "version"];
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasSourceContext
public boolean hasSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
- Specified by:
hasSourceContext
in interfaceApiOrBuilder
- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
public SourceContext getSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
- Specified by:
getSourceContext
in interfaceApiOrBuilder
- Returns:
- The sourceContext.
-
setSourceContext
public Api.Builder setSourceContext(SourceContext value)
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
-
setSourceContext
public Api.Builder setSourceContext(SourceContext.Builder builderForValue)
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
-
mergeSourceContext
public Api.Builder mergeSourceContext(SourceContext value)
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
-
clearSourceContext
public Api.Builder clearSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
-
getMixinsList
public java.util.List<Mixin> getMixinsList()
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
- Specified by:
getMixinsList
in interfaceApiOrBuilder
-
getMixinsCount
public int getMixinsCount()
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
- Specified by:
getMixinsCount
in interfaceApiOrBuilder
-
getMixins
public Mixin getMixins(int index)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
- Specified by:
getMixins
in interfaceApiOrBuilder
-
setMixins
public Api.Builder setMixins(int index, Mixin value)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
setMixins
public Api.Builder setMixins(int index, Mixin.Builder builderForValue)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
addMixins
public Api.Builder addMixins(Mixin value)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
addMixins
public Api.Builder addMixins(int index, Mixin value)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
addMixins
public Api.Builder addMixins(Mixin.Builder builderForValue)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
addMixins
public Api.Builder addMixins(int index, Mixin.Builder builderForValue)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
addAllMixins
public Api.Builder addAllMixins(java.lang.Iterable<? extends Mixin> values)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
clearMixins
public Api.Builder clearMixins()
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
removeMixins
public Api.Builder removeMixins(int index)
repeated .google.protobuf.Mixin mixins = 6 [json_name = "mixins"];
-
getSyntaxValue
public int getSyntaxValue()
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
- Specified by:
getSyntaxValue
in interfaceApiOrBuilder
- Returns:
- The enum numeric value on the wire for syntax.
-
setSyntaxValue
public Api.Builder setSyntaxValue(int value)
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
- Parameters:
value
- The syntax to set.- Returns:
- This builder for chaining.
-
getSyntax
public Syntax getSyntax()
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
- Specified by:
getSyntax
in interfaceApiOrBuilder
- Returns:
- The syntax.
-
setSyntax
public Api.Builder setSyntax(Syntax value)
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
- Parameters:
value
- The enum numeric value on the wire for syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
public Api.Builder clearSyntax()
.google.protobuf.Syntax syntax = 7 [json_name = "syntax"];
- Returns:
- This builder for chaining.
-
-