Modifier and Type | Field and Description |
---|---|
static ByteString |
ByteString.EMPTY
Empty ByteString.
|
Modifier and Type | Method and Description |
---|---|
static ByteString |
Internal.bytesDefaultValue(String bytes)
Helper called by generated code to construct default values for bytes
fields.
|
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(ByteBuffer bytes)
Copies the remaining bytes from a
java.nio.ByteBuffer into
a ByteString . |
static ByteString |
ByteString.copyFrom(ByteBuffer bytes,
int size)
Copies
size bytes from a java.nio.ByteBuffer into
a ByteString . |
static ByteString |
ByteString.copyFrom(List<ByteString> list)
Concatenates all byte strings in the list and returns the result.
|
static ByteString |
ByteString.copyFrom(String text,
String charsetName)
Encodes
text into a sequence of bytes using the named charset
and returns the result as a ByteString . |
static ByteString |
ByteString.copyFromUtf8(String text)
Encodes
text into a sequence of UTF-8 bytes and returns the
result as a ByteString . |
ByteString |
LazyStringList.getByteString(int index)
Returns the element at the specified position in this list as a ByteString.
|
ByteString |
LazyStringArrayList.getByteString(int index) |
ByteString |
UnmodifiableLazyStringList.getByteString(int index) |
ByteString |
DescriptorProtos.UninterpretedOptionOrBuilder.getStringValue() |
ByteString |
DescriptorProtos.UninterpretedOption.getStringValue() |
ByteString |
DescriptorProtos.UninterpretedOption.Builder.getStringValue() |
ByteString |
CodedInputStream.readBytes()
Read a
bytes field value from the stream. |
ByteString |
AbstractMessageLite.toByteString() |
ByteString |
UnknownFieldSet.toByteString()
Serializes the message to a
ByteString and returns it. |
ByteString |
ByteString.Output.toByteString()
Creates a
ByteString instance from this Output . |
ByteString |
MessageLite.toByteString()
Serializes the message to a
ByteString and returns it. |
Modifier and Type | Method and Description |
---|---|
List<ByteString> |
UnknownFieldSet.Field.getLengthDelimitedList()
Get the list of length-delimited values for this field.
|
Modifier and Type | Method and Description |
---|---|
void |
LazyStringList.add(ByteString element)
Appends the specified element to the end of this list (optional
operation).
|
void |
LazyStringArrayList.add(ByteString element) |
void |
UnmodifiableLazyStringList.add(ByteString element) |
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.
|
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.
|
Message.Builder |
Message.Builder.mergeFrom(ByteString data) |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(ByteString data) |
UnknownFieldSet.Builder |
UnknownFieldSet.Builder.mergeFrom(ByteString data)
Parse
data as an UnknownFieldSet and merge it with the
set being built. |
BuilderType |
AbstractMessage.Builder.mergeFrom(ByteString data) |
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,
ExtensionRegistryLite extensionRegistry) |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
UnknownFieldSet.Builder |
UnknownFieldSet.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
BuilderType |
AbstractMessage.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. |
static UnknownFieldSet |
UnknownFieldSet.parseFrom(ByteString data)
Parse
data as an UnknownFieldSet and return it. |
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) |
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) |
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. |
DescriptorProtos.UninterpretedOption.Builder |
DescriptorProtos.UninterpretedOption.Builder.setStringValue(ByteString value) |
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(List<ByteString> list)
Concatenates all byte strings in the list and returns the result.
|
Copyright © 2008-2013. All Rights Reserved.