| 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.
|
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(ByteBuffer bytes)
Copies the remaining bytes from a
java.nio.ByteBuffer into a ByteString. |
static ByteString |
ByteString.copyFrom(ByteBuffer bytes,
int size)
Copies the next
size bytes from a java.nio.ByteBuffer into a ByteString. |
static ByteString |
ByteString.copyFrom(Iterable<ByteString> byteStrings)
Concatenates all byte strings in the iterable and returns the result.
|
static ByteString |
ByteString.copyFrom(String text,
Charset charset)
Encodes
text into a sequence of bytes using the named charset and returns the result as
a ByteString. |
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 |
UnmodifiableLazyStringList.getByteString(int index) |
ByteString |
LazyStringArrayList.getByteString(int index) |
ByteString |
FieldOrBuilder.getDefaultValueBytes()
The string value of the default value of this field.
|
ByteString |
Field.getDefaultValueBytes()
The string value of the default value of this field.
|
ByteString |
Field.Builder.getDefaultValueBytes()
The string value of the default value of this field.
|
ByteString |
SourceContext.getFileNameBytes()
The path-qualified name of the .proto file that contained the associated
protobuf element.
|
ByteString |
SourceContext.Builder.getFileNameBytes()
The path-qualified name of the .proto file that contained the associated
protobuf element.
|
ByteString |
SourceContextOrBuilder.getFileNameBytes()
The path-qualified name of the .proto file that contained the associated
protobuf element.
|
ByteString |
FieldOrBuilder.getJsonNameBytes()
The field JSON name.
|
ByteString |
Field.getJsonNameBytes()
The field JSON name.
|
ByteString |
Field.Builder.getJsonNameBytes()
The field JSON name.
|
ByteString |
EnumOrBuilder.getNameBytes()
Enum type name.
|
ByteString |
Mixin.getNameBytes()
The fully qualified name of the interface which is included.
|
ByteString |
Mixin.Builder.getNameBytes()
The fully qualified name of the interface which is included.
|
ByteString |
ApiOrBuilder.getNameBytes()
The fully qualified name of this interface, including package name
followed by the interface's simple name.
|
ByteString |
Enum.getNameBytes()
Enum type name.
|
ByteString |
Enum.Builder.getNameBytes()
Enum type name.
|
ByteString |
Api.getNameBytes()
The fully qualified name of this interface, including package name
followed by the interface's simple name.
|
ByteString |
Api.Builder.getNameBytes()
The fully qualified name of this interface, including package name
followed by the interface's simple name.
|
ByteString |
Type.getNameBytes()
The fully qualified message name.
|
ByteString |
Type.Builder.getNameBytes()
The fully qualified message name.
|
ByteString |
Method.getNameBytes()
The simple name of this method.
|
ByteString |
Method.Builder.getNameBytes()
The simple name of this method.
|
ByteString |
EnumValueOrBuilder.getNameBytes()
Enum value name.
|
ByteString |
EnumValue.getNameBytes()
Enum value name.
|
ByteString |
EnumValue.Builder.getNameBytes()
Enum value name.
|
ByteString |
FieldOrBuilder.getNameBytes()
The field name.
|
ByteString |
OptionOrBuilder.getNameBytes()
The option's name.
|
ByteString |
Field.getNameBytes()
The field name.
|
ByteString |
Field.Builder.getNameBytes()
The field name.
|
ByteString |
Option.getNameBytes()
The option's name.
|
ByteString |
Option.Builder.getNameBytes()
The option's name.
|
ByteString |
TypeOrBuilder.getNameBytes()
The fully qualified message name.
|
ByteString |
MethodOrBuilder.getNameBytes()
The simple name of this method.
|
ByteString |
MixinOrBuilder.getNameBytes()
The fully qualified name of the interface which is included.
|
ByteString |
Type.getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
|
ByteString |
Type.Builder.getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
|
ByteString |
TypeOrBuilder.getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.
|
ByteString |
FieldMask.getPathsBytes(int index)
The set of field mask paths.
|
ByteString |
FieldMask.Builder.getPathsBytes(int index)
The set of field mask paths.
|
ByteString |
FieldMaskOrBuilder.getPathsBytes(int index)
The set of field mask paths.
|
ByteString |
Method.getRequestTypeUrlBytes()
A URL of the input message type.
|
ByteString |
Method.Builder.getRequestTypeUrlBytes()
A URL of the input message type.
|
ByteString |
MethodOrBuilder.getRequestTypeUrlBytes()
A URL of the input message type.
|
ByteString |
Method.getResponseTypeUrlBytes()
The URL of the output message type.
|
ByteString |
Method.Builder.getResponseTypeUrlBytes()
The URL of the output message type.
|
ByteString |
MethodOrBuilder.getResponseTypeUrlBytes()
The URL of the output message type.
|
ByteString |
Mixin.getRootBytes()
If non-empty specifies a path under which inherited HTTP paths
are rooted.
|
ByteString |
Mixin.Builder.getRootBytes()
If non-empty specifies a path under which inherited HTTP paths
are rooted.
|
ByteString |
MixinOrBuilder.getRootBytes()
If non-empty specifies a path under which inherited HTTP paths
are rooted.
|
ByteString |
ValueOrBuilder.getStringValueBytes()
Represents a string value.
|
ByteString |
Value.getStringValueBytes()
Represents a string value.
|
ByteString |
Value.Builder.getStringValueBytes()
Represents a string value.
|
ByteString |
AnyOrBuilder.getTypeUrlBytes()
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message.
|
ByteString |
FieldOrBuilder.getTypeUrlBytes()
The field type URL, without the scheme, for message or enumeration
types.
|
ByteString |
Field.getTypeUrlBytes()
The field type URL, without the scheme, for message or enumeration
types.
|
ByteString |
Field.Builder.getTypeUrlBytes()
The field type URL, without the scheme, for message or enumeration
types.
|
ByteString |
Any.getTypeUrlBytes()
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message.
|
ByteString |
Any.Builder.getTypeUrlBytes()
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message.
|
ByteString |
BytesValueOrBuilder.getValue()
The bytes value.
|
ByteString |
AnyOrBuilder.getValue()
Must be a valid serialized protocol buffer of the above specified type.
|
ByteString |
BytesValue.getValue()
The bytes value.
|
ByteString |
BytesValue.Builder.getValue()
The bytes value.
|
ByteString |
Any.getValue()
Must be a valid serialized protocol buffer of the above specified type.
|
ByteString |
Any.Builder.getValue()
Must be a valid serialized protocol buffer of the above specified type.
|
ByteString |
StringValue.getValueBytes()
The string value.
|
ByteString |
StringValue.Builder.getValueBytes()
The string value.
|
ByteString |
StringValueOrBuilder.getValueBytes()
The string value.
|
ByteString |
ApiOrBuilder.getVersionBytes()
A version string for this interface.
|
ByteString |
Api.getVersionBytes()
A version string for this interface.
|
ByteString |
Api.Builder.getVersionBytes()
A version string for this interface.
|
abstract ByteString |
CodedInputStream.readBytes()
Read a
bytes field value from the stream. |
static ByteString |
ByteString.readFrom(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(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(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 |
MessageLite.toByteString()
Serializes the message to a
ByteString and returns it. |
ByteString |
LazyFieldLite.toByteString()
Returns a BytesString for this field in a thread-safe way.
|
ByteString |
ByteString.Output.toByteString()
Creates a byte string with the size and contents of this output stream.
|
ByteString |
AbstractMessageLite.toByteString() |
static ByteString |
UnsafeByteOperations.unsafeWrap(byte[] buffer)
An unsafe operation that returns a
ByteString that is backed by the provided buffer. |
static ByteString |
UnsafeByteOperations.unsafeWrap(byte[] buffer,
int offset,
int length)
An unsafe operation that returns a
ByteString that is backed by a subregion of the
provided buffer. |
static ByteString |
UnsafeByteOperations.unsafeWrap(ByteBuffer buffer)
An unsafe operation that returns a
ByteString that is backed by the provided buffer. |
| Modifier and Type | Method and Description |
|---|---|
List<ByteString> |
ProtocolStringList.asByteStringList()
Returns a view of the data as a list of ByteStrings.
|
List<ByteString> |
UnmodifiableLazyStringList.asByteStringList() |
List<ByteString> |
LazyStringArrayList.asByteStringList() |
static Comparator<ByteString> |
ByteString.unsignedLexicographicalComparator()
Returns a
Comparator which compares ByteString-s lexicographically
as sequences of unsigned bytes (i.e. |
| Modifier and Type | Method and Description |
|---|---|
void |
LazyStringList.add(ByteString element)
Appends the specified element to the end of this list (optional operation).
|
void |
UnmodifiableLazyStringList.add(ByteString element) |
void |
LazyStringArrayList.add(ByteString element) |
Type.Builder |
Type.Builder.addOneofsBytes(ByteString value)
The list of types appearing in `oneof` definitions in this type.
|
FieldMask.Builder |
FieldMask.Builder.addPathsBytes(ByteString value)
The set of field mask paths.
|
protected static void |
AbstractMessageLite.checkByteStringIsUtf8(ByteString byteString) |
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. |
boolean |
ByteString.endsWith(ByteString suffix)
Tests if this bytestring ends with the specified suffix.
|
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.
|
MessageLite.Builder |
MessageLite.Builder.mergeFrom(ByteString data)
Parse
data as a message of this type and merge it with the message being built. |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(ByteString data) |
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. |
BuilderType |
AbstractMessageLite.Builder.mergeFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
protected void |
GeneratedMessageLite.mergeLengthDelimitedField(int fieldNumber,
ByteString value)
Called by subclasses to parse an unknown field.
|
static BytesValue |
BytesValue.of(ByteString value) |
Map.Entry<K,V> |
MapEntryLite.parseEntry(ByteString bytes,
ExtensionRegistryLite extensionRegistry)
Parses an entry off of the input as a
Map.Entry. |
static Int32Value |
Int32Value.parseFrom(ByteString data) |
static FloatValue |
FloatValue.parseFrom(ByteString data) |
static Mixin |
Mixin.parseFrom(ByteString data) |
static Enum |
Enum.parseFrom(ByteString data) |
static UInt64Value |
UInt64Value.parseFrom(ByteString data) |
static Duration |
Duration.parseFrom(ByteString data) |
static Api |
Api.parseFrom(ByteString data) |
MessageType |
AbstractParser.parseFrom(ByteString data) |
static Type |
Type.parseFrom(ByteString data) |
static StringValue |
StringValue.parseFrom(ByteString data) |
static Method |
Method.parseFrom(ByteString data) |
static FieldMask |
FieldMask.parseFrom(ByteString data) |
static BytesValue |
BytesValue.parseFrom(ByteString data) |
static DoubleValue |
DoubleValue.parseFrom(ByteString data) |
static SourceContext |
SourceContext.parseFrom(ByteString data) |
static BoolValue |
BoolValue.parseFrom(ByteString data) |
static EnumValue |
EnumValue.parseFrom(ByteString data) |
static Field |
Field.parseFrom(ByteString data) |
static ListValue |
ListValue.parseFrom(ByteString data) |
static Option |
Option.parseFrom(ByteString data) |
static Timestamp |
Timestamp.parseFrom(ByteString data) |
static UInt32Value |
UInt32Value.parseFrom(ByteString data) |
static Int64Value |
Int64Value.parseFrom(ByteString data) |
MessageType |
Parser.parseFrom(ByteString data)
Parses
data as a message of MessageType. |
static Empty |
Empty.parseFrom(ByteString data) |
static Struct |
Struct.parseFrom(ByteString data) |
static Any |
Any.parseFrom(ByteString data) |
static Value |
Value.parseFrom(ByteString data) |
static Int32Value |
Int32Value.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static FloatValue |
FloatValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Mixin |
Mixin.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Enum |
Enum.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static UInt64Value |
UInt64Value.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Duration |
Duration.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Api |
Api.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
MessageType |
AbstractParser.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Type |
Type.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static StringValue |
StringValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Method |
Method.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static FieldMask |
FieldMask.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static BytesValue |
BytesValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DoubleValue |
DoubleValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static SourceContext |
SourceContext.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static BoolValue |
BoolValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static EnumValue |
EnumValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Field |
Field.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ListValue |
ListValue.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Option |
Option.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Timestamp |
Timestamp.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static UInt32Value |
UInt32Value.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Int64Value |
Int64Value.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
MessageType |
Parser.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry)
Parses
data as a message of MessageType. |
static Empty |
Empty.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Struct |
Struct.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Any |
Any.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Value |
Value.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
protected static <T extends GeneratedMessageLite<T,?>> |
GeneratedMessageLite.parseFrom(T defaultInstance,
ByteString data) |
protected static <T extends GeneratedMessageLite<T,?>> |
GeneratedMessageLite.parseFrom(T defaultInstance,
ByteString data,
ExtensionRegistryLite extensionRegistry) |
MessageType |
AbstractParser.parsePartialFrom(ByteString data) |
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,
ExtensionRegistryLite extensionRegistry) |
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. |
void |
LazyStringList.set(int index,
ByteString element)
Replaces the element at the specified position in this list with the specified element
(optional operation).
|
void |
UnmodifiableLazyStringList.set(int index,
ByteString element) |
void |
LazyStringArrayList.set(int index,
ByteString s) |
void |
LazyFieldLite.setByteString(ByteString bytes,
ExtensionRegistryLite extensionRegistry)
Sets this field with bytes to delay-parse.
|
Field.Builder |
Field.Builder.setDefaultValueBytes(ByteString value)
The string value of the default value of this field.
|
SourceContext.Builder |
SourceContext.Builder.setFileNameBytes(ByteString value)
The path-qualified name of the .proto file that contained the associated
protobuf element.
|
Field.Builder |
Field.Builder.setJsonNameBytes(ByteString value)
The field JSON name.
|
Mixin.Builder |
Mixin.Builder.setNameBytes(ByteString value)
The fully qualified name of the interface which is included.
|
Enum.Builder |
Enum.Builder.setNameBytes(ByteString value)
Enum type name.
|
Api.Builder |
Api.Builder.setNameBytes(ByteString value)
The fully qualified name of this interface, including package name
followed by the interface's simple name.
|
Type.Builder |
Type.Builder.setNameBytes(ByteString value)
The fully qualified message name.
|
Method.Builder |
Method.Builder.setNameBytes(ByteString value)
The simple name of this method.
|
EnumValue.Builder |
EnumValue.Builder.setNameBytes(ByteString value)
Enum value name.
|
Field.Builder |
Field.Builder.setNameBytes(ByteString value)
The field name.
|
Option.Builder |
Option.Builder.setNameBytes(ByteString value)
The option's name.
|
Method.Builder |
Method.Builder.setRequestTypeUrlBytes(ByteString value)
A URL of the input message type.
|
Method.Builder |
Method.Builder.setResponseTypeUrlBytes(ByteString value)
The URL of the output message type.
|
Mixin.Builder |
Mixin.Builder.setRootBytes(ByteString value)
If non-empty specifies a path under which inherited HTTP paths
are rooted.
|
Value.Builder |
Value.Builder.setStringValueBytes(ByteString value)
Represents a string value.
|
Field.Builder |
Field.Builder.setTypeUrlBytes(ByteString value)
The field type URL, without the scheme, for message or enumeration
types.
|
Any.Builder |
Any.Builder.setTypeUrlBytes(ByteString value)
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message.
|
BytesValue.Builder |
BytesValue.Builder.setValue(ByteString value)
The bytes value.
|
Any.Builder |
Any.Builder.setValue(ByteString value)
Must be a valid serialized protocol buffer of the above specified type.
|
StringValue.Builder |
StringValue.Builder.setValueBytes(ByteString value)
The string value.
|
Api.Builder |
Api.Builder.setVersionBytes(ByteString value)
A version string for this interface.
|
boolean |
ByteString.startsWith(ByteString prefix)
Tests if this bytestring starts with the specified prefix.
|
static void |
UnsafeByteOperations.unsafeWriteTo(ByteString bytes,
ByteOutput output)
Writes the given
ByteString to the provided ByteOutput. |
abstract void |
CodedOutputStream.writeBytes(int fieldNumber,
ByteString value)
Write a
bytes field, including tag, to the stream. |
abstract void |
CodedOutputStream.writeBytesNoTag(ByteString value)
Write a
bytes field to the stream. |
void |
CodedOutputStream.writeRawBytes(ByteString value)
Write a byte string.
|
abstract void |
CodedOutputStream.writeRawMessageSetExtension(int fieldNumber,
ByteString value)
Write an unparsed MessageSet extension field to the stream.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LazyStringList.addAllByteString(Collection<? extends ByteString> c)
Appends all elements in the specified ByteString collection to the end of this list.
|
boolean |
UnmodifiableLazyStringList.addAllByteString(Collection<? extends ByteString> element) |
boolean |
LazyStringArrayList.addAllByteString(Collection<? extends ByteString> values) |
static ByteString |
ByteString.copyFrom(Iterable<ByteString> byteStrings)
Concatenates all byte strings in the iterable and returns the result.
|
| Constructor and Description |
|---|
LazyField(MessageLite defaultInstance,
ExtensionRegistryLite extensionRegistry,
ByteString bytes) |
LazyFieldLite(ExtensionRegistryLite extensionRegistry,
ByteString bytes)
Constructs a LazyFieldLite with bytes that will be parsed lazily.
|
Copyright © 2008–2022. All rights reserved.