public
static
final
class
Type
.
Builder
extends
GeneratedMessageLite
.
Builder<Type
,
Type
.
Builder
>
implements
TypeOrBuilder
A protocol buffer message type.
Protobuf type google.protobuf.Type
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > Type.BuilderImplements
TypeOrBuilderMethods
addAllFields(Iterable<? extends Field> values)
public
Type
.
Builder
addAllFields
(
Iterable
< ?
extends
Field
>
values
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
addAllOneofs(Iterable<String> values)
public
Type
.
Builder
addAllOneofs
(
Iterable<String>
values
)
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
addAllOptions(Iterable<? extends Option> values)
public
Type
.
Builder
addAllOptions
(
Iterable
< ?
extends
Option
>
values
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
addFields(Field value)
public
Type
.
Builder
addFields
(
Field
value
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
addFields(Field.Builder builderForValue)
public
Type
.
Builder
addFields
(
Field
.
Builder
builderForValue
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
addFields(int index, Field value)
public
Type
.
Builder
addFields
(
int
index
,
Field
value
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
addFields(int index, Field.Builder builderForValue)
public
Type
.
Builder
addFields
(
int
index
,
Field
.
Builder
builderForValue
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
addOneofs(String value)
public
Type
.
Builder
addOneofs
(
String
value
)
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
addOneofsBytes(ByteString value)
public
Type
.
Builder
addOneofsBytes
(
ByteString
value
)
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
addOptions(Option value)
public
Type
.
Builder
addOptions
(
Option
value
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
addOptions(Option.Builder builderForValue)
public
Type
.
Builder
addOptions
(
Option
.
Builder
builderForValue
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
addOptions(int index, Option value)
public
Type
.
Builder
addOptions
(
int
index
,
Option
value
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
addOptions(int index, Option.Builder builderForValue)
public
Type
.
Builder
addOptions
(
int
index
,
Option
.
Builder
builderForValue
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
clearFields()
public
Type
.
Builder
clearFields
()
The list of fields.
repeated .google.protobuf.Field fields = 2;
clearName()
public
Type
.
Builder
clearName
()
The fully qualified message name.
string name = 1;
clearOneofs()
public
Type
.
Builder
clearOneofs
()
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
clearOptions()
public
Type
.
Builder
clearOptions
()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
clearSourceContext()
public
Type
.
Builder
clearSourceContext
()
The source context.
.google.protobuf.SourceContext source_context = 5;
clearSyntax()
public
Type
.
Builder
clearSyntax
()
The source syntax.
.google.protobuf.Syntax syntax = 6;
getFields(int index)
public
Field
getFields
(
int
index
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
getFieldsCount()
public
int
getFieldsCount
()
The list of fields.
repeated .google.protobuf.Field fields = 2;
getFieldsList()
public
List<Field>
getFieldsList
()
The list of fields.
repeated .google.protobuf.Field fields = 2;
getName()
public
String
getName
()
The fully qualified message name.
string name = 1;
getNameBytes()
public
ByteString
getNameBytes
()
The fully qualified message name.
string name = 1;
getOneofs(int index)
public
String
getOneofs
(
int
index
)
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
getOneofsBytes(int index)
public
ByteString
getOneofsBytes
(
int
index
)
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
getOneofsCount()
public
int
getOneofsCount
()
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
getOneofsList()
public
List<String>
getOneofsList
()
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
getOptions(int index)
public
Option
getOptions
(
int
index
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
getOptionsCount()
public
int
getOptionsCount
()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
getOptionsList()
public
List<Option>
getOptionsList
()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
getSourceContext()
public
SourceContext
getSourceContext
()
The source context.
.google.protobuf.SourceContext source_context = 5;
getSyntax()
public
Syntax
getSyntax
()
The source syntax.
.google.protobuf.Syntax syntax = 6;
getSyntaxValue()
public
int
getSyntaxValue
()
The source syntax.
.google.protobuf.Syntax syntax = 6;
hasSourceContext()
public
boolean
hasSourceContext
()
The source context.
.google.protobuf.SourceContext source_context = 5;
mergeSourceContext(SourceContext value)
public
Type
.
Builder
mergeSourceContext
(
SourceContext
value
)
The source context.
.google.protobuf.SourceContext source_context = 5;
removeFields(int index)
public
Type
.
Builder
removeFields
(
int
index
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
removeOptions(int index)
public
Type
.
Builder
removeOptions
(
int
index
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
setFields(int index, Field value)
public
Type
.
Builder
setFields
(
int
index
,
Field
value
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
setFields(int index, Field.Builder builderForValue)
public
Type
.
Builder
setFields
(
int
index
,
Field
.
Builder
builderForValue
)
The list of fields.
repeated .google.protobuf.Field fields = 2;
setName(String value)
public
Type
.
Builder
setName
(
String
value
)
The fully qualified message name.
string name = 1;
setNameBytes(ByteString value)
public
Type
.
Builder
setNameBytes
(
ByteString
value
)
The fully qualified message name.
string name = 1;
setOneofs(int index, String value)
public
Type
.
Builder
setOneofs
(
int
index
,
String
value
)
The list of types appearing in oneof
definitions in this type.
repeated string oneofs = 3;
setOptions(int index, Option value)
public
Type
.
Builder
setOptions
(
int
index
,
Option
value
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
setOptions(int index, Option.Builder builderForValue)
public
Type
.
Builder
setOptions
(
int
index
,
Option
.
Builder
builderForValue
)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
setSourceContext(SourceContext value)
public
Type
.
Builder
setSourceContext
(
SourceContext
value
)
The source context.
.google.protobuf.SourceContext source_context = 5;
setSourceContext(SourceContext.Builder builderForValue)
public
Type
.
Builder
setSourceContext
(
SourceContext
.
Builder
builderForValue
)
The source context.
.google.protobuf.SourceContext source_context = 5;
setSyntax(Syntax value)
public
Type
.
Builder
setSyntax
(
Syntax
value
)
The source syntax.
.google.protobuf.Syntax syntax = 6;
setSyntaxValue(int value)
public
Type
.
Builder
setSyntaxValue
(
int
value
)
The source syntax.
.google.protobuf.Syntax syntax = 6;