Package | Description |
---|---|
com.google.protobuf |
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMessage.Builder<BuilderType extends AbstractMessage.Builder>
A partial implementation of the
Message.Builder interface which
implements as many methods of that interface as possible in terms of
other methods. |
static class |
DescriptorProtos.DescriptorProto.Builder
Protobuf type
google.protobuf.DescriptorProto |
static class |
DescriptorProtos.DescriptorProto.ExtensionRange.Builder
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange |
static class |
DescriptorProtos.EnumDescriptorProto.Builder
Protobuf type
google.protobuf.EnumDescriptorProto |
static class |
DescriptorProtos.EnumOptions.Builder
Protobuf type
google.protobuf.EnumOptions |
static class |
DescriptorProtos.EnumValueDescriptorProto.Builder
Protobuf type
google.protobuf.EnumValueDescriptorProto |
static class |
DescriptorProtos.EnumValueOptions.Builder
Protobuf type
google.protobuf.EnumValueOptions |
static class |
DescriptorProtos.FieldDescriptorProto.Builder
Protobuf type
google.protobuf.FieldDescriptorProto |
static class |
DescriptorProtos.FieldOptions.Builder
Protobuf type
google.protobuf.FieldOptions |
static class |
DescriptorProtos.FileDescriptorProto.Builder
Protobuf type
google.protobuf.FileDescriptorProto |
static class |
DescriptorProtos.FileDescriptorSet.Builder
Protobuf type
google.protobuf.FileDescriptorSet |
static class |
DescriptorProtos.FileOptions.Builder
Protobuf type
google.protobuf.FileOptions |
static class |
DescriptorProtos.MessageOptions.Builder
Protobuf type
google.protobuf.MessageOptions |
static class |
DescriptorProtos.MethodDescriptorProto.Builder
Protobuf type
google.protobuf.MethodDescriptorProto |
static class |
DescriptorProtos.MethodOptions.Builder
Protobuf type
google.protobuf.MethodOptions |
static class |
DescriptorProtos.ServiceDescriptorProto.Builder
Protobuf type
google.protobuf.ServiceDescriptorProto |
static class |
DescriptorProtos.ServiceOptions.Builder
Protobuf type
google.protobuf.ServiceOptions |
static class |
DescriptorProtos.SourceCodeInfo.Builder
Protobuf type
google.protobuf.SourceCodeInfo |
static class |
DescriptorProtos.SourceCodeInfo.Location.Builder
Protobuf type
google.protobuf.SourceCodeInfo.Location |
static class |
DescriptorProtos.UninterpretedOption.Builder
Protobuf type
google.protobuf.UninterpretedOption |
static class |
DescriptorProtos.UninterpretedOption.NamePart.Builder
Protobuf type
google.protobuf.UninterpretedOption.NamePart |
static class |
DynamicMessage.Builder
Builder for
DynamicMessage s. |
static class |
GeneratedMessage.Builder<BuilderType extends GeneratedMessage.Builder> |
static class |
GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>
Generated message builders for message types that contain extension ranges
subclass this.
|
Modifier and Type | Method and Description |
---|---|
Message.Builder |
Message.Builder.addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value)
Like
setRepeatedField , but appends the value as a new element. |
Message.Builder |
Message.Builder.clear() |
Message.Builder |
Message.Builder.clearField(Descriptors.FieldDescriptor field)
Clears the field.
|
Message.Builder |
Message.Builder.clone() |
Message.Builder |
Message.Builder.getFieldBuilder(Descriptors.FieldDescriptor field)
Get a nested builder instance for the given field.
|
Message.Builder |
GeneratedMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor field) |
Message.Builder |
DynamicMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor field) |
Message.Builder |
AbstractMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor field) |
Message.Builder |
Message.Builder.mergeFrom(byte[] data) |
Message.Builder |
Message.Builder.mergeFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
Message.Builder |
Message.Builder.mergeFrom(byte[] data,
int off,
int len) |
Message.Builder |
Message.Builder.mergeFrom(byte[] data,
int off,
int len,
ExtensionRegistryLite extensionRegistry) |
Message.Builder |
Message.Builder.mergeFrom(ByteString data) |
Message.Builder |
Message.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
Message.Builder |
Message.Builder.mergeFrom(CodedInputStream input) |
Message.Builder |
Message.Builder.mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Message.Builder |
Message.Builder.mergeFrom(java.io.InputStream input) |
Message.Builder |
Message.Builder.mergeFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
Message.Builder |
Message.Builder.mergeFrom(Message other)
Merge
other into the message being built. |
Message.Builder |
Message.Builder.mergeUnknownFields(UnknownFieldSet unknownFields)
Merge some unknown fields into the
UnknownFieldSet for this
message. |
Message.Builder |
Message.Builder.newBuilderForField(Descriptors.FieldDescriptor field)
Create a Builder for messages of the appropriate type for the given
field.
|
Message.Builder |
GeneratedMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor field) |
Message.Builder |
Message.newBuilderForType() |
Message.Builder |
Message.Builder.setField(Descriptors.FieldDescriptor field,
java.lang.Object value)
Sets a field to the given value.
|
Message.Builder |
Message.Builder.setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value)
Sets an element of a repeated field to the given value.
|
Message.Builder |
Message.Builder.setUnknownFields(UnknownFieldSet unknownFields)
Set the
UnknownFieldSet for this message. |
Message.Builder |
Message.toBuilder() |
Modifier and Type | Method and Description |
---|---|
static void |
TextFormat.merge(java.lang.CharSequence input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |
static void |
TextFormat.merge(java.lang.CharSequence input,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |
static void |
TextFormat.merge(java.lang.Readable input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |
static void |
TextFormat.merge(java.lang.Readable input,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |