Uses of Class
com.google.protobuf.ByteString
-
Packages that use ByteString Package Description com.google.protobuf com.google.protobuf.compiler -
-
Uses of ByteString in com.google.protobuf
Fields in com.google.protobuf declared as ByteString Modifier and Type Field Description static ByteString
ByteString. EMPTY
EmptyByteString
.Methods in com.google.protobuf that return ByteString Modifier and Type Method 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 givenByteString
to this one.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
ByteString. copyFrom(String text, String charsetName)
Encodestext
into a sequence of bytes using the named charset and returns the result as aByteString
.static ByteString
ByteString. copyFrom(String text, Charset charset)
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 ByteString
ByteString. empty()
Returns an emptyByteString
of size0
.static ByteString
ByteString. fromHex(String hexString)
Returns aByteString
from a hexadecimal String.ByteString
DescriptorProtos.UninterpretedOption.Builder. getAggregateValueBytes()
optional string aggregate_value = 8;
ByteString
DescriptorProtos.UninterpretedOption. getAggregateValueBytes()
optional string aggregate_value = 8;
ByteString
DescriptorProtos.UninterpretedOptionOrBuilder. getAggregateValueBytes()
optional string aggregate_value = 8;
ByteString
LazyStringArrayList. getByteString(int index)
ByteString
LazyStringList. getByteString(int index)
Returns the element at the specified position in this list as a ByteString.ByteString
UnmodifiableLazyStringList. getByteString(int index)
ByteString
DescriptorProtos.FileOptions.Builder. getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.ByteString
DescriptorProtos.FileOptions. getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.ByteString
DescriptorProtos.FileOptionsOrBuilder. getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.ByteString
DescriptorProtos.FieldDescriptorProto.Builder. getDefaultValueBytes()
For numeric types, contains the original text representation of the value.ByteString
DescriptorProtos.FieldDescriptorProto. getDefaultValueBytes()
For numeric types, contains the original text representation of the value.ByteString
DescriptorProtos.FieldDescriptorProtoOrBuilder. getDefaultValueBytes()
For numeric types, contains the original text representation of the value.ByteString
Field.Builder. 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
FieldOrBuilder. getDefaultValueBytes()
The string value of the default value of this field.ByteString
DescriptorProtos.FileDescriptorProto.Builder. getDependencyBytes(int index)
Names of files imported by this file.ByteString
DescriptorProtos.FileDescriptorProto. getDependencyBytes(int index)
Names of files imported by this file.ByteString
DescriptorProtos.FileDescriptorProtoOrBuilder. getDependencyBytes(int index)
Names of files imported by this file.ByteString
DescriptorProtos.FieldDescriptorProto.Builder. getExtendeeBytes()
For extensions, this is the name of the type being extended.ByteString
DescriptorProtos.FieldDescriptorProto. getExtendeeBytes()
For extensions, this is the name of the type being extended.ByteString
DescriptorProtos.FieldDescriptorProtoOrBuilder. getExtendeeBytes()
For extensions, this is the name of the type being extended.ByteString
SourceContext.Builder. getFileNameBytes()
The path-qualified name of the .proto file that contained the associated protobuf element.ByteString
SourceContext. 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
DescriptorProtos.FileOptions.Builder. getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed.ByteString
DescriptorProtos.FileOptions. getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed.ByteString
DescriptorProtos.FileOptionsOrBuilder. getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed.ByteString
DescriptorProtos.UninterpretedOption.Builder. getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.ByteString
DescriptorProtos.UninterpretedOption. getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.ByteString
DescriptorProtos.UninterpretedOptionOrBuilder. getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.ByteString
DescriptorProtos.MethodDescriptorProto.Builder. getInputTypeBytes()
Input and output type names.ByteString
DescriptorProtos.MethodDescriptorProto. getInputTypeBytes()
Input and output type names.ByteString
DescriptorProtos.MethodDescriptorProtoOrBuilder. getInputTypeBytes()
Input and output type names.ByteString
DescriptorProtos.FileOptions.Builder. getJavaOuterClassnameBytes()
Controls the name of the wrapper Java class generated for the .proto file.ByteString
DescriptorProtos.FileOptions. getJavaOuterClassnameBytes()
Controls the name of the wrapper Java class generated for the .proto file.ByteString
DescriptorProtos.FileOptionsOrBuilder. getJavaOuterClassnameBytes()
Controls the name of the wrapper Java class generated for the .proto file.ByteString
DescriptorProtos.FileOptions.Builder. getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed.ByteString
DescriptorProtos.FileOptions. getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed.ByteString
DescriptorProtos.FileOptionsOrBuilder. getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed.ByteString
DescriptorProtos.FieldDescriptorProto.Builder. getJsonNameBytes()
JSON name of this field.ByteString
DescriptorProtos.FieldDescriptorProto. getJsonNameBytes()
JSON name of this field.ByteString
DescriptorProtos.FieldDescriptorProtoOrBuilder. getJsonNameBytes()
JSON name of this field.ByteString
Field.Builder. getJsonNameBytes()
The field JSON name.ByteString
Field. getJsonNameBytes()
The field JSON name.ByteString
FieldOrBuilder. getJsonNameBytes()
The field JSON name.ByteString
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.ByteString
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.ByteString
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.ByteString
DescriptorProtos.SourceCodeInfo.Location.Builder. getLeadingDetachedCommentsBytes(int index)
repeated string leading_detached_comments = 6;
ByteString
DescriptorProtos.SourceCodeInfo.Location. getLeadingDetachedCommentsBytes(int index)
repeated string leading_detached_comments = 6;
ByteString
DescriptorProtos.SourceCodeInfo.LocationOrBuilder. getLeadingDetachedCommentsBytes(int index)
repeated string leading_detached_comments = 6;
ByteString
Api.Builder. getNameBytes()
The fully qualified name of this interface, including package name followed by the interface's simple name.ByteString
Api. getNameBytes()
The fully qualified name of this interface, including package name followed by the interface's simple name.ByteString
ApiOrBuilder. getNameBytes()
The fully qualified name of this interface, including package name followed by the interface's simple name.ByteString
DescriptorProtos.DescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.DescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.DescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.EnumDescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.EnumDescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.EnumDescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.EnumValueDescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.EnumValueDescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.EnumValueDescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.FieldDescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.FieldDescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.FieldDescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.FileDescriptorProto.Builder. getNameBytes()
file name, relative to root of source treeByteString
DescriptorProtos.FileDescriptorProto. getNameBytes()
file name, relative to root of source treeByteString
DescriptorProtos.FileDescriptorProtoOrBuilder. getNameBytes()
file name, relative to root of source treeByteString
DescriptorProtos.MethodDescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.MethodDescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.MethodDescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.OneofDescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.OneofDescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.OneofDescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.ServiceDescriptorProto.Builder. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.ServiceDescriptorProto. getNameBytes()
optional string name = 1;
ByteString
DescriptorProtos.ServiceDescriptorProtoOrBuilder. getNameBytes()
optional string name = 1;
ByteString
Enum.Builder. getNameBytes()
Enum type name.ByteString
Enum. getNameBytes()
Enum type name.ByteString
EnumOrBuilder. getNameBytes()
Enum type name.ByteString
EnumValue.Builder. getNameBytes()
Enum value name.ByteString
EnumValue. getNameBytes()
Enum value name.ByteString
EnumValueOrBuilder. getNameBytes()
Enum value name.ByteString
Field.Builder. getNameBytes()
The field name.ByteString
Field. getNameBytes()
The field name.ByteString
FieldOrBuilder. getNameBytes()
The field name.ByteString
Method.Builder. getNameBytes()
The simple name of this method.ByteString
Method. getNameBytes()
The simple name of this method.ByteString
MethodOrBuilder. getNameBytes()
The simple name of this method.ByteString
Mixin.Builder. getNameBytes()
The fully qualified name of the interface which is included.ByteString
Mixin. getNameBytes()
The fully qualified name of the interface which is included.ByteString
MixinOrBuilder. getNameBytes()
The fully qualified name of the interface which is included.ByteString
Option.Builder. getNameBytes()
The option's name.ByteString
Option. getNameBytes()
The option's name.ByteString
OptionOrBuilder. getNameBytes()
The option's name.ByteString
Type.Builder. getNameBytes()
The fully qualified message name.ByteString
Type. getNameBytes()
The fully qualified message name.ByteString
TypeOrBuilder. getNameBytes()
The fully qualified message name.ByteString
DescriptorProtos.UninterpretedOption.NamePart.Builder. getNamePartBytes()
required string name_part = 1;
ByteString
DescriptorProtos.UninterpretedOption.NamePart. getNamePartBytes()
required string name_part = 1;
ByteString
DescriptorProtos.UninterpretedOption.NamePartOrBuilder. getNamePartBytes()
required string name_part = 1;
ByteString
DescriptorProtos.FileOptions.Builder. getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.ByteString
DescriptorProtos.FileOptions. getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.ByteString
DescriptorProtos.FileOptionsOrBuilder. getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto.ByteString
Type.Builder. getOneofsBytes(int index)
The list of types appearing in `oneof` definitions in this type.ByteString
Type. 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
DescriptorProtos.MethodDescriptorProto.Builder. getOutputTypeBytes()
optional string output_type = 3;
ByteString
DescriptorProtos.MethodDescriptorProto. getOutputTypeBytes()
optional string output_type = 3;
ByteString
DescriptorProtos.MethodDescriptorProtoOrBuilder. getOutputTypeBytes()
optional string output_type = 3;
ByteString
DescriptorProtos.FileDescriptorProto.Builder. getPackageBytes()
e.g.ByteString
DescriptorProtos.FileDescriptorProto. getPackageBytes()
e.g.ByteString
DescriptorProtos.FileDescriptorProtoOrBuilder. getPackageBytes()
e.g.ByteString
FieldMask.Builder. getPathsBytes(int index)
The set of field mask paths.ByteString
FieldMask. getPathsBytes(int index)
The set of field mask paths.ByteString
FieldMaskOrBuilder. getPathsBytes(int index)
The set of field mask paths.ByteString
DescriptorProtos.FileOptions.Builder. getPhpClassPrefixBytes()
Sets the php class prefix which is prepended to all php generated classes from this .proto.ByteString
DescriptorProtos.FileOptions. getPhpClassPrefixBytes()
Sets the php class prefix which is prepended to all php generated classes from this .proto.ByteString
DescriptorProtos.FileOptionsOrBuilder. getPhpClassPrefixBytes()
Sets the php class prefix which is prepended to all php generated classes from this .proto.ByteString
DescriptorProtos.FileOptions.Builder. getPhpMetadataNamespaceBytes()
Use this option to change the namespace of php generated metadata classes.ByteString
DescriptorProtos.FileOptions. getPhpMetadataNamespaceBytes()
Use this option to change the namespace of php generated metadata classes.ByteString
DescriptorProtos.FileOptionsOrBuilder. getPhpMetadataNamespaceBytes()
Use this option to change the namespace of php generated metadata classes.ByteString
DescriptorProtos.FileOptions.Builder. getPhpNamespaceBytes()
Use this option to change the namespace of php generated classes.ByteString
DescriptorProtos.FileOptions. getPhpNamespaceBytes()
Use this option to change the namespace of php generated classes.ByteString
DescriptorProtos.FileOptionsOrBuilder. getPhpNamespaceBytes()
Use this option to change the namespace of php generated classes.ByteString
Method.Builder. getRequestTypeUrlBytes()
A URL of the input message type.ByteString
Method. getRequestTypeUrlBytes()
A URL of the input message type.ByteString
MethodOrBuilder. getRequestTypeUrlBytes()
A URL of the input message type.ByteString
DescriptorProtos.DescriptorProto.Builder. getReservedNameBytes(int index)
Reserved field names, which may not be used by fields in the same message.ByteString
DescriptorProtos.DescriptorProto. getReservedNameBytes(int index)
Reserved field names, which may not be used by fields in the same message.ByteString
DescriptorProtos.DescriptorProtoOrBuilder. getReservedNameBytes(int index)
Reserved field names, which may not be used by fields in the same message.ByteString
DescriptorProtos.EnumDescriptorProto.Builder. getReservedNameBytes(int index)
Reserved enum value names, which may not be reused.ByteString
DescriptorProtos.EnumDescriptorProto. getReservedNameBytes(int index)
Reserved enum value names, which may not be reused.ByteString
DescriptorProtos.EnumDescriptorProtoOrBuilder. getReservedNameBytes(int index)
Reserved enum value names, which may not be reused.ByteString
Method.Builder. getResponseTypeUrlBytes()
The URL of the output message type.ByteString
Method. getResponseTypeUrlBytes()
The URL of the output message type.ByteString
MethodOrBuilder. getResponseTypeUrlBytes()
The URL of the output message type.ByteString
Mixin.Builder. getRootBytes()
If non-empty specifies a path under which inherited HTTP paths are rooted.ByteString
Mixin. 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
DescriptorProtos.FileOptions.Builder. getRubyPackageBytes()
Use this option to change the package of ruby generated classes.ByteString
DescriptorProtos.FileOptions. getRubyPackageBytes()
Use this option to change the package of ruby generated classes.ByteString
DescriptorProtos.FileOptionsOrBuilder. getRubyPackageBytes()
Use this option to change the package of ruby generated classes.ByteString
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder. getSourceFileBytes()
Identifies the filesystem path to the original source .proto.ByteString
DescriptorProtos.GeneratedCodeInfo.Annotation. getSourceFileBytes()
Identifies the filesystem path to the original source .proto.ByteString
DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder. getSourceFileBytes()
Identifies the filesystem path to the original source .proto.ByteString
DescriptorProtos.UninterpretedOption.Builder. getStringValue()
optional bytes string_value = 7;
ByteString
DescriptorProtos.UninterpretedOption. getStringValue()
optional bytes string_value = 7;
ByteString
DescriptorProtos.UninterpretedOptionOrBuilder. getStringValue()
optional bytes string_value = 7;
ByteString
Value.Builder. getStringValueBytes()
Represents a string value.ByteString
Value. getStringValueBytes()
Represents a string value.ByteString
ValueOrBuilder. getStringValueBytes()
Represents a string value.ByteString
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.ByteString
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.ByteString
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.ByteString
DescriptorProtos.FileDescriptorProto.Builder. getSyntaxBytes()
The syntax of the proto file.ByteString
DescriptorProtos.FileDescriptorProto. getSyntaxBytes()
The syntax of the proto file.ByteString
DescriptorProtos.FileDescriptorProtoOrBuilder. getSyntaxBytes()
The syntax of the proto file.ByteString
DescriptorProtos.SourceCodeInfo.Location.Builder. getTrailingCommentsBytes()
optional string trailing_comments = 4;
ByteString
DescriptorProtos.SourceCodeInfo.Location. getTrailingCommentsBytes()
optional string trailing_comments = 4;
ByteString
DescriptorProtos.SourceCodeInfo.LocationOrBuilder. getTrailingCommentsBytes()
optional string trailing_comments = 4;
ByteString
DescriptorProtos.FieldDescriptorProto.Builder. getTypeNameBytes()
For message and enum types, this is the name of the type.ByteString
DescriptorProtos.FieldDescriptorProto. getTypeNameBytes()
For message and enum types, this is the name of the type.ByteString
DescriptorProtos.FieldDescriptorProtoOrBuilder. getTypeNameBytes()
For message and enum types, this is the name of the type.ByteString
Any.Builder. getTypeUrlBytes()
A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.ByteString
Any. getTypeUrlBytes()
A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.ByteString
AnyOrBuilder. getTypeUrlBytes()
A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.ByteString
Field.Builder. 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
FieldOrBuilder. getTypeUrlBytes()
The field type URL, without the scheme, for message or enumeration types.ByteString
Any.Builder. getValue()
Must be a valid serialized protocol buffer of the above specified type.ByteString
Any. getValue()
Must be a valid serialized protocol buffer of the above specified type.ByteString
AnyOrBuilder. getValue()
Must be a valid serialized protocol buffer of the above specified type.ByteString
BytesValue.Builder. getValue()
The bytes value.ByteString
BytesValue. getValue()
The bytes value.ByteString
BytesValueOrBuilder. getValue()
The bytes value.ByteString
StringValue.Builder. getValueBytes()
The string value.ByteString
StringValue. getValueBytes()
The string value.ByteString
StringValueOrBuilder. getValueBytes()
The string value.ByteString
Api.Builder. getVersionBytes()
A version string for this interface.ByteString
Api. getVersionBytes()
A version string for this interface.ByteString
ApiOrBuilder. getVersionBytes()
A version string for this interface.abstract ByteString
CodedInputStream. readBytes()
Read abytes
field value from the stream.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.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.ByteString
AbstractMessageLite. toByteString()
ByteString
ByteString.Output. toByteString()
Creates a byte string with the size and contents of this output stream.ByteString
LazyFieldLite. toByteString()
Returns a BytesString for this field in a thread-safe way.ByteString
MessageLite. toByteString()
Serializes the message to aByteString
and returns it.ByteString
UnknownFieldSet.Field. toByteString(int fieldNumber)
Serializes the message to aByteString
and returns it.ByteString
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.Methods in com.google.protobuf that return types with arguments of type ByteString Modifier and Type Method Description List<ByteString>
LazyStringArrayList. asByteStringList()
List<ByteString>
ProtocolStringList. asByteStringList()
Returns a view of the data as a list of ByteStrings.List<ByteString>
UnmodifiableLazyStringList. asByteStringList()
List<ByteString>
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 ByteString Modifier and Type Method Description void
LazyStringArrayList. add(ByteString element)
void
LazyStringList. add(ByteString element)
Appends the specified element to the end of this list (optional operation).void
UnmodifiableLazyStringList. add(ByteString element)
DescriptorProtos.FileDescriptorProto.Builder
DescriptorProtos.FileDescriptorProto.Builder. addDependencyBytes(ByteString value)
Names of files imported by this file.DescriptorProtos.SourceCodeInfo.Location.Builder
DescriptorProtos.SourceCodeInfo.Location.Builder. addLeadingDetachedCommentsBytes(ByteString value)
repeated string leading_detached_comments = 6;
UnknownFieldSet.Field.Builder
UnknownFieldSet.Field.Builder. addLengthDelimited(ByteString value)
Add a length-delimited value.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.DescriptorProtos.DescriptorProto.Builder
DescriptorProtos.DescriptorProto.Builder. addReservedNameBytes(ByteString value)
Reserved field names, which may not be used by fields in the same message.DescriptorProtos.EnumDescriptorProto.Builder
DescriptorProtos.EnumDescriptorProto.Builder. addReservedNameBytes(ByteString value)
Reserved enum value names, which may not be reused.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.ByteString
ByteString. concat(ByteString other)
Concatenate the givenByteString
to this one.boolean
ByteString. endsWith(ByteString suffix)
Tests if this bytestring ends with the specified suffix.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.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.BuilderType
AbstractMessage.Builder. mergeFrom(ByteString data)
BuilderType
AbstractMessage.Builder. mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
BuilderType
AbstractMessageLite.Builder. mergeFrom(ByteString data)
BuilderType
AbstractMessageLite.Builder. mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Message.Builder
Message.Builder. mergeFrom(ByteString data)
Message.Builder
Message.Builder. mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
MessageLite.Builder
MessageLite.Builder. mergeFrom(ByteString data)
Parsedata
as a message of this type and merge it with the message being built.MessageLite.Builder
MessageLite.Builder. mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parsedata
as a message of this type and merge it with the message being built.UnknownFieldSet.Builder
UnknownFieldSet.Builder. mergeFrom(ByteString data)
Parsedata
as anUnknownFieldSet
and merge it with the set being built.UnknownFieldSet.Builder
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
UnknownFieldSet.Builder. mergeLengthDelimitedField(int number, ByteString value)
Convenience method for merging a length-delimited field.protected void
GeneratedMessageV3.Builder. mergeUnknownLengthDelimitedField(int number, ByteString bytes)
Called by generated subclasses to add to the unknown field set.static BytesValue
BytesValue. of(ByteString value)
Map.Entry<K,V>
MapEntryLite. parseEntry(ByteString bytes, ExtensionRegistryLite extensionRegistry)
Parses an entry off of the input as aMap.Entry
.MessageType
AbstractParser. parseFrom(ByteString data)
MessageType
AbstractParser. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Any
Any. parseFrom(ByteString data)
static Any
Any. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Api
Api. parseFrom(ByteString data)
static Api
Api. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static BoolValue
BoolValue. parseFrom(ByteString data)
static BoolValue
BoolValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static BytesValue
BytesValue. parseFrom(ByteString data)
static BytesValue
BytesValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.DescriptorProto.ExtensionRange
DescriptorProtos.DescriptorProto.ExtensionRange. parseFrom(ByteString data)
static DescriptorProtos.DescriptorProto.ExtensionRange
DescriptorProtos.DescriptorProto.ExtensionRange. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.DescriptorProto
DescriptorProtos.DescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.DescriptorProto
DescriptorProtos.DescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.DescriptorProto.ReservedRange
DescriptorProtos.DescriptorProto.ReservedRange. parseFrom(ByteString data)
static DescriptorProtos.DescriptorProto.ReservedRange
DescriptorProtos.DescriptorProto.ReservedRange. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto.EnumReservedRange
DescriptorProtos.EnumDescriptorProto.EnumReservedRange. parseFrom(ByteString data)
static DescriptorProtos.EnumDescriptorProto.EnumReservedRange
DescriptorProtos.EnumDescriptorProto.EnumReservedRange. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto
DescriptorProtos.EnumDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.EnumDescriptorProto
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)
static DescriptorProtos.EnumValueDescriptorProto
DescriptorProtos.EnumValueDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.EnumValueDescriptorProto
DescriptorProtos.EnumValueDescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumValueOptions
DescriptorProtos.EnumValueOptions. parseFrom(ByteString data)
static DescriptorProtos.EnumValueOptions
DescriptorProtos.EnumValueOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.ExtensionRangeOptions
DescriptorProtos.ExtensionRangeOptions. parseFrom(ByteString data)
static DescriptorProtos.ExtensionRangeOptions
DescriptorProtos.ExtensionRangeOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldDescriptorProto
DescriptorProtos.FieldDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.FieldDescriptorProto
DescriptorProtos.FieldDescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldOptions
DescriptorProtos.FieldOptions. parseFrom(ByteString data)
static DescriptorProtos.FieldOptions
DescriptorProtos.FieldOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorProto
DescriptorProtos.FileDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.FileDescriptorProto
DescriptorProtos.FileDescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorSet
DescriptorProtos.FileDescriptorSet. parseFrom(ByteString data)
static DescriptorProtos.FileDescriptorSet
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)
static DescriptorProtos.GeneratedCodeInfo.Annotation
DescriptorProtos.GeneratedCodeInfo.Annotation. parseFrom(ByteString data)
static DescriptorProtos.GeneratedCodeInfo.Annotation
DescriptorProtos.GeneratedCodeInfo.Annotation. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.GeneratedCodeInfo
DescriptorProtos.GeneratedCodeInfo. parseFrom(ByteString data)
static DescriptorProtos.GeneratedCodeInfo
DescriptorProtos.GeneratedCodeInfo. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.MessageOptions
DescriptorProtos.MessageOptions. parseFrom(ByteString data)
static DescriptorProtos.MessageOptions
DescriptorProtos.MessageOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.MethodDescriptorProto
DescriptorProtos.MethodDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.MethodDescriptorProto
DescriptorProtos.MethodDescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.MethodOptions
DescriptorProtos.MethodOptions. parseFrom(ByteString data)
static DescriptorProtos.MethodOptions
DescriptorProtos.MethodOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.OneofDescriptorProto
DescriptorProtos.OneofDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.OneofDescriptorProto
DescriptorProtos.OneofDescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.OneofOptions
DescriptorProtos.OneofOptions. parseFrom(ByteString data)
static DescriptorProtos.OneofOptions
DescriptorProtos.OneofOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.ServiceDescriptorProto
DescriptorProtos.ServiceDescriptorProto. parseFrom(ByteString data)
static DescriptorProtos.ServiceDescriptorProto
DescriptorProtos.ServiceDescriptorProto. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.ServiceOptions
DescriptorProtos.ServiceOptions. parseFrom(ByteString data)
static DescriptorProtos.ServiceOptions
DescriptorProtos.ServiceOptions. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.SourceCodeInfo.Location
DescriptorProtos.SourceCodeInfo.Location. parseFrom(ByteString data)
static DescriptorProtos.SourceCodeInfo.Location
DescriptorProtos.SourceCodeInfo.Location. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.SourceCodeInfo
DescriptorProtos.SourceCodeInfo. parseFrom(ByteString data)
static DescriptorProtos.SourceCodeInfo
DescriptorProtos.SourceCodeInfo. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.UninterpretedOption.NamePart
DescriptorProtos.UninterpretedOption.NamePart. parseFrom(ByteString data)
static DescriptorProtos.UninterpretedOption.NamePart
DescriptorProtos.UninterpretedOption.NamePart. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.UninterpretedOption
DescriptorProtos.UninterpretedOption. parseFrom(ByteString data)
static DescriptorProtos.UninterpretedOption
DescriptorProtos.UninterpretedOption. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DoubleValue
DoubleValue. parseFrom(ByteString data)
static DoubleValue
DoubleValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Duration
Duration. parseFrom(ByteString data)
static Duration
Duration. 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.static Empty
Empty. parseFrom(ByteString data)
static Empty
Empty. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Enum
Enum. parseFrom(ByteString data)
static Enum
Enum. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static EnumValue
EnumValue. parseFrom(ByteString data)
static EnumValue
EnumValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Field
Field. parseFrom(ByteString data)
static Field
Field. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static FieldMask
FieldMask. parseFrom(ByteString data)
static FieldMask
FieldMask. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static FloatValue
FloatValue. parseFrom(ByteString data)
static FloatValue
FloatValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
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)
static Int32Value
Int32Value. parseFrom(ByteString data)
static Int32Value
Int32Value. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Int64Value
Int64Value. parseFrom(ByteString data)
static Int64Value
Int64Value. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static ListValue
ListValue. parseFrom(ByteString data)
static ListValue
ListValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Method
Method. parseFrom(ByteString data)
static Method
Method. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Mixin
Mixin. parseFrom(ByteString data)
static Mixin
Mixin. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Option
Option. parseFrom(ByteString data)
static Option
Option. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
MessageType
Parser. parseFrom(ByteString data)
Parsesdata
as a message ofMessageType
.MessageType
Parser. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parsesdata
as a message ofMessageType
.static SourceContext
SourceContext. parseFrom(ByteString data)
static SourceContext
SourceContext. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static StringValue
StringValue. parseFrom(ByteString data)
static StringValue
StringValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Struct
Struct. parseFrom(ByteString data)
static Struct
Struct. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Timestamp
Timestamp. parseFrom(ByteString data)
static Timestamp
Timestamp. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Type
Type. parseFrom(ByteString data)
static Type
Type. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static UInt32Value
UInt32Value. parseFrom(ByteString data)
static UInt32Value
UInt32Value. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static UInt64Value
UInt64Value. parseFrom(ByteString data)
static UInt64Value
UInt64Value. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static UnknownFieldSet
UnknownFieldSet. parseFrom(ByteString data)
Parsedata
as anUnknownFieldSet
and return it.static Value
Value. parseFrom(ByteString data)
static Value
Value. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
MessageType
AbstractParser. parsePartialFrom(ByteString data)
MessageType
AbstractParser. parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
MessageType
Parser. parsePartialFrom(ByteString data)
LikeParser.parseFrom(ByteString)
, but does not throw an exception if the message is missing required fields.MessageType
Parser. parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
LikeParser.parseFrom(ByteString, ExtensionRegistryLite)
, but does not throw an exception if the message is missing required fields.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)
DescriptorProtos.UninterpretedOption.Builder
DescriptorProtos.UninterpretedOption.Builder. setAggregateValueBytes(ByteString value)
optional string aggregate_value = 8;
void
LazyFieldLite. setByteString(ByteString bytes, ExtensionRegistryLite extensionRegistry)
Sets this field with bytes to delay-parse.DescriptorProtos.FileOptions.Builder
DescriptorProtos.FileOptions.Builder. setCsharpNamespaceBytes(ByteString value)
Namespace for generated classes; defaults to the package.DescriptorProtos.FieldDescriptorProto.Builder
DescriptorProtos.FieldDescriptorProto.Builder. setDefaultValueBytes(ByteString value)
For numeric types, contains the original text representation of the value.Field.Builder
Field.Builder. setDefaultValueBytes(ByteString value)
The string value of the default value of this field.DescriptorProtos.FieldDescriptorProto.Builder
DescriptorProtos.FieldDescriptorProto.Builder. setExtendeeBytes(ByteString value)
For extensions, this is the name of the type being extended.SourceContext.Builder
SourceContext.Builder. setFileNameBytes(ByteString value)
The path-qualified name of the .proto file that contained the associated protobuf element.DescriptorProtos.FileOptions.Builder
DescriptorProtos.FileOptions.Builder. setGoPackageBytes(ByteString value)
Sets the Go package where structs generated from this .proto will be placed.DescriptorProtos.UninterpretedOption.Builder
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
DescriptorProtos.MethodDescriptorProto.Builder. setInputTypeBytes(ByteString value)
Input and output type names.DescriptorProtos.FileOptions.Builder
DescriptorProtos.FileOptions.Builder. setJavaOuterClassnameBytes(ByteString value)
Controls the name of the wrapper Java class generated for the .proto file.DescriptorProtos.FileOptions.Builder
DescriptorProtos.FileOptions.Builder. setJavaPackageBytes(ByteString value)
Sets the Java package where classes generated from this .proto will be placed.DescriptorProtos.FieldDescriptorProto.Builder
DescriptorProtos.FieldDescriptorProto.Builder. setJsonNameBytes(ByteString value)
JSON name of this field.Field.Builder
Field.Builder. setJsonNameBytes(ByteString value)
The field JSON name.DescriptorProtos.SourceCodeInfo.Location.Builder
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.Api.Builder
Api.Builder. setNameBytes(ByteString value)
The fully qualified name of this interface, including package name followed by the interface's simple name.DescriptorProtos.DescriptorProto.Builder
DescriptorProtos.DescriptorProto.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.FieldDescriptorProto.Builder
DescriptorProtos.FieldDescriptorProto.Builder. setNameBytes(ByteString value)
optional string name = 1;
DescriptorProtos.FileDescriptorProto.Builder
DescriptorProtos.FileDescriptorProto.Builder. setNameBytes(ByteString value)
file name, relative to root of source treeDescriptorProtos.MethodDescriptorProto.Builder
DescriptorProtos.MethodDescriptorProto.Builder. setNameBytes(ByteString value)
optional string name = 1;
DescriptorProtos.OneofDescriptorProto.Builder
DescriptorProtos.OneofDescriptorProto.Builder. setNameBytes(ByteString value)
optional string name = 1;
DescriptorProtos.ServiceDescriptorProto.Builder
DescriptorProtos.ServiceDescriptorProto.Builder. setNameBytes(ByteString value)
optional string name = 1;
Enum.Builder
Enum.Builder. setNameBytes(ByteString value)
Enum type name.EnumValue.Builder
EnumValue.Builder. setNameBytes(ByteString value)
Enum value name.Field.Builder
Field.Builder. setNameBytes(ByteString value)
The field name.Method.Builder
Method.Builder. setNameBytes(ByteString value)
The simple name of this method.Mixin.Builder
Mixin.Builder. setNameBytes(ByteString value)
The fully qualified name of the interface which is included.Option.Builder
Option.Builder. setNameBytes(ByteString value)
The option's name.Type.Builder
Type.Builder. setNameBytes(ByteString value)
The fully qualified message name.DescriptorProtos.UninterpretedOption.NamePart.Builder
DescriptorProtos.UninterpretedOption.NamePart.Builder. setNamePartBytes(ByteString value)
required string name_part = 1;
DescriptorProtos.FileOptions.Builder
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
DescriptorProtos.MethodDescriptorProto.Builder. setOutputTypeBytes(ByteString value)
optional string output_type = 3;
DescriptorProtos.FileDescriptorProto.Builder
DescriptorProtos.FileDescriptorProto.Builder. setPackageBytes(ByteString value)
e.g.DescriptorProtos.FileOptions.Builder
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
DescriptorProtos.FileOptions.Builder. setPhpMetadataNamespaceBytes(ByteString value)
Use this option to change the namespace of php generated metadata classes.DescriptorProtos.FileOptions.Builder
DescriptorProtos.FileOptions.Builder. setPhpNamespaceBytes(ByteString value)
Use this option to change the namespace of php generated classes.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.DescriptorProtos.FileOptions.Builder
DescriptorProtos.FileOptions.Builder. setRubyPackageBytes(ByteString value)
Use this option to change the package of ruby generated classes.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder. setSourceFileBytes(ByteString value)
Identifies the filesystem path to the original source .proto.DescriptorProtos.UninterpretedOption.Builder
DescriptorProtos.UninterpretedOption.Builder. setStringValue(ByteString value)
optional bytes string_value = 7;
Value.Builder
Value.Builder. setStringValueBytes(ByteString value)
Represents a string value.DescriptorProtos.FileOptions.Builder
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
DescriptorProtos.FileDescriptorProto.Builder. setSyntaxBytes(ByteString value)
The syntax of the proto file.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)
For message and enum types, this is the name of the type.Any.Builder
Any.Builder. setTypeUrlBytes(ByteString value)
A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.Field.Builder
Field.Builder. setTypeUrlBytes(ByteString value)
The field type URL, without the scheme, for message or enumeration types.Any.Builder
Any.Builder. setValue(ByteString value)
Must be a valid serialized protocol buffer of the above specified type.BytesValue.Builder
BytesValue.Builder. setValue(ByteString value)
The bytes value.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 givenByteString
to the providedByteOutput
.abstract void
CodedOutputStream. writeBytes(int fieldNumber, ByteString value)
Write abytes
field, including tag, to the stream.abstract void
CodedOutputStream. writeBytesNoTag(ByteString value)
Write abytes
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.Method parameters in com.google.protobuf with type arguments of type ByteString Modifier and Type Method Description boolean
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)
static ByteString
ByteString. copyFrom(Iterable<ByteString> byteStrings)
Concatenates all byte strings in the iterable and returns the result.Constructors in com.google.protobuf with parameters of type ByteString Constructor Description LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
LazyFieldLite(ExtensionRegistryLite extensionRegistry, ByteString bytes)
Constructs a LazyFieldLite with bytes that will be parsed lazily. -
Uses of ByteString in com.google.protobuf.compiler
Methods in com.google.protobuf.compiler that return ByteString Modifier and Type Method Description ByteString
PluginProtos.CodeGeneratorResponse.File.Builder. getContentBytes()
The file contents.ByteString
PluginProtos.CodeGeneratorResponse.File. getContentBytes()
The file contents.ByteString
PluginProtos.CodeGeneratorResponse.FileOrBuilder. getContentBytes()
The file contents.ByteString
PluginProtos.CodeGeneratorResponse.Builder. getErrorBytes()
Error message.ByteString
PluginProtos.CodeGeneratorResponse. getErrorBytes()
Error message.ByteString
PluginProtos.CodeGeneratorResponseOrBuilder. getErrorBytes()
Error message.ByteString
PluginProtos.CodeGeneratorRequest.Builder. getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line.ByteString
PluginProtos.CodeGeneratorRequest. getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line.ByteString
PluginProtos.CodeGeneratorRequestOrBuilder. getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line.ByteString
PluginProtos.CodeGeneratorResponse.File.Builder. getInsertionPointBytes()
If non-empty, indicates that the named file should already exist, and the content here is to be inserted into that file at a defined insertion point.ByteString
PluginProtos.CodeGeneratorResponse.File. getInsertionPointBytes()
If non-empty, indicates that the named file should already exist, and the content here is to be inserted into that file at a defined insertion point.ByteString
PluginProtos.CodeGeneratorResponse.FileOrBuilder. getInsertionPointBytes()
If non-empty, indicates that the named file should already exist, and the content here is to be inserted into that file at a defined insertion point.ByteString
PluginProtos.CodeGeneratorResponse.File.Builder. getNameBytes()
The file name, relative to the output directory.ByteString
PluginProtos.CodeGeneratorResponse.File. getNameBytes()
The file name, relative to the output directory.ByteString
PluginProtos.CodeGeneratorResponse.FileOrBuilder. getNameBytes()
The file name, relative to the output directory.ByteString
PluginProtos.CodeGeneratorRequest.Builder. getParameterBytes()
The generator parameter passed on the command-line.ByteString
PluginProtos.CodeGeneratorRequest. getParameterBytes()
The generator parameter passed on the command-line.ByteString
PluginProtos.CodeGeneratorRequestOrBuilder. getParameterBytes()
The generator parameter passed on the command-line.ByteString
PluginProtos.Version.Builder. getSuffixBytes()
A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".ByteString
PluginProtos.Version. getSuffixBytes()
A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".ByteString
PluginProtos.VersionOrBuilder. getSuffixBytes()
A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".Methods in com.google.protobuf.compiler with parameters of type ByteString Modifier and Type Method Description PluginProtos.CodeGeneratorRequest.Builder
PluginProtos.CodeGeneratorRequest.Builder. addFileToGenerateBytes(ByteString value)
The .proto files that were explicitly listed on the command-line.static PluginProtos.CodeGeneratorRequest
PluginProtos.CodeGeneratorRequest. parseFrom(ByteString data)
static PluginProtos.CodeGeneratorRequest
PluginProtos.CodeGeneratorRequest. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static PluginProtos.CodeGeneratorResponse.File
PluginProtos.CodeGeneratorResponse.File. parseFrom(ByteString data)
static PluginProtos.CodeGeneratorResponse.File
PluginProtos.CodeGeneratorResponse.File. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static PluginProtos.CodeGeneratorResponse
PluginProtos.CodeGeneratorResponse. parseFrom(ByteString data)
static PluginProtos.CodeGeneratorResponse
PluginProtos.CodeGeneratorResponse. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static PluginProtos.Version
PluginProtos.Version. parseFrom(ByteString data)
static PluginProtos.Version
PluginProtos.Version. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
PluginProtos.CodeGeneratorResponse.File.Builder
PluginProtos.CodeGeneratorResponse.File.Builder. setContentBytes(ByteString value)
The file contents.PluginProtos.CodeGeneratorResponse.Builder
PluginProtos.CodeGeneratorResponse.Builder. setErrorBytes(ByteString value)
Error message.PluginProtos.CodeGeneratorResponse.File.Builder
PluginProtos.CodeGeneratorResponse.File.Builder. setInsertionPointBytes(ByteString value)
If non-empty, indicates that the named file should already exist, and the content here is to be inserted into that file at a defined insertion point.PluginProtos.CodeGeneratorResponse.File.Builder
PluginProtos.CodeGeneratorResponse.File.Builder. setNameBytes(ByteString value)
The file name, relative to the output directory.PluginProtos.CodeGeneratorRequest.Builder
PluginProtos.CodeGeneratorRequest.Builder. setParameterBytes(ByteString value)
The generator parameter passed on the command-line.PluginProtos.Version.Builder
PluginProtos.Version.Builder. setSuffixBytes(ByteString value)
A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".
-