Package | Description |
---|---|
com.google.protobuf |
Modifier and Type | Field and Description |
---|---|
static ByteString |
ByteString.EMPTY
Empty
ByteString . |
Modifier and Type | Method and Description |
---|---|
static ByteString |
Internal.bytesDefaultValue(java.lang.String bytes)
Helper called by generated code to construct default values for bytes
fields.
|
ByteString |
ByteString.concat(ByteString other)
Concatenate the given
ByteString to this one. |
static ByteString |
ByteString.copyFrom(byte[] bytes)
Copies the given bytes into a
ByteString . |
static ByteString |
ByteString.copyFrom(byte[] bytes,
int offset,
int size)
Copies the given bytes into a
ByteString . |
static ByteString |
ByteString.copyFrom(java.nio.ByteBuffer bytes)
Copies the remaining bytes from a
java.nio.ByteBuffer into
a ByteString . |
static ByteString |
ByteString.copyFrom(java.nio.ByteBuffer bytes,
int size)
Copies the next
size bytes from a java.nio.ByteBuffer into
a ByteString . |
static ByteString |
ByteString.copyFrom(java.lang.Iterable<ByteString> byteStrings)
Concatenates all byte strings in the iterable and returns the result.
|
static ByteString |
ByteString.copyFrom(java.lang.String text,
java.lang.String charsetName)
Encodes
text into a sequence of bytes using the named charset
and returns the result as a ByteString . |
static ByteString |
ByteString.copyFromUtf8(java.lang.String text)
Encodes
text into a sequence of UTF-8 bytes and returns the
result as a ByteString . |
ByteString |
DescriptorProtos.UninterpretedOptionOrBuilder.getAggregateValueBytes()
optional string aggregate_value = 8; |
ByteString |
DescriptorProtos.UninterpretedOption.getAggregateValueBytes()
optional string aggregate_value = 8; |
ByteString |
DescriptorProtos.UninterpretedOption.Builder.getAggregateValueBytes()
optional string aggregate_value = 8; |
ByteString |
UnmodifiableLazyStringList.getByteString(int index) |
ByteString |
LazyStringList.getByteString(int index)
Returns the element at the specified position in this list as a ByteString.
|
ByteString |
LazyStringArrayList.getByteString(int index) |
ByteString |
DescriptorProtos.FieldDescriptorProtoOrBuilder.getDefaultValueBytes()
optional string default_value = 7; |
ByteString |
DescriptorProtos.FieldDescriptorProto.getDefaultValueBytes()
optional string default_value = 7; |
ByteString |
DescriptorProtos.FieldDescriptorProto.Builder.getDefaultValueBytes()
optional string default_value = 7; |
ByteString |
DescriptorProtos.FileDescriptorProtoOrBuilder.getDependencyBytes(int index)
repeated string dependency = 3; |
ByteString |
DescriptorProtos.FileDescriptorProto.getDependencyBytes(int index)
repeated string dependency = 3; |
ByteString |
DescriptorProtos.FileDescriptorProto.Builder.getDependencyBytes(int index)
repeated string dependency = 3; |
ByteString |
DescriptorProtos.FieldOptionsOrBuilder.getExperimentalMapKeyBytes()
optional string experimental_map_key = 9; |
ByteString |
DescriptorProtos.FieldOptions.getExperimentalMapKeyBytes()
optional string experimental_map_key = 9; |
ByteString |
DescriptorProtos.FieldOptions.Builder.getExperimentalMapKeyBytes()
optional string experimental_map_key = 9; |
ByteString |
DescriptorProtos.FieldDescriptorProtoOrBuilder.getExtendeeBytes()
optional string extendee = 2; |
ByteString |
DescriptorProtos.FieldDescriptorProto.getExtendeeBytes()
optional string extendee = 2; |
ByteString |
DescriptorProtos.FieldDescriptorProto.Builder.getExtendeeBytes()
optional string extendee = 2; |
ByteString |
DescriptorProtos.FileOptionsOrBuilder.getGoPackageBytes()
optional string go_package = 11; |
ByteString |
DescriptorProtos.FileOptions.getGoPackageBytes()
optional string go_package = 11; |
ByteString |
DescriptorProtos.FileOptions.Builder.getGoPackageBytes()
optional string go_package = 11; |
ByteString |
DescriptorProtos.UninterpretedOptionOrBuilder.getIdentifierValueBytes()
optional string identifier_value = 3; |
ByteString |
DescriptorProtos.UninterpretedOption.getIdentifierValueBytes()
optional string identifier_value = 3; |
ByteString |
DescriptorProtos.UninterpretedOption.Builder.getIdentifierValueBytes()
optional string identifier_value = 3; |
ByteString |
DescriptorProtos.MethodDescriptorProtoOrBuilder.getInputTypeBytes()
optional string input_type = 2; |
ByteString |
DescriptorProtos.MethodDescriptorProto.getInputTypeBytes()
optional string input_type = 2; |
ByteString |
DescriptorProtos.MethodDescriptorProto.Builder.getInputTypeBytes()
optional string input_type = 2; |
ByteString |
DescriptorProtos.FileOptionsOrBuilder.getJavaOuterClassnameBytes()
optional string java_outer_classname = 8; |
ByteString |
DescriptorProtos.FileOptions.getJavaOuterClassnameBytes()
optional string java_outer_classname = 8; |
ByteString |
DescriptorProtos.FileOptions.Builder.getJavaOuterClassnameBytes()
optional string java_outer_classname = 8; |
ByteString |
DescriptorProtos.FileOptionsOrBuilder.getJavaPackageBytes()
optional string java_package = 1; |
ByteString |
DescriptorProtos.FileOptions.getJavaPackageBytes()
optional string java_package = 1; |
ByteString |
DescriptorProtos.FileOptions.Builder.getJavaPackageBytes()
optional string java_package = 1; |
ByteString |
DescriptorProtos.SourceCodeInfo.LocationOrBuilder.getLeadingCommentsBytes()
optional string leading_comments = 3; |
ByteString |
DescriptorProtos.SourceCodeInfo.Location.getLeadingCommentsBytes()
optional string leading_comments = 3; |
ByteString |
DescriptorProtos.SourceCodeInfo.Location.Builder.getLeadingCommentsBytes()
optional string leading_comments = 3; |
ByteString |
DescriptorProtos.FileDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.FileDescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.FileDescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.DescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.DescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.DescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.FieldDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.FieldDescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.FieldDescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.EnumDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.EnumDescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.EnumDescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.EnumValueDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.EnumValueDescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.EnumValueDescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.ServiceDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.ServiceDescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.ServiceDescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.MethodDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.MethodDescriptorProto.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.MethodDescriptorProto.Builder.getNameBytes()
optional string name = 1; |
ByteString |
DescriptorProtos.UninterpretedOption.NamePartOrBuilder.getNamePartBytes()
required string name_part = 1; |
ByteString |
DescriptorProtos.UninterpretedOption.NamePart.getNamePartBytes()
required string name_part = 1; |
ByteString |
DescriptorProtos.UninterpretedOption.NamePart.Builder.getNamePartBytes()
required string name_part = 1; |
ByteString |
DescriptorProtos.MethodDescriptorProtoOrBuilder.getOutputTypeBytes()
optional string output_type = 3; |
ByteString |
DescriptorProtos.MethodDescriptorProto.getOutputTypeBytes()
optional string output_type = 3; |
ByteString |
DescriptorProtos.MethodDescriptorProto.Builder.getOutputTypeBytes()
optional string output_type = 3; |
ByteString |
DescriptorProtos.FileDescriptorProtoOrBuilder.getPackageBytes()
optional string package = 2; |
ByteString |
DescriptorProtos.FileDescriptorProto.getPackageBytes()
optional string package = 2; |
ByteString |
DescriptorProtos.FileDescriptorProto.Builder.getPackageBytes()
optional string package = 2; |
ByteString |
DescriptorProtos.UninterpretedOptionOrBuilder.getStringValue()
optional bytes string_value = 7; |
ByteString |
DescriptorProtos.UninterpretedOption.getStringValue()
optional bytes string_value = 7; |
ByteString |
DescriptorProtos.UninterpretedOption.Builder.getStringValue()
optional bytes string_value = 7; |
ByteString |
DescriptorProtos.SourceCodeInfo.LocationOrBuilder.getTrailingCommentsBytes()
optional string trailing_comments = 4; |
ByteString |
DescriptorProtos.SourceCodeInfo.Location.getTrailingCommentsBytes()
optional string trailing_comments = 4; |
ByteString |
DescriptorProtos.SourceCodeInfo.Location.Builder.getTrailingCommentsBytes()
optional string trailing_comments = 4; |
ByteString |
DescriptorProtos.FieldDescriptorProtoOrBuilder.getTypeNameBytes()
optional string type_name = 6; |
ByteString |
DescriptorProtos.FieldDescriptorProto.getTypeNameBytes()
optional string type_name = 6; |
ByteString |
DescriptorProtos.FieldDescriptorProto.Builder.getTypeNameBytes()
optional string type_name = 6; |
ByteString |
CodedInputStream.readBytes()
Read a
bytes field value from the stream. |
static ByteString |
ByteString.readFrom(java.io.InputStream streamToDrain)
Completely reads the given stream's bytes into a
ByteString , blocking if necessary until all bytes are
read through to the end of the stream. |
static ByteString |
ByteString.readFrom(java.io.InputStream streamToDrain,
int chunkSize)
Completely reads the given stream's bytes into a
ByteString , blocking if necessary until all bytes are
read through to the end of the stream. |
static ByteString |
ByteString.readFrom(java.io.InputStream streamToDrain,
int minChunkSize,
int maxChunkSize) |
ByteString |
ByteString.substring(int beginIndex)
Return the substring from
beginIndex , inclusive, to the end of the
string. |
abstract ByteString |
ByteString.substring(int beginIndex,
int endIndex)
Return the substring from
beginIndex , inclusive, to endIndex , exclusive. |
ByteString |
UnknownFieldSet.toByteString()
Serializes the message to a
ByteString and returns it. |
ByteString |
MessageLite.toByteString()
Serializes the message to a
ByteString and returns it. |
ByteString |
ByteString.Output.toByteString()
Creates a byte string.
|
ByteString |
AbstractMessageLite.toByteString() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ByteString> |
UnknownFieldSet.Field.getLengthDelimitedList()
Get the list of length-delimited values for this field.
|
Modifier and Type | Method and Description |
---|---|
void |
UnmodifiableLazyStringList.add(ByteString element) |
void |
LazyStringList.add(ByteString element)
Appends the specified element to the end of this list (optional
operation).
|
void |
LazyStringArrayList.add(ByteString element) |
DescriptorProtos.FileDescriptorProto.Builder |
DescriptorProtos.FileDescriptorProto.Builder.addDependencyBytes(ByteString value)
repeated string dependency = 3; |
UnknownFieldSet.Field.Builder |
UnknownFieldSet.Field.Builder.addLengthDelimited(ByteString value)
Add a length-delimited value.
|
static int |
CodedOutputStream.computeBytesSize(int fieldNumber,
ByteString value)
Compute the number of bytes that would be needed to encode a
bytes field, including tag. |
static int |
CodedOutputStream.computeBytesSizeNoTag(ByteString value)
Compute the number of bytes that would be needed to encode a
bytes field. |
static int |
CodedOutputStream.computeRawMessageSetExtensionSize(int fieldNumber,
ByteString value)
Compute the number of bytes that would be needed to encode an
unparsed MessageSet extension field to the stream.
|
ByteString |
ByteString.concat(ByteString other)
Concatenate the given
ByteString to this one. |
static boolean |
Internal.isValidUtf8(ByteString byteString)
Helper called by generated code to determine if a byte array is a valid
UTF-8 encoded string such that the original bytes can be converted to
a String object and then back to a byte array round tripping the bytes
without loss.
|
UnknownFieldSet.Builder |
UnknownFieldSet.Builder.mergeFrom(ByteString data)
Parse
data as an UnknownFieldSet and merge it with the
set being built. |
MessageLite.Builder |
MessageLite.Builder.mergeFrom(ByteString data)
Parse
data as a message of this type and merge it with the
message being built. |
Message.Builder |
Message.Builder.mergeFrom(ByteString data) |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(ByteString data) |
BuilderType |
AbstractMessage.Builder.mergeFrom(ByteString data) |
UnknownFieldSet.Builder |
UnknownFieldSet.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
MessageLite.Builder |
MessageLite.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry)
Parse
data as a message of this type and merge it with the
message being built. |
Message.Builder |
Message.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
BuilderType |
AbstractMessage.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static UnknownFieldSet |
UnknownFieldSet.parseFrom(ByteString data)
Parse
data as an UnknownFieldSet and return it. |
MessageType |
Parser.parseFrom(ByteString data)
Parses
data as a message of MessageType . |
static DescriptorProtos.FileDescriptorSet |
DescriptorProtos.FileDescriptorSet.parseFrom(ByteString data) |
static DescriptorProtos.FileDescriptorProto |
DescriptorProtos.FileDescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.DescriptorProto |
DescriptorProtos.DescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.DescriptorProto.ExtensionRange |
DescriptorProtos.DescriptorProto.ExtensionRange.parseFrom(ByteString data) |
static DescriptorProtos.FieldDescriptorProto |
DescriptorProtos.FieldDescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.EnumDescriptorProto |
DescriptorProtos.EnumDescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.EnumValueDescriptorProto |
DescriptorProtos.EnumValueDescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.ServiceDescriptorProto |
DescriptorProtos.ServiceDescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.MethodDescriptorProto |
DescriptorProtos.MethodDescriptorProto.parseFrom(ByteString data) |
static DescriptorProtos.FileOptions |
DescriptorProtos.FileOptions.parseFrom(ByteString data) |
static DescriptorProtos.MessageOptions |
DescriptorProtos.MessageOptions.parseFrom(ByteString data) |
static DescriptorProtos.FieldOptions |
DescriptorProtos.FieldOptions.parseFrom(ByteString data) |
static DescriptorProtos.EnumOptions |
DescriptorProtos.EnumOptions.parseFrom(ByteString data) |
static DescriptorProtos.EnumValueOptions |
DescriptorProtos.EnumValueOptions.parseFrom(ByteString data) |
static DescriptorProtos.ServiceOptions |
DescriptorProtos.ServiceOptions.parseFrom(ByteString data) |
static DescriptorProtos.MethodOptions |
DescriptorProtos.MethodOptions.parseFrom(ByteString data) |
static DescriptorProtos.UninterpretedOption |
DescriptorProtos.UninterpretedOption.parseFrom(ByteString data) |
static DescriptorProtos.UninterpretedOption.NamePart |
DescriptorProtos.UninterpretedOption.NamePart.parseFrom(ByteString data) |
static DescriptorProtos.SourceCodeInfo |
DescriptorProtos.SourceCodeInfo.parseFrom(ByteString data) |
static DescriptorProtos.SourceCodeInfo.Location |
DescriptorProtos.SourceCodeInfo.Location.parseFrom(ByteString data) |
MessageType |
AbstractParser.parseFrom(ByteString data) |
MessageType |
Parser.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry)
Parses
data as a message of MessageType . |
static DescriptorProtos.FileDescriptorSet |
DescriptorProtos.FileDescriptorSet.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileDescriptorProto |
DescriptorProtos.FileDescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
DescriptorProtos.DescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto.ExtensionRange |
DescriptorProtos.DescriptorProto.ExtensionRange.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FieldDescriptorProto |
DescriptorProtos.FieldDescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.EnumDescriptorProto |
DescriptorProtos.EnumDescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.EnumValueDescriptorProto |
DescriptorProtos.EnumValueDescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ServiceDescriptorProto |
DescriptorProtos.ServiceDescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MethodDescriptorProto |
DescriptorProtos.MethodDescriptorProto.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
DescriptorProtos.FileOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MessageOptions |
DescriptorProtos.MessageOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FieldOptions |
DescriptorProtos.FieldOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.EnumOptions |
DescriptorProtos.EnumOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.EnumValueOptions |
DescriptorProtos.EnumValueOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ServiceOptions |
DescriptorProtos.ServiceOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MethodOptions |
DescriptorProtos.MethodOptions.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption |
DescriptorProtos.UninterpretedOption.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption.NamePart |
DescriptorProtos.UninterpretedOption.NamePart.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.SourceCodeInfo |
DescriptorProtos.SourceCodeInfo.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.SourceCodeInfo.Location |
DescriptorProtos.SourceCodeInfo.Location.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
MessageType |
AbstractParser.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
ByteString data)
Parse
data as a message of the given type and return it. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
ByteString data,
ExtensionRegistry extensionRegistry)
Parse
data as a message of the given type and return it. |
MessageType |
Parser.parsePartialFrom(ByteString data)
Like
Parser.parseFrom(ByteString) , but does not throw an
exception if the message is missing required fields. |
MessageType |
AbstractParser.parsePartialFrom(ByteString data) |
MessageType |
Parser.parsePartialFrom(ByteString data,
ExtensionRegistryLite extensionRegistry)
Like
Parser.parseFrom(ByteString, ExtensionRegistryLite) ,
but does not throw an exception if the message is missing required fields. |
MessageType |
AbstractParser.parsePartialFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
DescriptorProtos.UninterpretedOption.Builder |
DescriptorProtos.UninterpretedOption.Builder.setAggregateValueBytes(ByteString value)
optional string aggregate_value = 8; |
DescriptorProtos.FieldDescriptorProto.Builder |
DescriptorProtos.FieldDescriptorProto.Builder.setDefaultValueBytes(ByteString value)
optional string default_value = 7; |
DescriptorProtos.FieldOptions.Builder |
DescriptorProtos.FieldOptions.Builder.setExperimentalMapKeyBytes(ByteString value)
optional string experimental_map_key = 9; |
DescriptorProtos.FieldDescriptorProto.Builder |
DescriptorProtos.FieldDescriptorProto.Builder.setExtendeeBytes(ByteString value)
optional string extendee = 2; |
DescriptorProtos.FileOptions.Builder |
DescriptorProtos.FileOptions.Builder.setGoPackageBytes(ByteString value)
optional string go_package = 11; |
DescriptorProtos.UninterpretedOption.Builder |
DescriptorProtos.UninterpretedOption.Builder.setIdentifierValueBytes(ByteString value)
optional string identifier_value = 3; |
DescriptorProtos.MethodDescriptorProto.Builder |
DescriptorProtos.MethodDescriptorProto.Builder.setInputTypeBytes(ByteString value)
optional string input_type = 2; |
DescriptorProtos.FileOptions.Builder |
DescriptorProtos.FileOptions.Builder.setJavaOuterClassnameBytes(ByteString value)
optional string java_outer_classname = 8; |
DescriptorProtos.FileOptions.Builder |
DescriptorProtos.FileOptions.Builder.setJavaPackageBytes(ByteString value)
optional string java_package = 1; |
DescriptorProtos.SourceCodeInfo.Location.Builder |
DescriptorProtos.SourceCodeInfo.Location.Builder.setLeadingCommentsBytes(ByteString value)
optional string leading_comments = 3; |
DescriptorProtos.FileDescriptorProto.Builder |
DescriptorProtos.FileDescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.DescriptorProto.Builder |
DescriptorProtos.DescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.FieldDescriptorProto.Builder |
DescriptorProtos.FieldDescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.EnumDescriptorProto.Builder |
DescriptorProtos.EnumDescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
DescriptorProtos.EnumValueDescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.ServiceDescriptorProto.Builder |
DescriptorProtos.ServiceDescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.MethodDescriptorProto.Builder |
DescriptorProtos.MethodDescriptorProto.Builder.setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.UninterpretedOption.NamePart.Builder |
DescriptorProtos.UninterpretedOption.NamePart.Builder.setNamePartBytes(ByteString value)
required string name_part = 1; |
DescriptorProtos.MethodDescriptorProto.Builder |
DescriptorProtos.MethodDescriptorProto.Builder.setOutputTypeBytes(ByteString value)
optional string output_type = 3; |
DescriptorProtos.FileDescriptorProto.Builder |
DescriptorProtos.FileDescriptorProto.Builder.setPackageBytes(ByteString value)
optional string package = 2; |
DescriptorProtos.UninterpretedOption.Builder |
DescriptorProtos.UninterpretedOption.Builder.setStringValue(ByteString value)
optional bytes string_value = 7; |
DescriptorProtos.SourceCodeInfo.Location.Builder |
DescriptorProtos.SourceCodeInfo.Location.Builder.setTrailingCommentsBytes(ByteString value)
optional string trailing_comments = 4; |
DescriptorProtos.FieldDescriptorProto.Builder |
DescriptorProtos.FieldDescriptorProto.Builder.setTypeNameBytes(ByteString value)
optional string type_name = 6; |
boolean |
ByteString.startsWith(ByteString prefix)
Tests if this bytestring starts with the specified prefix.
|
void |
CodedOutputStream.writeBytes(int fieldNumber,
ByteString value)
Write a
bytes field, including tag, to the stream. |
void |
CodedOutputStream.writeBytesNoTag(ByteString value)
Write a
bytes field to the stream. |
void |
CodedOutputStream.writeRawBytes(ByteString value)
Write a byte string.
|
void |
CodedOutputStream.writeRawBytes(ByteString value,
int offset,
int length)
Write part of a byte string.
|
void |
CodedOutputStream.writeRawMessageSetExtension(int fieldNumber,
ByteString value)
Write an unparsed MessageSet extension field to the stream.
|
Modifier and Type | Method and Description |
---|---|
static ByteString |
ByteString.copyFrom(java.lang.Iterable<ByteString> byteStrings)
Concatenates all byte strings in the iterable and returns the result.
|