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(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.
|
Field.Builder |
addFieldsBuilder()
The list of fields.
|
Field.Builder |
addFieldsBuilder(int index)
The list of fields.
|
Type.Builder |
addOneofs(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,
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.
|
List<Field.Builder> |
getFieldsBuilderList()
The list of fields.
|
int |
getFieldsCount()
The list of fields.
|
List<Field> |
getFieldsList()
The list of fields.
|
FieldOrBuilder |
getFieldsOrBuilder(int index)
The list of fields.
|
List<? extends FieldOrBuilder> |
getFieldsOrBuilderList()
The list of fields.
|
String |
getName()
The fully qualified message name.
|
com.google.protobuf.ByteString |
getNameBytes()
The fully qualified message name.
|
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.
|
List<Option.Builder> |
getOptionsBuilderList()
The protocol buffer options.
|
int |
getOptionsCount()
The protocol buffer options.
|
List<Option> |
getOptionsList()
The protocol buffer options.
|
OptionOrBuilder |
getOptionsOrBuilder(int index)
The protocol buffer options.
|
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,
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(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,
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,
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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
public Type getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Type build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Type buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Type.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
public Type.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
public Type.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
public Type.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
public Type.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Type.Builder>
IOException
public String getName()
The fully qualified message name.
string name = 1;
getName
in interface TypeOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The fully qualified message name.
string name = 1;
getNameBytes
in interface TypeOrBuilder
public 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(com.google.protobuf.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 TypeOrBuilder
public int getFieldsCount()
The list of fields.
repeated .google.protobuf.Field fields = 2;
getFieldsCount
in interface TypeOrBuilder
public Field getFields(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;
getFields
in interface TypeOrBuilder
public 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 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 TypeOrBuilder
public List<? extends FieldOrBuilder> getFieldsOrBuilderList()
The list of fields.
repeated .google.protobuf.Field fields = 2;
getFieldsOrBuilderList
in interface TypeOrBuilder
public 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 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 TypeOrBuilder
public int getOneofsCount()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;
getOneofsCount
in interface TypeOrBuilder
public String getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;
getOneofs
in interface TypeOrBuilder
index
- The index of the element to return.public 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 TypeOrBuilder
index
- 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(com.google.protobuf.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 TypeOrBuilder
public int getOptionsCount()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
getOptionsCount
in interface TypeOrBuilder
public Option getOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
getOptions
in interface TypeOrBuilder
public 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 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 TypeOrBuilder
public List<? extends OptionOrBuilder> getOptionsOrBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
getOptionsOrBuilderList
in interface TypeOrBuilder
public 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 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 TypeOrBuilder
public SourceContext getSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;
getSourceContext
in interface TypeOrBuilder
public 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 TypeOrBuilder
public int getSyntaxValue()
The source syntax.
.google.protobuf.Syntax syntax = 6;
getSyntaxValue
in interface TypeOrBuilder
public Type.Builder setSyntaxValue(int value)
The source syntax.
.google.protobuf.Syntax syntax = 6;
value
- The enum numeric value on the wire for syntax to set.public Syntax getSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 6;
getSyntax
in interface TypeOrBuilder
public Type.Builder setSyntax(Syntax value)
The source syntax.
.google.protobuf.Syntax syntax = 6;
value
- The syntax to set.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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
Copyright © 2008–2022. All rights reserved.