Package com.google.protobuf
Class DescriptorProtos.UninterpretedOption.NamePart.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<DescriptorProtos.UninterpretedOption.NamePart,DescriptorProtos.UninterpretedOption.NamePart.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.UninterpretedOption.NamePart,DescriptorProtos.UninterpretedOption.NamePart.Builder>
com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder
- All Implemented Interfaces:
DescriptorProtos.UninterpretedOption.NamePartOrBuilder
,MessageLite.Builder
,MessageLiteOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.UninterpretedOption.NamePart
public static final class DescriptorProtos.UninterpretedOption.NamePart.Builder
extends GeneratedMessageLite.Builder<DescriptorProtos.UninterpretedOption.NamePart,DescriptorProtos.UninterpretedOption.NamePart.Builder>
implements DescriptorProtos.UninterpretedOption.NamePartOrBuilder
The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an extension (denoted with parentheses in options specs in .proto files). E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents "foo.(bar.baz).moo".Protobuf type
google.protobuf.UninterpretedOption.NamePart
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrequired bool is_extension = 2;
required string name_part = 1;
boolean
required bool is_extension = 2;
required string name_part = 1;
required string name_part = 1;
boolean
required bool is_extension = 2;
boolean
required string name_part = 1;
setIsExtension
(boolean value) required bool is_extension = 2;
setNamePart
(String value) required string name_part = 1;
setNamePartBytes
(ByteString value) required string name_part = 1;
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
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
hasNamePart
public boolean hasNamePart()required string name_part = 1;
- Specified by:
hasNamePart
in interfaceDescriptorProtos.UninterpretedOption.NamePartOrBuilder
- Returns:
- Whether the namePart field is set.
-
getNamePart
required string name_part = 1;
- Specified by:
getNamePart
in interfaceDescriptorProtos.UninterpretedOption.NamePartOrBuilder
- Returns:
- The namePart.
-
getNamePartBytes
required string name_part = 1;
- Specified by:
getNamePartBytes
in interfaceDescriptorProtos.UninterpretedOption.NamePartOrBuilder
- Returns:
- The bytes for namePart.
-
setNamePart
required string name_part = 1;
- Parameters:
value
- The namePart to set.- Returns:
- This builder for chaining.
-
clearNamePart
required string name_part = 1;
- Returns:
- This builder for chaining.
-
setNamePartBytes
required string name_part = 1;
- Parameters:
value
- The bytes for namePart to set.- Returns:
- This builder for chaining.
-
hasIsExtension
public boolean hasIsExtension()required bool is_extension = 2;
- Specified by:
hasIsExtension
in interfaceDescriptorProtos.UninterpretedOption.NamePartOrBuilder
- Returns:
- Whether the isExtension field is set.
-
getIsExtension
public boolean getIsExtension()required bool is_extension = 2;
- Specified by:
getIsExtension
in interfaceDescriptorProtos.UninterpretedOption.NamePartOrBuilder
- Returns:
- The isExtension.
-
setIsExtension
required bool is_extension = 2;
- Parameters:
value
- The isExtension to set.- Returns:
- This builder for chaining.
-
clearIsExtension
required bool is_extension = 2;
- Returns:
- This builder for chaining.
-