public static final class Type.Builder extends GeneratedMessageLite.Builder<Type,Type.Builder> implements TypeOrBuilder
A protocol buffer message type.Protobuf type
google.protobuf.Typeinstance, isBuilt| Modifier and Type | Method and Description |
|---|---|
Type.Builder |
addAllFields(Iterable<? extends Field> values)
The list of fields.
|
Type.Builder |
addAllOneofs(Iterable<String> values)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
addAllOptions(Iterable<? extends Option> values)
The protocol buffer options.
|
Type.Builder |
addFields(Field.Builder builderForValue)
The list of fields.
|
Type.Builder |
addFields(Field value)
The list of fields.
|
Type.Builder |
addFields(int index,
Field.Builder builderForValue)
The list of fields.
|
Type.Builder |
addFields(int index,
Field value)
The list of fields.
|
Type.Builder |
addOneofs(String value)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
addOneofsBytes(ByteString value)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
addOptions(int index,
Option.Builder builderForValue)
The protocol buffer options.
|
Type.Builder |
addOptions(int index,
Option value)
The protocol buffer options.
|
Type.Builder |
addOptions(Option.Builder builderForValue)
The protocol buffer options.
|
Type.Builder |
addOptions(Option value)
The protocol buffer options.
|
Type.Builder |
clearFields()
The list of fields.
|
Type.Builder |
clearName()
The fully qualified message name.
|
Type.Builder |
clearOneofs()
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
clearOptions()
The protocol buffer options.
|
Type.Builder |
clearSourceContext()
The source context.
|
Type.Builder |
clearSyntax()
The source syntax.
|
Field |
getFields(int index)
The list of fields.
|
int |
getFieldsCount()
The list of fields.
|
List<Field> |
getFieldsList()
The list of fields.
|
String |
getName()
The fully qualified message name.
|
ByteString |
getNameBytes()
The fully qualified message name.
|
String |
getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
|
ByteString |
getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
|
int |
getOneofsCount()
The list of types appearing in `oneof` definitions in this type.
|
List<String> |
getOneofsList()
The list of types appearing in `oneof` definitions in this type.
|
Option |
getOptions(int index)
The protocol buffer options.
|
int |
getOptionsCount()
The protocol buffer options.
|
List<Option> |
getOptionsList()
The protocol buffer options.
|
SourceContext |
getSourceContext()
The source context.
|
Syntax |
getSyntax()
The source syntax.
|
int |
getSyntaxValue()
The source syntax.
|
boolean |
hasSourceContext()
The source context.
|
Type.Builder |
mergeSourceContext(SourceContext value)
The source context.
|
Type.Builder |
removeFields(int index)
The list of fields.
|
Type.Builder |
removeOptions(int index)
The protocol buffer options.
|
Type.Builder |
setFields(int index,
Field.Builder builderForValue)
The list of fields.
|
Type.Builder |
setFields(int index,
Field value)
The list of fields.
|
Type.Builder |
setName(String value)
The fully qualified message name.
|
Type.Builder |
setNameBytes(ByteString value)
The fully qualified message name.
|
Type.Builder |
setOneofs(int index,
String value)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
setOptions(int index,
Option.Builder builderForValue)
The protocol buffer options.
|
Type.Builder |
setOptions(int index,
Option value)
The protocol buffer options.
|
Type.Builder |
setSourceContext(SourceContext.Builder builderForValue)
The source context.
|
Type.Builder |
setSourceContext(SourceContext value)
The source context.
|
Type.Builder |
setSyntax(Syntax value)
The source syntax.
|
Type.Builder |
setSyntaxValue(int value)
The source syntax.
|
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultInstanceForType, isInitializedpublic String getName()
The fully qualified message name.
string name = 1;getName in interface TypeOrBuilderpublic ByteString getNameBytes()
The fully qualified message name.
string name = 1;getNameBytes in interface TypeOrBuilderpublic Type.Builder setName(String value)
The fully qualified message name.
string name = 1;value - The name to set.public Type.Builder clearName()
The fully qualified message name.
string name = 1;public Type.Builder setNameBytes(ByteString value)
The fully qualified message name.
string name = 1;value - The bytes for name to set.public List<Field> getFieldsList()
The list of fields.
repeated .google.protobuf.Field fields = 2;getFieldsList in interface TypeOrBuilderpublic int getFieldsCount()
The list of fields.
repeated .google.protobuf.Field fields = 2;getFieldsCount in interface TypeOrBuilderpublic Field getFields(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;getFields in interface TypeOrBuilderpublic Type.Builder setFields(int index, Field value)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder setFields(int index, Field.Builder builderForValue)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder addFields(Field value)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder addFields(int index, Field value)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder addFields(Field.Builder builderForValue)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder addFields(int index, Field.Builder builderForValue)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder addAllFields(Iterable<? extends Field> values)
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder clearFields()
The list of fields.
repeated .google.protobuf.Field fields = 2;public Type.Builder removeFields(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;public List<String> getOneofsList()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;getOneofsList in interface TypeOrBuilderpublic int getOneofsCount()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;getOneofsCount in interface TypeOrBuilderpublic String getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;getOneofs in interface TypeOrBuilderindex - The index of the element to return.public ByteString getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;getOneofsBytes in interface TypeOrBuilderindex - The index of the value to return.public Type.Builder setOneofs(int index, String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;index - The index to set the value at.value - The oneofs to set.public Type.Builder addOneofs(String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;value - The oneofs to add.public Type.Builder addAllOneofs(Iterable<String> values)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;values - The oneofs to add.public Type.Builder clearOneofs()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;public Type.Builder addOneofsBytes(ByteString value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;value - The bytes of the oneofs to add.public List<Option> getOptionsList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;getOptionsList in interface TypeOrBuilderpublic int getOptionsCount()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;getOptionsCount in interface TypeOrBuilderpublic Option getOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;getOptions in interface TypeOrBuilderpublic Type.Builder setOptions(int index, Option value)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder setOptions(int index, Option.Builder builderForValue)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder addOptions(Option value)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder addOptions(int index, Option value)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder addOptions(Option.Builder builderForValue)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder addOptions(int index, Option.Builder builderForValue)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder addAllOptions(Iterable<? extends Option> values)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder clearOptions()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Type.Builder removeOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public boolean hasSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;hasSourceContext in interface TypeOrBuilderpublic SourceContext getSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;getSourceContext in interface TypeOrBuilderpublic Type.Builder setSourceContext(SourceContext value)
The source context.
.google.protobuf.SourceContext source_context = 5;public Type.Builder setSourceContext(SourceContext.Builder builderForValue)
The source context.
.google.protobuf.SourceContext source_context = 5;public Type.Builder mergeSourceContext(SourceContext value)
The source context.
.google.protobuf.SourceContext source_context = 5;public Type.Builder clearSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;public int getSyntaxValue()
The source syntax.
.google.protobuf.Syntax syntax = 6;getSyntaxValue in interface TypeOrBuilderpublic Type.Builder setSyntaxValue(int value)
The source syntax.
.google.protobuf.Syntax syntax = 6;value - The syntax to set.public Syntax getSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 6;getSyntax in interface TypeOrBuilderpublic Type.Builder setSyntax(Syntax value)
The source syntax.
.google.protobuf.Syntax syntax = 6;value - The enum numeric value on the wire for syntax to set.public Type.Builder clearSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 6;Copyright © 2008–2019. All rights reserved.