Package com.google.protobuf
Class Type.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
-
- com.google.protobuf.Type.Builder
-
- All Implemented Interfaces:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,TypeOrBuilder,java.lang.Cloneable
- Enclosing class:
- Type
public static final class Type.Builder extends GeneratedMessageV3.Builder<Type.Builder> implements TypeOrBuilder
A protocol buffer message type.
Protobuf typegoogle.protobuf.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Type.BuilderaddAllFields(java.lang.Iterable<? extends Field> values)The list of fields.Type.BuilderaddAllOneofs(java.lang.Iterable<java.lang.String> values)The list of types appearing in `oneof` definitions in this type.Type.BuilderaddAllOptions(java.lang.Iterable<? extends Option> values)The protocol buffer options.Type.BuilderaddFields(int index, Field value)The list of fields.Type.BuilderaddFields(int index, Field.Builder builderForValue)The list of fields.Type.BuilderaddFields(Field value)The list of fields.Type.BuilderaddFields(Field.Builder builderForValue)The list of fields.Field.BuilderaddFieldsBuilder()The list of fields.Field.BuilderaddFieldsBuilder(int index)The list of fields.Type.BuilderaddOneofs(java.lang.String value)The list of types appearing in `oneof` definitions in this type.Type.BuilderaddOneofsBytes(ByteString value)The list of types appearing in `oneof` definitions in this type.Type.BuilderaddOptions(int index, Option value)The protocol buffer options.Type.BuilderaddOptions(int index, Option.Builder builderForValue)The protocol buffer options.Type.BuilderaddOptions(Option value)The protocol buffer options.Type.BuilderaddOptions(Option.Builder builderForValue)The protocol buffer options.Option.BuilderaddOptionsBuilder()The protocol buffer options.Option.BuilderaddOptionsBuilder(int index)The protocol buffer options.Type.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Typebuild()Constructs the message based on the state of the Builder.TypebuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Type.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Type.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Type.BuilderclearFields()The list of fields.Type.BuilderclearName()The fully qualified message name.Type.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Type.BuilderclearOneofs()The list of types appearing in `oneof` definitions in this type.Type.BuilderclearOptions()The protocol buffer options.Type.BuilderclearSourceContext()The source context.Type.BuilderclearSyntax()The source syntax.Type.Builderclone()Clones the Builder.TypegetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.FieldgetFields(int index)The list of fields.Field.BuildergetFieldsBuilder(int index)The list of fields.java.util.List<Field.Builder>getFieldsBuilderList()The list of fields.intgetFieldsCount()The list of fields.java.util.List<Field>getFieldsList()The list of fields.FieldOrBuildergetFieldsOrBuilder(int index)The list of fields.java.util.List<? extends FieldOrBuilder>getFieldsOrBuilderList()The list of fields.java.lang.StringgetName()The fully qualified message name.ByteStringgetNameBytes()The fully qualified message name.java.lang.StringgetOneofs(int index)The list of types appearing in `oneof` definitions in this type.ByteStringgetOneofsBytes(int index)The list of types appearing in `oneof` definitions in this type.intgetOneofsCount()The list of types appearing in `oneof` definitions in this type.ProtocolStringListgetOneofsList()The list of types appearing in `oneof` definitions in this type.OptiongetOptions(int index)The protocol buffer options.Option.BuildergetOptionsBuilder(int index)The protocol buffer options.java.util.List<Option.Builder>getOptionsBuilderList()The protocol buffer options.intgetOptionsCount()The protocol buffer options.java.util.List<Option>getOptionsList()The protocol buffer options.OptionOrBuildergetOptionsOrBuilder(int index)The protocol buffer options.java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()The protocol buffer options.SourceContextgetSourceContext()The source context.SourceContext.BuildergetSourceContextBuilder()The source context.SourceContextOrBuildergetSourceContextOrBuilder()The source context.SyntaxgetSyntax()The source syntax.intgetSyntaxValue()The source syntax.booleanhasSourceContext()The source context.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.Type.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Type.BuildermergeFrom(Message other)Mergeotherinto the message being built.Type.BuildermergeFrom(Type other)Type.BuildermergeSourceContext(SourceContext value)The source context.Type.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Type.BuilderremoveFields(int index)The list of fields.Type.BuilderremoveOptions(int index)The protocol buffer options.Type.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Type.BuildersetFields(int index, Field value)The list of fields.Type.BuildersetFields(int index, Field.Builder builderForValue)The list of fields.Type.BuildersetName(java.lang.String value)The fully qualified message name.Type.BuildersetNameBytes(ByteString value)The fully qualified message name.Type.BuildersetOneofs(int index, java.lang.String value)The list of types appearing in `oneof` definitions in this type.Type.BuildersetOptions(int index, Option value)The protocol buffer options.Type.BuildersetOptions(int index, Option.Builder builderForValue)The protocol buffer options.Type.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Type.BuildersetSourceContext(SourceContext value)The source context.Type.BuildersetSourceContext(SourceContext.Builder builderForValue)The source context.Type.BuildersetSyntax(Syntax value)The source syntax.Type.BuildersetSyntaxValue(int value)The source syntax.Type.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Type.Builder>
-
clear
public Type.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Type.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Type.Builder>
-
getDefaultInstanceForType
public Type getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public Type build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public Type buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public Type.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Type.Builder>- See Also:
Object.clone()
-
setField
public Type.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)would return.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
clearField
public Type.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
clearOneof
public Type.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Type.Builder>
-
setRepeatedField
public Type.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)would return.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
addRepeatedField
public Type.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
mergeFrom
public Type.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Type.Builder>
-
mergeFrom
public Type.Builder mergeFrom(Type other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Type.Builder>
-
mergeFrom
public Type.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Type.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The fully qualified message name.
string name = 1;- Specified by:
getNamein interfaceTypeOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
The fully qualified message name.
string name = 1;- Specified by:
getNameBytesin interfaceTypeOrBuilder- Returns:
- The bytes for name.
-
setName
public Type.Builder setName(java.lang.String value)
The fully qualified message name.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Type.Builder clearName()
The fully qualified message name.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Type.Builder setNameBytes(ByteString value)
The fully qualified message name.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFieldsList
public java.util.List<Field> getFieldsList()
The list of fields.
repeated .google.protobuf.Field fields = 2;- Specified by:
getFieldsListin interfaceTypeOrBuilder
-
getFieldsCount
public int getFieldsCount()
The list of fields.
repeated .google.protobuf.Field fields = 2;- Specified by:
getFieldsCountin interfaceTypeOrBuilder
-
getFields
public Field getFields(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;- Specified by:
getFieldsin interfaceTypeOrBuilder
-
setFields
public Type.Builder setFields(int index, Field value)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
setFields
public Type.Builder setFields(int index, Field.Builder builderForValue)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
addFields
public Type.Builder addFields(Field value)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
addFields
public Type.Builder addFields(int index, Field value)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
addFields
public Type.Builder addFields(Field.Builder builderForValue)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
addFields
public Type.Builder addFields(int index, Field.Builder builderForValue)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
addAllFields
public Type.Builder addAllFields(java.lang.Iterable<? extends Field> values)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
clearFields
public Type.Builder clearFields()
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
removeFields
public Type.Builder removeFields(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFieldsBuilder
public Field.Builder getFieldsBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFieldsOrBuilder
public FieldOrBuilder getFieldsOrBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;- Specified by:
getFieldsOrBuilderin interfaceTypeOrBuilder
-
getFieldsOrBuilderList
public java.util.List<? extends FieldOrBuilder> getFieldsOrBuilderList()
The list of fields.
repeated .google.protobuf.Field fields = 2;- Specified by:
getFieldsOrBuilderListin interfaceTypeOrBuilder
-
addFieldsBuilder
public Field.Builder addFieldsBuilder()
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
addFieldsBuilder
public Field.Builder addFieldsBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFieldsBuilderList
public java.util.List<Field.Builder> getFieldsBuilderList()
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getOneofsList
public ProtocolStringList getOneofsList()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Specified by:
getOneofsListin interfaceTypeOrBuilder- Returns:
- A list containing the oneofs.
-
getOneofsCount
public int getOneofsCount()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Specified by:
getOneofsCountin interfaceTypeOrBuilder- Returns:
- The count of oneofs.
-
getOneofs
public java.lang.String getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Specified by:
getOneofsin interfaceTypeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The oneofs at the given index.
-
getOneofsBytes
public ByteString getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Specified by:
getOneofsBytesin interfaceTypeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the oneofs at the given index.
-
setOneofs
public Type.Builder setOneofs(int index, java.lang.String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Parameters:
index- The index to set the value at.value- The oneofs to set.- Returns:
- This builder for chaining.
-
addOneofs
public Type.Builder addOneofs(java.lang.String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Parameters:
value- The oneofs to add.- Returns:
- This builder for chaining.
-
addAllOneofs
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;- Parameters:
values- The oneofs to add.- Returns:
- This builder for chaining.
-
clearOneofs
public Type.Builder clearOneofs()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Returns:
- This builder for chaining.
-
addOneofsBytes
public Type.Builder addOneofsBytes(ByteString value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Parameters:
value- The bytes of the oneofs to add.- Returns:
- This builder for chaining.
-
getOptionsList
public java.util.List<Option> getOptionsList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;- Specified by:
getOptionsListin interfaceTypeOrBuilder
-
getOptionsCount
public int getOptionsCount()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;- Specified by:
getOptionsCountin interfaceTypeOrBuilder
-
getOptions
public Option getOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;- Specified by:
getOptionsin interfaceTypeOrBuilder
-
setOptions
public Type.Builder setOptions(int index, Option value)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
setOptions
public Type.Builder setOptions(int index, Option.Builder builderForValue)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
addOptions
public Type.Builder addOptions(Option value)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
addOptions
public Type.Builder addOptions(int index, Option value)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
addOptions
public Type.Builder addOptions(Option.Builder builderForValue)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
addOptions
public Type.Builder addOptions(int index, Option.Builder builderForValue)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
addAllOptions
public Type.Builder addAllOptions(java.lang.Iterable<? extends Option> values)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
clearOptions
public Type.Builder clearOptions()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
removeOptions
public Type.Builder removeOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptionsBuilder
public Option.Builder getOptionsBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptionsOrBuilder
public OptionOrBuilder getOptionsOrBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;- Specified by:
getOptionsOrBuilderin interfaceTypeOrBuilder
-
getOptionsOrBuilderList
public java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;- Specified by:
getOptionsOrBuilderListin interfaceTypeOrBuilder
-
addOptionsBuilder
public Option.Builder addOptionsBuilder()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
addOptionsBuilder
public Option.Builder addOptionsBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptionsBuilderList
public java.util.List<Option.Builder> getOptionsBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
hasSourceContext
public boolean hasSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;- Specified by:
hasSourceContextin interfaceTypeOrBuilder- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
public SourceContext getSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;- Specified by:
getSourceContextin interfaceTypeOrBuilder- Returns:
- The sourceContext.
-
setSourceContext
public Type.Builder setSourceContext(SourceContext value)
The source context.
.google.protobuf.SourceContext source_context = 5;
-
setSourceContext
public Type.Builder setSourceContext(SourceContext.Builder builderForValue)
The source context.
.google.protobuf.SourceContext source_context = 5;
-
mergeSourceContext
public Type.Builder mergeSourceContext(SourceContext value)
The source context.
.google.protobuf.SourceContext source_context = 5;
-
clearSourceContext
public Type.Builder clearSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 5;
-
getSourceContextBuilder
public SourceContext.Builder getSourceContextBuilder()
The source context.
.google.protobuf.SourceContext source_context = 5;
-
getSourceContextOrBuilder
public SourceContextOrBuilder getSourceContextOrBuilder()
The source context.
.google.protobuf.SourceContext source_context = 5;- Specified by:
getSourceContextOrBuilderin interfaceTypeOrBuilder
-
getSyntaxValue
public int getSyntaxValue()
The source syntax.
.google.protobuf.Syntax syntax = 6;- Specified by:
getSyntaxValuein interfaceTypeOrBuilder- Returns:
- The enum numeric value on the wire for syntax.
-
setSyntaxValue
public Type.Builder setSyntaxValue(int value)
The source syntax.
.google.protobuf.Syntax syntax = 6;- 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.
.google.protobuf.Syntax syntax = 6;- Specified by:
getSyntaxin interfaceTypeOrBuilder- Returns:
- The syntax.
-
setSyntax
public Type.Builder setSyntax(Syntax value)
The source syntax.
.google.protobuf.Syntax syntax = 6;- Parameters:
value- The syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
public Type.Builder clearSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Type.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Type.Builder>
-
mergeUnknownFields
public final Type.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Type.Builder>
-
-