public static final class Type.Builder extends GeneratedMessageLite.Builder<Type,Type.Builder> implements TypeOrBuilder
A protocol buffer message type.Protobuf type
google.protobuf.Type
instance, isBuilt
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.
|
Type.Builder |
addOneofs(String value)
The list of types appearing in `oneof` definitions in this type.
|
Type.Builder |
addOneofsBytes(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.
|
Type.Builder |
clearFields()
The list of fields.
|
Type.Builder |
clearName()
The fully qualified message name.
|
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.
|
Field |
getFields(int index)
The list of fields.
|
int |
getFieldsCount()
The list of fields.
|
List<Field> |
getFieldsList()
The list of fields.
|
String |
getName()
The fully qualified message name.
|
ByteString |
getNameBytes()
The fully qualified message name.
|
String |
getOneofs(int index)
The list of types appearing in `oneof` definitions in this type.
|
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.
|
List<String> |
getOneofsList()
The list of types appearing in `oneof` definitions in this type.
|
Option |
getOptions(int index)
The protocol buffer options.
|
int |
getOptionsCount()
The protocol buffer options.
|
List<Option> |
getOptionsList()
The protocol buffer options.
|
SourceContext |
getSourceContext()
The source context.
|
Syntax |
getSyntax()
The source syntax.
|
int |
getSyntaxValue()
The source syntax.
|
boolean |
hasSourceContext()
The source context.
|
Type.Builder |
mergeSourceContext(SourceContext value)
The source context.
|
Type.Builder |
removeFields(int index)
The list of fields.
|
Type.Builder |
removeOptions(int index)
The protocol buffer options.
|
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(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 |
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.
|
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
public String getName()
The fully qualified message name.
optional string name = 1;
getName
in interface TypeOrBuilder
public ByteString getNameBytes()
The fully qualified message name.
optional string name = 1;
getNameBytes
in interface TypeOrBuilder
public Type.Builder setName(String value)
The fully qualified message name.
optional string name = 1;
public Type.Builder clearName()
The fully qualified message name.
optional string name = 1;
public Type.Builder setNameBytes(ByteString value)
The fully qualified message name.
optional string name = 1;
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 List<String> 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
public ByteString getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;
getOneofsBytes
in interface TypeOrBuilder
public Type.Builder setOneofs(int index, String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;
public Type.Builder addOneofs(String value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;
public Type.Builder addAllOneofs(Iterable<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(ByteString value)
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;
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 boolean hasSourceContext()
The source context.
optional .google.protobuf.SourceContext source_context = 5;
hasSourceContext
in interface TypeOrBuilder
public SourceContext getSourceContext()
The source context.
optional .google.protobuf.SourceContext source_context = 5;
getSourceContext
in interface TypeOrBuilder
public Type.Builder setSourceContext(SourceContext value)
The source context.
optional .google.protobuf.SourceContext source_context = 5;
public Type.Builder setSourceContext(SourceContext.Builder builderForValue)
The source context.
optional .google.protobuf.SourceContext source_context = 5;
public Type.Builder mergeSourceContext(SourceContext value)
The source context.
optional .google.protobuf.SourceContext source_context = 5;
public Type.Builder clearSourceContext()
The source context.
optional .google.protobuf.SourceContext source_context = 5;
public int getSyntaxValue()
The source syntax.
optional .google.protobuf.Syntax syntax = 6;
getSyntaxValue
in interface TypeOrBuilder
public Type.Builder setSyntaxValue(int value)
The source syntax.
optional .google.protobuf.Syntax syntax = 6;
public Syntax getSyntax()
The source syntax.
optional .google.protobuf.Syntax syntax = 6;
getSyntax
in interface TypeOrBuilder
public Type.Builder setSyntax(Syntax value)
The source syntax.
optional .google.protobuf.Syntax syntax = 6;
public Type.Builder clearSyntax()
The source syntax.
optional .google.protobuf.Syntax syntax = 6;
Copyright © 2008–2016 Google. All rights reserved.