public static final class Type.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder> implements TypeOrBuilder
A protocol buffer message type.Protobuf type
google.protobuf.Type| Modifier and Type | Method and Description |
|---|---|
Type.Builder |
addAllFields(java.lang.Iterable<? extends Field> values)
The list of fields.
|
Type.Builder |
addAllOneofs(java.lang.Iterable<java.lang.String> values)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
addAllOptions(java.lang.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.
|
Field.Builder |
addFieldsBuilder()
The list of fields.
|
Field.Builder |
addFieldsBuilder(int index)
The list of fields.
|
Type.Builder |
addOneofs(java.lang.String value)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
addOneofsBytes(com.google.protobuf.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.
|
Option.Builder |
addOptionsBuilder()
The protocol buffer options.
|
Option.Builder |
addOptionsBuilder(int index)
The protocol buffer options.
|
Type.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Type |
build() |
Type |
buildPartial() |
Type.Builder |
clear() |
Type.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Type.Builder |
clearFields()
The list of fields.
|
Type.Builder |
clearName()
The fully qualified message name.
|
Type.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.
|
Type.Builder |
clone() |
Type |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Field |
getFields(int index)
The list of fields.
|
Field.Builder |
getFieldsBuilder(int index)
The list of fields.
|
java.util.List<Field.Builder> |
getFieldsBuilderList()
The list of fields.
|
int |
getFieldsCount()
The list of fields.
|
java.util.List<Field> |
getFieldsList()
The list of fields.
|
FieldOrBuilder |
getFieldsOrBuilder(int index)
The list of fields.
|
java.util.List<? extends FieldOrBuilder> |
getFieldsOrBuilderList()
The list of fields.
|
java.lang.String |
getName()
The fully qualified message name.
|
com.google.protobuf.ByteString |
getNameBytes()
The fully qualified message name.
|
java.lang.String |
getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
|
com.google.protobuf.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.
|
com.google.protobuf.ProtocolStringList |
getOneofsList()
The list of types appearing in `oneof` definitions in this type.
|
Option |
getOptions(int index)
The protocol buffer options.
|
Option.Builder |
getOptionsBuilder(int index)
The protocol buffer options.
|
java.util.List<Option.Builder> |
getOptionsBuilderList()
The protocol buffer options.
|
int |
getOptionsCount()
The protocol buffer options.
|
java.util.List<Option> |
getOptionsList()
The protocol buffer options.
|
OptionOrBuilder |
getOptionsOrBuilder(int index)
The protocol buffer options.
|
java.util.List<? extends OptionOrBuilder> |
getOptionsOrBuilderList()
The protocol buffer options.
|
SourceContext |
getSourceContext()
The source context.
|
SourceContext.Builder |
getSourceContextBuilder()
The source context.
|
SourceContextOrBuilder |
getSourceContextOrBuilder()
The source context.
|
Syntax |
getSyntax()
The source syntax.
|
int |
getSyntaxValue()
The source syntax.
|
boolean |
hasSourceContext()
The source context.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Type.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Type.Builder |
mergeFrom(com.google.protobuf.Message other) |
Type.Builder |
mergeFrom(Type other) |
Type.Builder |
mergeSourceContext(SourceContext value)
The source context.
|
Type.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Type.Builder |
removeFields(int index)
The list of fields.
|
Type.Builder |
removeOptions(int index)
The protocol buffer options.
|
Type.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
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(java.lang.String value)
The fully qualified message name.
|
Type.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The fully qualified message name.
|
Type.Builder |
setOneofs(int index,
java.lang.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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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.
|
Type.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Type build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Type buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Type.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Type.Builder>public Type.Builder mergeFrom(Type other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public Type.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Type.Builder>java.io.IOExceptionpublic java.lang.String getName()
The fully qualified message name.
string name = 1;getName in interface TypeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The fully qualified message name.
string name = 1;getNameBytes in interface TypeOrBuilderpublic Type.Builder setName(java.lang.String value)
The fully qualified message name.
string name = 1;public Type.Builder clearName()
The fully qualified message name.
string name = 1;public Type.Builder setNameBytes(com.google.protobuf.ByteString value)
The fully qualified message name.
string name = 1;public java.util.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(java.lang.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 Field.Builder getFieldsBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;public FieldOrBuilder getFieldsOrBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;getFieldsOrBuilder in interface TypeOrBuilderpublic java.util.List<? extends FieldOrBuilder> getFieldsOrBuilderList()
The list of fields.
repeated .google.protobuf.Field fields = 2;getFieldsOrBuilderList in interface TypeOrBuilderpublic Field.Builder addFieldsBuilder()
The list of fields.
repeated .google.protobuf.Field fields = 2;public Field.Builder addFieldsBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;public java.util.List<Field.Builder> getFieldsBuilderList()
The list of fields.
repeated .google.protobuf.Field fields = 2;public com.google.protobuf.ProtocolStringList 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 java.lang.String getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;getOneofs in interface TypeOrBuilderpublic com.google.protobuf.ByteString getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;getOneofsBytes in interface TypeOrBuilderpublic Type.Builder setOneofs(int index, java.lang.String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;public Type.Builder addOneofs(java.lang.String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;public Type.Builder addAllOneofs(java.lang.Iterable<java.lang.String> values)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;public Type.Builder clearOneofs()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;public Type.Builder addOneofsBytes(com.google.protobuf.ByteString value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;public java.util.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(java.lang.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 Option.Builder getOptionsBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public OptionOrBuilder getOptionsOrBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;getOptionsOrBuilder in interface TypeOrBuilderpublic java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;getOptionsOrBuilderList in interface TypeOrBuilderpublic Option.Builder addOptionsBuilder()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public Option.Builder addOptionsBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;public java.util.List<Option.Builder> getOptionsBuilderList()
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 SourceContext.Builder getSourceContextBuilder()
The source context.
.google.protobuf.SourceContext source_context = 5;public SourceContextOrBuilder getSourceContextOrBuilder()
The source context.
.google.protobuf.SourceContext source_context = 5;getSourceContextOrBuilder in interface TypeOrBuilderpublic 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;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;public Type.Builder clearSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 6;public final Type.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>public final Type.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>