Uses of Class
com.google.protobuf.ByteString
-
Uses of ByteString in com.google.protobuf
Subclasses of ByteString in com.google.protobufModifier and TypeClassDescriptionprivate static final class
This class is used to represent the substring of aByteString
over a single byte array.(package private) static class
Base class for leafByteString
s (i.e.private static class
This class implements aByteString
backed by a single array of bytes, contiguous in memory.private static final class
AByteString
that wraps around aByteBuffer
.(package private) final class
Class to representByteStrings
formed by concatenation of other ByteStrings, without copying the data in the pieces.Fields in com.google.protobuf declared as ByteStringModifier and TypeFieldDescriptionprivate ByteString
LazyFieldLite.delayedBytes
A delayed-parsed version of the contents of this field.static final ByteString
ByteString.EMPTY
EmptyByteString
.private final ByteString
RopeByteString.left
private ByteString
LazyFieldLite.memoizedBytes
The memoized bytes forvalue
.private final ByteString
RopeByteString.right
private ByteString
DescriptorProtos.UninterpretedOption.Builder.stringValue_
private ByteString
DescriptorProtos.UninterpretedOption.stringValue_
Fields in com.google.protobuf with type parameters of type ByteStringModifier and TypeFieldDescriptionprivate final ArrayList
<ByteString> ByteString.Output.flushedBuffers
private List
<ByteString> UnknownFieldSet.Field.lengthDelimited
private final ArrayDeque
<ByteString> RopeByteString.Balancer.prefixesStack
private static final Comparator
<ByteString> ByteString.UNSIGNED_LEXICOGRAPHICAL_COMPARATOR
Compares twoByteString
s lexicographically, treating their contents as unsigned byte values between 0 and 255 (inclusive).Methods in com.google.protobuf that return ByteStringModifier and TypeMethodDescriptionprivate static ByteString
LazyStringArrayList.asByteString
(Object o) private ByteString
RopeByteString.Balancer.balance
(ByteString left, ByteString right) private static ByteString
ByteString.balancedConcat
(Iterator<ByteString> iterator, int length) ByteString.CodedBuilder.build()
static ByteString
Internal.bytesDefaultValue
(String bytes) Helper called by generated code to construct default values for bytes fields.final ByteString
ByteString.concat
(ByteString other) Concatenate the givenByteString
to this one.(package private) static ByteString
RopeByteString.concatenate
(ByteString left, ByteString right) Concatenate the given strings while performing various optimizations to slow the growth rate of tree depth and tree node count.private static ByteString
RopeByteString.concatenateBytes
(ByteString left, ByteString right) Concatenates two strings by copying data values.(package private) ByteString
TextFormat.Tokenizer.consumeByteString()
If the next token is a string, consume it, unescape it as aByteString
, and return it.static ByteString
ByteString.copyFrom
(byte[] bytes) Copies the given bytes into aByteString
.static ByteString
ByteString.copyFrom
(byte[] bytes, int offset, int size) Copies the given bytes into aByteString
.static ByteString
ByteString.copyFrom
(Iterable<ByteString> byteStrings) Concatenates all byte strings in the iterable and returns the result.static ByteString
Encodestext
into a sequence of bytes using the named charset and returns the result as aByteString
.static ByteString
Encodestext
into a sequence of bytes using the named charset and returns the result as aByteString
.static ByteString
ByteString.copyFrom
(ByteBuffer bytes) Copies the remaining bytes from ajava.nio.ByteBuffer
into aByteString
.static ByteString
ByteString.copyFrom
(ByteBuffer bytes, int size) Copies the nextsize
bytes from ajava.nio.ByteBuffer
into aByteString
.static ByteString
ByteString.copyFromUtf8
(String text) Encodestext
into a sequence of UTF-8 bytes and returns the result as aByteString
.static final ByteString
ByteString.empty()
Returns an emptyByteString
of size0
.static ByteString
Returns aByteString
from a hexadecimal String.LazyStringArrayList.ByteStringListView.get
(int index) DescriptorProtos.UninterpretedOption.Builder.getAggregateValueBytes()
optional string aggregate_value = 8;
DescriptorProtos.UninterpretedOption.getAggregateValueBytes()
optional string aggregate_value = 8;
DescriptorProtos.UninterpretedOptionOrBuilder.getAggregateValueBytes()
optional string aggregate_value = 8;
LazyStringArrayList.getByteString
(int index) LazyStringList.getByteString
(int index) Returns the element at the specified position in this list as a ByteString.UnmodifiableLazyStringList.getByteString
(int index) Deprecated.DescriptorProtos.FileOptions.Builder.getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.DescriptorProtos.FileOptions.getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.DescriptorProtos.FileOptionsOrBuilder.getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.DescriptorProtos.FieldDescriptorProto.Builder.getDefaultValueBytes()
For numeric types, contains the original text representation of the value.DescriptorProtos.FieldDescriptorProto.getDefaultValueBytes()
For numeric types, contains the original text representation of the value.DescriptorProtos.FieldDescriptorProtoOrBuilder.getDefaultValueBytes()
For numeric types, contains the original text representation of the value.DescriptorProtos.FileDescriptorProto.Builder.getDependencyBytes
(int index) Names of files imported by this file.DescriptorProtos.FileDescriptorProto.getDependencyBytes
(int index) Names of files imported by this file.DescriptorProtos.FileDescriptorProtoOrBuilder.getDependencyBytes
(int index) Names of files imported by this file.DescriptorProtos.FieldOptions.FeatureSupport.Builder.getDeprecationWarningBytes()
The deprecation warning text if this feature is used after the edition it was marked deprecated in.DescriptorProtos.FieldOptions.FeatureSupport.getDeprecationWarningBytes()
The deprecation warning text if this feature is used after the edition it was marked deprecated in.DescriptorProtos.FieldOptions.FeatureSupportOrBuilder.getDeprecationWarningBytes()
The deprecation warning text if this feature is used after the edition it was marked deprecated in.DescriptorProtos.FieldDescriptorProto.Builder.getExtendeeBytes()
For extensions, this is the name of the type being extended.DescriptorProtos.FieldDescriptorProto.getExtendeeBytes()
For extensions, this is the name of the type being extended.DescriptorProtos.FieldDescriptorProtoOrBuilder.getExtendeeBytes()
For extensions, this is the name of the type being extended.DescriptorProtos.ExtensionRangeOptions.Declaration.Builder.getFullNameBytes()
The fully-qualified name of the extension field.DescriptorProtos.ExtensionRangeOptions.Declaration.getFullNameBytes()
The fully-qualified name of the extension field.DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder.getFullNameBytes()
The fully-qualified name of the extension field.DescriptorProtos.FileOptions.Builder.getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed.DescriptorProtos.FileOptions.getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed.DescriptorProtos.FileOptionsOrBuilder.getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed.DescriptorProtos.UninterpretedOption.Builder.getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.DescriptorProtos.UninterpretedOption.getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.DescriptorProtos.UninterpretedOptionOrBuilder.getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.DescriptorProtos.MethodDescriptorProto.Builder.getInputTypeBytes()
Input and output type names.DescriptorProtos.MethodDescriptorProto.getInputTypeBytes()
Input and output type names.DescriptorProtos.MethodDescriptorProtoOrBuilder.getInputTypeBytes()
Input and output type names.DescriptorProtos.FileOptions.Builder.getJavaOuterClassnameBytes()
Controls the name of the wrapper Java class generated for the .proto file.DescriptorProtos.FileOptions.getJavaOuterClassnameBytes()
Controls the name of the wrapper Java class generated for the .proto file.DescriptorProtos.FileOptionsOrBuilder.getJavaOuterClassnameBytes()
Controls the name of the wrapper Java class generated for the .proto file.DescriptorProtos.FileOptions.Builder.getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed.DescriptorProtos.FileOptions.getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed.DescriptorProtos.FileOptionsOrBuilder.getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed.DescriptorProtos.FieldDescriptorProto.Builder.getJsonNameBytes()
JSON name of this field.DescriptorProtos.FieldDescriptorProto.getJsonNameBytes()
JSON name of this field.DescriptorProtos.FieldDescriptorProtoOrBuilder.getJsonNameBytes()
JSON name of this field.DescriptorProtos.SourceCodeInfo.Location.Builder.getLeadingCommentsBytes()
If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration.DescriptorProtos.SourceCodeInfo.Location.getLeadingCommentsBytes()
If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration.DescriptorProtos.SourceCodeInfo.LocationOrBuilder.getLeadingCommentsBytes()
If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration.DescriptorProtos.SourceCodeInfo.Location.Builder.getLeadingDetachedCommentsBytes
(int index) repeated string leading_detached_comments = 6;
DescriptorProtos.SourceCodeInfo.Location.getLeadingDetachedCommentsBytes
(int index) repeated string leading_detached_comments = 6;
DescriptorProtos.SourceCodeInfo.LocationOrBuilder.getLeadingDetachedCommentsBytes
(int index) repeated string leading_detached_comments = 6;
DescriptorProtos.DescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.DescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.DescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.EnumDescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.EnumDescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.EnumDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.EnumValueDescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.EnumValueDescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.EnumValueDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.FieldDescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.FieldDescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.FieldDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.FileDescriptorProto.Builder.getNameBytes()
file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.getNameBytes()
file name, relative to root of source treeDescriptorProtos.FileDescriptorProtoOrBuilder.getNameBytes()
file name, relative to root of source treeDescriptorProtos.MethodDescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.MethodDescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.MethodDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.OneofDescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.OneofDescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.OneofDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.ServiceDescriptorProto.Builder.getNameBytes()
optional string name = 1;
DescriptorProtos.ServiceDescriptorProto.getNameBytes()
optional string name = 1;
DescriptorProtos.ServiceDescriptorProtoOrBuilder.getNameBytes()
optional string name = 1;
DescriptorProtos.UninterpretedOption.NamePart.Builder.getNamePartBytes()
required string name_part = 1;
DescriptorProtos.UninterpretedOption.NamePart.getNamePartBytes()
required string name_part = 1;
DescriptorProtos.UninterpretedOption.NamePartOrBuilder.getNamePartBytes()
required string name_part = 1;
DescriptorProtos.FileOptions.Builder.getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.DescriptorProtos.FileOptions.getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.DescriptorProtos.FileOptionsOrBuilder.getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.DescriptorProtos.MethodDescriptorProto.Builder.getOutputTypeBytes()
optional string output_type = 3;
DescriptorProtos.MethodDescriptorProto.getOutputTypeBytes()
optional string output_type = 3;
DescriptorProtos.MethodDescriptorProtoOrBuilder.getOutputTypeBytes()
optional string output_type = 3;
DescriptorProtos.FileDescriptorProto.Builder.getPackageBytes()
e.g.DescriptorProtos.FileDescriptorProto.getPackageBytes()
e.g.DescriptorProtos.FileDescriptorProtoOrBuilder.getPackageBytes()
e.g.DescriptorProtos.FileOptions.Builder.getPhpClassPrefixBytes()
Sets the php class prefix which is prepended to all php generated classes from this .proto.DescriptorProtos.FileOptions.getPhpClassPrefixBytes()
Sets the php class prefix which is prepended to all php generated classes from this .proto.DescriptorProtos.FileOptionsOrBuilder.getPhpClassPrefixBytes()
Sets the php class prefix which is prepended to all php generated classes from this .proto.DescriptorProtos.FileOptions.Builder.getPhpMetadataNamespaceBytes()
Use this option to change the namespace of php generated metadata classes.DescriptorProtos.FileOptions.getPhpMetadataNamespaceBytes()
Use this option to change the namespace of php generated metadata classes.DescriptorProtos.FileOptionsOrBuilder.getPhpMetadataNamespaceBytes()
Use this option to change the namespace of php generated metadata classes.DescriptorProtos.FileOptions.Builder.getPhpNamespaceBytes()
Use this option to change the namespace of php generated classes.DescriptorProtos.FileOptions.getPhpNamespaceBytes()
Use this option to change the namespace of php generated classes.DescriptorProtos.FileOptionsOrBuilder.getPhpNamespaceBytes()
Use this option to change the namespace of php generated classes.DescriptorProtos.DescriptorProto.Builder.getReservedNameBytes
(int index) Reserved field names, which may not be used by fields in the same message.DescriptorProtos.DescriptorProto.getReservedNameBytes
(int index) Reserved field names, which may not be used by fields in the same message.DescriptorProtos.DescriptorProtoOrBuilder.getReservedNameBytes
(int index) Reserved field names, which may not be used by fields in the same message.DescriptorProtos.EnumDescriptorProto.Builder.getReservedNameBytes
(int index) Reserved enum value names, which may not be reused.DescriptorProtos.EnumDescriptorProto.getReservedNameBytes
(int index) Reserved enum value names, which may not be reused.DescriptorProtos.EnumDescriptorProtoOrBuilder.getReservedNameBytes
(int index) Reserved enum value names, which may not be reused.DescriptorProtos.FileOptions.Builder.getRubyPackageBytes()
Use this option to change the package of ruby generated classes.DescriptorProtos.FileOptions.getRubyPackageBytes()
Use this option to change the package of ruby generated classes.DescriptorProtos.FileOptionsOrBuilder.getRubyPackageBytes()
Use this option to change the package of ruby generated classes.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder.getSourceFileBytes()
Identifies the filesystem path to the original source .proto.DescriptorProtos.GeneratedCodeInfo.Annotation.getSourceFileBytes()
Identifies the filesystem path to the original source .proto.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder.getSourceFileBytes()
Identifies the filesystem path to the original source .proto.DescriptorProtos.UninterpretedOption.Builder.getStringValue()
optional bytes string_value = 7;
DescriptorProtos.UninterpretedOption.getStringValue()
optional bytes string_value = 7;
DescriptorProtos.UninterpretedOptionOrBuilder.getStringValue()
optional bytes string_value = 7;
DescriptorProtos.FileOptions.Builder.getSwiftPrefixBytes()
By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined.DescriptorProtos.FileOptions.getSwiftPrefixBytes()
By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined.DescriptorProtos.FileOptionsOrBuilder.getSwiftPrefixBytes()
By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined.DescriptorProtos.FileDescriptorProto.Builder.getSyntaxBytes()
The syntax of the proto file.DescriptorProtos.FileDescriptorProto.getSyntaxBytes()
The syntax of the proto file.DescriptorProtos.FileDescriptorProtoOrBuilder.getSyntaxBytes()
The syntax of the proto file.DescriptorProtos.SourceCodeInfo.Location.Builder.getTrailingCommentsBytes()
optional string trailing_comments = 4;
DescriptorProtos.SourceCodeInfo.Location.getTrailingCommentsBytes()
optional string trailing_comments = 4;
DescriptorProtos.SourceCodeInfo.LocationOrBuilder.getTrailingCommentsBytes()
optional string trailing_comments = 4;
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder.getTypeBytes()
The fully-qualified type name of the extension field.DescriptorProtos.ExtensionRangeOptions.Declaration.getTypeBytes()
The fully-qualified type name of the extension field.DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder.getTypeBytes()
The fully-qualified type name of the extension field.DescriptorProtos.FieldDescriptorProto.Builder.getTypeNameBytes()
For message and enum types, this is the name of the type.DescriptorProtos.FieldDescriptorProto.getTypeNameBytes()
For message and enum types, this is the name of the type.DescriptorProtos.FieldDescriptorProtoOrBuilder.getTypeNameBytes()
For message and enum types, this is the name of the type.DescriptorProtos.FieldOptions.EditionDefault.Builder.getValueBytes()
Textproto value.DescriptorProtos.FieldOptions.EditionDefault.getValueBytes()
Textproto value.DescriptorProtos.FieldOptions.EditionDefaultOrBuilder.getValueBytes()
Textproto value.(package private) static ByteString
ByteString.nioByteString
(ByteBuffer buffer) BinaryReader.SafeHeapReader.readBytes()
CodedInputStream.ArrayDecoder.readBytes()
CodedInputStream.IterableDirectByteBufferDecoder.readBytes()
abstract ByteString
CodedInputStream.readBytes()
Read abytes
field value from the stream.CodedInputStream.StreamDecoder.readBytes()
CodedInputStream.UnsafeDirectNioDecoder.readBytes()
CodedInputStreamReader.readBytes()
Reader.readBytes()
Reads and returns the next field of typeBYTES
and advances the reader to the next field.private ByteString
CodedInputStream.StreamDecoder.readBytesSlowPath
(int size) Like readBytes, but caller must have already checked the fast path: (size invalid input: '<'= (bufferSize - pos) invalid input: '&'invalid input: '&' size > 0 || size == 0)private static ByteString
ByteString.readChunk
(InputStream in, int chunkSize) Blocks until a chunk of the given size can be made from the stream, or EOF is reached.static ByteString
ByteString.readFrom
(InputStream streamToDrain) Completely reads the given stream's bytes into aByteString
, 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 aByteString
, 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) Helper method that takes the chunk size range as a parameter.LazyStringArrayList.ByteStringListView.remove
(int index) LazyStringArrayList.ByteStringListView.set
(int index, ByteString s) final ByteString
ByteString.LiteralByteString.substring
(int beginIndex, int endIndex) ByteString.NioByteString.substring
(int beginIndex, int endIndex) final ByteString
ByteString.substring
(int beginIndex) Return the substring frombeginIndex
, inclusive, to the end of the string.abstract ByteString
ByteString.substring
(int beginIndex, int endIndex) Return the substring frombeginIndex
, inclusive, toendIndex
, exclusive.RopeByteString.substring
(int beginIndex, int endIndex) Takes a substring of this one.private static ByteString
AbstractMessage.toByteString
(Object value) AbstractMessageLite.toByteString()
ByteString.Output.toByteString()
Creates a byte string with the size and contents of this output stream.LazyFieldLite.toByteString()
Returns a BytesString for this field in a thread-safe way.MessageLite.toByteString()
Serializes the message to aByteString
and returns it.UnknownFieldSet.Field.toByteString
(int fieldNumber) Serializes the message to aByteString
and returns it.UnknownFieldSet.toByteString()
Serializes the message to aByteString
and returns it.static ByteString
TextFormat.unescapeBytes
(CharSequence charString) Un-escape a byte sequence as escaped usingTextFormat.escapeBytes(ByteString)
.static ByteString
UnsafeByteOperations.unsafeWrap
(byte[] buffer) An unsafe operation that returns aByteString
that is backed by the provided buffer.static ByteString
UnsafeByteOperations.unsafeWrap
(byte[] buffer, int offset, int length) An unsafe operation that returns aByteString
that is backed by a subregion of the provided buffer.static ByteString
UnsafeByteOperations.unsafeWrap
(ByteBuffer buffer) An unsafe operation that returns aByteString
that is backed by the provided buffer.(package private) static ByteString
ByteString.wrap
(byte[] bytes) Wraps the given bytes into aByteString
.(package private) static ByteString
ByteString.wrap
(byte[] bytes, int offset, int length) Wraps the given bytes into aByteString
.(package private) static ByteString
ByteString.wrap
(ByteBuffer buffer) Wraps the given bytes into aByteString
.Methods in com.google.protobuf that return types with arguments of type ByteStringModifier and TypeMethodDescriptionLazyStringArrayList.asByteStringList()
ProtocolStringList.asByteStringList()
Returns a view of the data as a list of ByteStrings.UnmodifiableLazyStringList.asByteStringList()
Deprecated.UnknownFieldSet.Field.getLengthDelimitedList()
Get the list of length-delimited values for this field.static Comparator
<ByteString> ByteString.unsignedLexicographicalComparator()
Returns aComparator
which comparesByteString
-s lexicographically as sequences of unsigned bytes (i.e.Methods in com.google.protobuf with parameters of type ByteStringModifier and TypeMethodDescriptionprivate void
LazyStringArrayList.add
(int index, ByteString element) void
LazyStringArrayList.add
(ByteString element) void
LazyStringArrayList.ByteStringListView.add
(int index, ByteString s) void
LazyStringList.add
(ByteString element) Appends the specified element to the end of this list (optional operation).void
UnmodifiableLazyStringList.add
(ByteString element) Deprecated.DescriptorProtos.FileDescriptorProto.Builder.addDependencyBytes
(ByteString value) Names of files imported by this file.DescriptorProtos.SourceCodeInfo.Location.Builder.addLeadingDetachedCommentsBytes
(ByteString value) repeated string leading_detached_comments = 6;
(package private) abstract void
UnknownFieldSchema.addLengthDelimited
(B fields, int number, ByteString value) Adds a length delimited value to the unknown fields.UnknownFieldSet.Field.Builder.addLengthDelimited
(ByteString value) Add a length-delimited value.(package private) void
UnknownFieldSetLiteSchema.addLengthDelimited
(UnknownFieldSetLite fields, int number, ByteString value) (package private) void
UnknownFieldSetSchema.addLengthDelimited
(UnknownFieldSet.Builder fields, int number, ByteString value) DescriptorProtos.DescriptorProto.Builder.addReservedNameBytes
(ByteString value) Reserved field names, which may not be used by fields in the same message.DescriptorProtos.EnumDescriptorProto.Builder.addReservedNameBytes
(ByteString value) Reserved enum value names, which may not be reused.private ByteString
RopeByteString.Balancer.balance
(ByteString left, ByteString right) private static void
LazyFieldLite.checkArguments
(ExtensionRegistryLite extensionRegistry, ByteString bytes) 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 abytes
field, including tag.static int
CodedOutputStream.computeBytesSizeNoTag
(ByteString value) Compute the number of bytes that would be needed to encode abytes
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.final ByteString
ByteString.concat
(ByteString other) Concatenate the givenByteString
to this one.(package private) static ByteString
RopeByteString.concatenate
(ByteString left, ByteString right) Concatenate the given strings while performing various optimizations to slow the growth rate of tree depth and tree node count.private static ByteString
RopeByteString.concatenateBytes
(ByteString left, ByteString right) Concatenates two strings by copying data values.private void
RopeByteString.Balancer.doBalance
(ByteString root) final boolean
ByteString.endsWith
(ByteString suffix) Tests if this bytestring ends with the specified suffix.private boolean
RopeByteString.equalsFragments
(ByteString other) Determines if this string is equal to another of the same length by iterating over the leaf nodes.(package private) abstract boolean
ByteString.LeafByteString.equalsRange
(ByteString other, int offset, int length) Check equality of the substring of given length of this object starting at zero with anotherByteString
substring starting at offset.(package private) final boolean
ByteString.LiteralByteString.equalsRange
(ByteString other, int offset, int length) Check equality of the substring of given length of this object starting at zero with anotherLiteralByteString
substring starting at offset.(package private) boolean
ByteString.NioByteString.equalsRange
(ByteString other, int offset, int length) static String
TextFormat.escapeBytes
(ByteString input) Escapes bytes in the format used in protocol buffer text format, which is the same as the format used for C string literals.(package private) static String
TextFormatEscaper.escapeBytes
(ByteString input) Backslash escapes bytes in the format used in protocol buffer text format.private ByteString.LeafByteString
RopeByteString.PieceIterator.getLeafByLeft
(ByteString root) private void
RopeByteString.Balancer.insert
(ByteString byteString) Push a string on the balance stack (BAP95).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.AbstractMessage.Builder.mergeFrom
(ByteString data) AbstractMessage.Builder.mergeFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) AbstractMessageLite.Builder.mergeFrom
(ByteString data) AbstractMessageLite.Builder.mergeFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) Message.Builder.mergeFrom
(ByteString data) Message.Builder.mergeFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) MessageLite.Builder.mergeFrom
(ByteString data) Parsedata
as a message of this type and merge it with the message being built.MessageLite.Builder.mergeFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) Parsedata
as a message of this type and merge it with the message being built.UnknownFieldSet.Builder.mergeFrom
(ByteString data) Parsedata
as anUnknownFieldSet
and merge it with the set being built.UnknownFieldSet.Builder.mergeFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) protected void
GeneratedMessageLite.mergeLengthDelimitedField
(int fieldNumber, ByteString value) Called by subclasses to parse an unknown field.UnknownFieldSet.Builder.mergeLengthDelimitedField
(int number, ByteString value) Convenience method for merging a length-delimited field.(package private) UnknownFieldSetLite
UnknownFieldSetLite.mergeLengthDelimitedField
(int fieldNumber, ByteString value) Convenience method for merging a length-delimited field.private void
GeneratedMessageLite.ExtendableMessage.mergeMessageSetExtensionFromBytes
(ByteString rawBytes, ExtensionRegistryLite extensionRegistry, GeneratedMessageLite.GeneratedExtension<?, ?> extension) private static void
MessageReflection.mergeMessageSetExtensionFromBytes
(ByteString rawBytes, ExtensionRegistry.ExtensionInfo extension, ExtensionRegistryLite extensionRegistry, MessageReflection.MergeTarget target) protected final void
GeneratedMessage.Builder.mergeUnknownLengthDelimitedField
(int number, ByteString bytes) Called by generated subclasses to add to the unknown field set.private static MessageLite
LazyFieldLite.mergeValueAndBytes
(MessageLite value, ByteString otherBytes, ExtensionRegistryLite extensionRegistry) (package private) static RopeByteString
RopeByteString.newInstanceForTest
(ByteString left, ByteString right) Create a new RopeByteString for testing only while bypassing all the defenses ofRopeByteString.concatenate(ByteString, ByteString)
.MapEntryLite.parseEntry
(ByteString bytes, ExtensionRegistryLite extensionRegistry) Parses an entry off of the input as aMap.Entry
.AbstractParser.parseFrom
(ByteString data) AbstractParser.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.DescriptorProto.ExtensionRange.parseFrom
(ByteString data) DescriptorProtos.DescriptorProto.ExtensionRange.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.DescriptorProto.parseFrom
(ByteString data) DescriptorProtos.DescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.DescriptorProto.ReservedRange.parseFrom
(ByteString data) DescriptorProtos.DescriptorProto.ReservedRange.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.EnumDescriptorProto.EnumReservedRange.parseFrom
(ByteString data) DescriptorProtos.EnumDescriptorProto.EnumReservedRange.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.EnumDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.EnumDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) static DescriptorProtos.EnumOptions
DescriptorProtos.EnumOptions.parseFrom
(ByteString data) static DescriptorProtos.EnumOptions
DescriptorProtos.EnumOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.EnumValueDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.EnumValueDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.EnumValueOptions.parseFrom
(ByteString data) DescriptorProtos.EnumValueOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.ExtensionRangeOptions.Declaration.parseFrom
(ByteString data) DescriptorProtos.ExtensionRangeOptions.Declaration.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.ExtensionRangeOptions.parseFrom
(ByteString data) DescriptorProtos.ExtensionRangeOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) static DescriptorProtos.FeatureSet
DescriptorProtos.FeatureSet.parseFrom
(ByteString data) static DescriptorProtos.FeatureSet
DescriptorProtos.FeatureSet.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.parseFrom
(ByteString data) DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FeatureSetDefaults.parseFrom
(ByteString data) DescriptorProtos.FeatureSetDefaults.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FieldDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.FieldDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FieldOptions.EditionDefault.parseFrom
(ByteString data) DescriptorProtos.FieldOptions.EditionDefault.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FieldOptions.FeatureSupport.parseFrom
(ByteString data) DescriptorProtos.FieldOptions.FeatureSupport.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FieldOptions.parseFrom
(ByteString data) DescriptorProtos.FieldOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FileDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.FileDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FileDescriptorSet.parseFrom
(ByteString data) DescriptorProtos.FileDescriptorSet.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) static DescriptorProtos.FileOptions
DescriptorProtos.FileOptions.parseFrom
(ByteString data) static DescriptorProtos.FileOptions
DescriptorProtos.FileOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.GeneratedCodeInfo.Annotation.parseFrom
(ByteString data) DescriptorProtos.GeneratedCodeInfo.Annotation.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.GeneratedCodeInfo.parseFrom
(ByteString data) DescriptorProtos.GeneratedCodeInfo.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.MessageOptions.parseFrom
(ByteString data) DescriptorProtos.MessageOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.MethodDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.MethodDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.MethodOptions.parseFrom
(ByteString data) DescriptorProtos.MethodOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.OneofDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.OneofDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.OneofOptions.parseFrom
(ByteString data) DescriptorProtos.OneofOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.ServiceDescriptorProto.parseFrom
(ByteString data) DescriptorProtos.ServiceDescriptorProto.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.ServiceOptions.parseFrom
(ByteString data) DescriptorProtos.ServiceOptions.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.SourceCodeInfo.Location.parseFrom
(ByteString data) DescriptorProtos.SourceCodeInfo.Location.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.SourceCodeInfo.parseFrom
(ByteString data) DescriptorProtos.SourceCodeInfo.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.UninterpretedOption.NamePart.parseFrom
(ByteString data) DescriptorProtos.UninterpretedOption.NamePart.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.UninterpretedOption.parseFrom
(ByteString data) DescriptorProtos.UninterpretedOption.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) static DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, ByteString data) Parsedata
as a message of the given type and return it.static DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) Parsedata
as a message of the given type and return it.protected static <T extends GeneratedMessageLite<T,
?>>
TGeneratedMessageLite.parseFrom
(T defaultInstance, ByteString data) protected static <T extends GeneratedMessageLite<T,
?>>
TGeneratedMessageLite.parseFrom
(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry) JavaFeaturesProto.JavaFeatures.parseFrom
(ByteString data) JavaFeaturesProto.JavaFeatures.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) Parser.parseFrom
(ByteString data) Parsesdata
as a message ofMessageType
.Parser.parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) Parsesdata
as a message ofMessageType
.static UnknownFieldSet
UnknownFieldSet.parseFrom
(ByteString data) Parsedata
as anUnknownFieldSet
and return it.MessageReflection.BuilderAdapter.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite extensionRegistry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionAdapter.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.ExtensionBuilderAdapter.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor field, Message defaultInstance) MessageReflection.MergeTarget.parseMessageFromBytes
(ByteString bytes, ExtensionRegistryLite registry, Descriptors.FieldDescriptor descriptor, Message defaultInstance) Parse from a ByteString into a sub field message defined based on either FieldDescriptor or the default instance.(package private) abstract void
ExtensionSchema.parseMessageSetItem
(ByteString data, Object extension, ExtensionRegistryLite extensionRegistry, FieldSet<T> extensions) Parses the entire content of aByteString
as one MessageSet item.(package private) void
ExtensionSchemaFull.parseMessageSetItem
(ByteString data, Object extension, ExtensionRegistryLite extensionRegistry, FieldSet<Descriptors.FieldDescriptor> extensions) (package private) void
ExtensionSchemaLite.parseMessageSetItem
(ByteString data, Object extensionObject, ExtensionRegistryLite extensionRegistry, FieldSet<GeneratedMessageLite.ExtensionDescriptor> extensions) AbstractParser.parsePartialFrom
(ByteString data) AbstractParser.parsePartialFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) private static <T extends GeneratedMessageLite<T,
?>>
TGeneratedMessageLite.parsePartialFrom
(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry) Parser.parsePartialFrom
(ByteString data) LikeParser.parseFrom(ByteString)
, but does not throw an exception if the message is missing required fields.Parser.parsePartialFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) LikeParser.parseFrom(ByteString, ExtensionRegistryLite)
, but does not throw an exception if the message is missing required fields.LazyStringArrayList.ByteStringListView.set
(int index, ByteString s) void
LazyStringArrayList.set
(int index, ByteString s) 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) Deprecated.DescriptorProtos.UninterpretedOption.Builder.setAggregateValueBytes
(ByteString value) optional string aggregate_value = 8;
private Object
LazyStringArrayList.setAndReturn
(int index, ByteString s) void
LazyFieldLite.setByteString
(ByteString bytes, ExtensionRegistryLite extensionRegistry) Sets this field with bytes to delay-parse.DescriptorProtos.FileOptions.Builder.setCsharpNamespaceBytes
(ByteString value) Namespace for generated classes; defaults to the package.DescriptorProtos.FieldDescriptorProto.Builder.setDefaultValueBytes
(ByteString value) For numeric types, contains the original text representation of the value.DescriptorProtos.FieldOptions.FeatureSupport.Builder.setDeprecationWarningBytes
(ByteString value) The deprecation warning text if this feature is used after the edition it was marked deprecated in.DescriptorProtos.FieldDescriptorProto.Builder.setExtendeeBytes
(ByteString value) For extensions, this is the name of the type being extended.DescriptorProtos.ExtensionRangeOptions.Declaration.Builder.setFullNameBytes
(ByteString value) The fully-qualified name of the extension field.DescriptorProtos.FileOptions.Builder.setGoPackageBytes
(ByteString value) Sets the Go package where structs generated from this .proto will be placed.DescriptorProtos.UninterpretedOption.Builder.setIdentifierValueBytes
(ByteString value) The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.DescriptorProtos.MethodDescriptorProto.Builder.setInputTypeBytes
(ByteString value) Input and output type names.DescriptorProtos.FileOptions.Builder.setJavaOuterClassnameBytes
(ByteString value) Controls the name of the wrapper Java class generated for the .proto file.DescriptorProtos.FileOptions.Builder.setJavaPackageBytes
(ByteString value) Sets the Java package where classes generated from this .proto will be placed.DescriptorProtos.FieldDescriptorProto.Builder.setJsonNameBytes
(ByteString value) JSON name of this field.DescriptorProtos.SourceCodeInfo.Location.Builder.setLeadingCommentsBytes
(ByteString value) If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration.DescriptorProtos.DescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.EnumDescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.EnumValueDescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.FieldDescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.FileDescriptorProto.Builder.setNameBytes
(ByteString value) file name, relative to root of source treeDescriptorProtos.MethodDescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.OneofDescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.ServiceDescriptorProto.Builder.setNameBytes
(ByteString value) optional string name = 1;
DescriptorProtos.UninterpretedOption.NamePart.Builder.setNamePartBytes
(ByteString value) required string name_part = 1;
DescriptorProtos.FileOptions.Builder.setObjcClassPrefixBytes
(ByteString value) Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.DescriptorProtos.MethodDescriptorProto.Builder.setOutputTypeBytes
(ByteString value) optional string output_type = 3;
DescriptorProtos.FileDescriptorProto.Builder.setPackageBytes
(ByteString value) e.g.DescriptorProtos.FileOptions.Builder.setPhpClassPrefixBytes
(ByteString value) Sets the php class prefix which is prepended to all php generated classes from this .proto.DescriptorProtos.FileOptions.Builder.setPhpMetadataNamespaceBytes
(ByteString value) Use this option to change the namespace of php generated metadata classes.DescriptorProtos.FileOptions.Builder.setPhpNamespaceBytes
(ByteString value) Use this option to change the namespace of php generated classes.DescriptorProtos.FileOptions.Builder.setRubyPackageBytes
(ByteString value) Use this option to change the package of ruby generated classes.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder.setSourceFileBytes
(ByteString value) Identifies the filesystem path to the original source .proto.DescriptorProtos.UninterpretedOption.Builder.setStringValue
(ByteString value) optional bytes string_value = 7;
DescriptorProtos.FileOptions.Builder.setSwiftPrefixBytes
(ByteString value) By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined.DescriptorProtos.FileDescriptorProto.Builder.setSyntaxBytes
(ByteString value) The syntax of the proto file.DescriptorProtos.SourceCodeInfo.Location.Builder.setTrailingCommentsBytes
(ByteString value) optional string trailing_comments = 4;
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder.setTypeBytes
(ByteString value) The fully-qualified type name of the extension field.DescriptorProtos.FieldDescriptorProto.Builder.setTypeNameBytes
(ByteString value) For message and enum types, this is the name of the type.DescriptorProtos.FieldOptions.EditionDefault.Builder.setValueBytes
(ByteString value) Textproto value.final boolean
ByteString.startsWith
(ByteString prefix) Tests if this bytestring starts with the specified prefix.static void
UnsafeByteOperations.unsafeWriteTo
(ByteString bytes, ByteOutput output) Writes the givenByteString
to the providedByteOutput
.void
BinaryWriter.SafeDirectWriter.writeBytes
(int fieldNumber, ByteString value) void
BinaryWriter.SafeHeapWriter.writeBytes
(int fieldNumber, ByteString value) void
BinaryWriter.UnsafeDirectWriter.writeBytes
(int fieldNumber, ByteString value) void
BinaryWriter.UnsafeHeapWriter.writeBytes
(int fieldNumber, ByteString value) final void
CodedOutputStream.ArrayEncoder.writeBytes
(int fieldNumber, ByteString value) void
CodedOutputStream.ByteOutputEncoder.writeBytes
(int fieldNumber, ByteString value) void
CodedOutputStream.OutputStreamEncoder.writeBytes
(int fieldNumber, ByteString value) void
CodedOutputStream.SafeDirectNioEncoder.writeBytes
(int fieldNumber, ByteString value) void
CodedOutputStream.UnsafeDirectNioEncoder.writeBytes
(int fieldNumber, ByteString value) abstract void
CodedOutputStream.writeBytes
(int fieldNumber, ByteString value) Write abytes
field, including tag, to the stream.void
CodedOutputStreamWriter.writeBytes
(int fieldNumber, ByteString value) static void
SchemaUtil.writeBytes
(int fieldNumber, ByteString value, Writer writer) void
Writer.writeBytes
(int fieldNumber, ByteString value) Writes a field of typeFieldType.BYTES
.final void
CodedOutputStream.ArrayEncoder.writeBytesNoTag
(ByteString value) void
CodedOutputStream.ByteOutputEncoder.writeBytesNoTag
(ByteString value) void
CodedOutputStream.OutputStreamEncoder.writeBytesNoTag
(ByteString value) void
CodedOutputStream.SafeDirectNioEncoder.writeBytesNoTag
(ByteString value) void
CodedOutputStream.UnsafeDirectNioEncoder.writeBytesNoTag
(ByteString value) abstract void
CodedOutputStream.writeBytesNoTag
(ByteString value) Write abytes
field to the stream.final void
CodedOutputStream.writeRawBytes
(ByteString value) Write a byte string.final void
CodedOutputStream.ArrayEncoder.writeRawMessageSetExtension
(int fieldNumber, ByteString value) void
CodedOutputStream.ByteOutputEncoder.writeRawMessageSetExtension
(int fieldNumber, ByteString value) void
CodedOutputStream.OutputStreamEncoder.writeRawMessageSetExtension
(int fieldNumber, ByteString value) void
CodedOutputStream.SafeDirectNioEncoder.writeRawMessageSetExtension
(int fieldNumber, ByteString value) void
CodedOutputStream.UnsafeDirectNioEncoder.writeRawMessageSetExtension
(int fieldNumber, ByteString value) abstract void
CodedOutputStream.writeRawMessageSetExtension
(int fieldNumber, ByteString value) Write an unparsed MessageSet extension field to the stream.Method parameters in com.google.protobuf with type arguments of type ByteStringModifier and TypeMethodDescriptionboolean
LazyStringArrayList.addAllByteString
(Collection<? extends ByteString> values) 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) Deprecated.private static ByteString
ByteString.balancedConcat
(Iterator<ByteString> iterator, int length) (package private) static int
SchemaUtil.computeSizeByteStringList
(int fieldNumber, List<ByteString> list) private void
TextFormat.Tokenizer.consumeByteString
(List<ByteString> list) LikeTextFormat.Tokenizer.consumeByteString()
but adds each token of the string to the given list.static ByteString
ByteString.copyFrom
(Iterable<ByteString> byteStrings) Concatenates all byte strings in the iterable and returns the result.void
BinaryReader.SafeHeapReader.readBytesList
(List<ByteString> target) void
CodedInputStreamReader.readBytesList
(List<ByteString> target) void
Reader.readBytesList
(List<ByteString> target) Reads the next field of typeBYTES_LIST
and advances the reader to the next field.final void
BinaryWriter.writeBytesList
(int fieldNumber, List<ByteString> list) void
CodedOutputStreamWriter.writeBytesList
(int fieldNumber, List<ByteString> value) static void
SchemaUtil.writeBytesList
(int fieldNumber, List<ByteString> value, Writer writer) void
Writer.writeBytesList
(int fieldNumber, List<ByteString> value) Writes a list field of typeFieldType.BYTES
.Constructors in com.google.protobuf with parameters of type ByteStringModifierConstructorDescriptionLazyField
(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes) LazyFieldLite
(ExtensionRegistryLite extensionRegistry, ByteString bytes) Constructs a LazyFieldLite with bytes that will be parsed lazily.private
PieceIterator
(ByteString root) private
RopeByteString
(ByteString left, ByteString right) Create a new RopeByteString, which can be thought of as a new tree node, by recording references to the two given strings.