Uses of Class
com.google.protobuf.ByteString
Packages that use ByteString
-
Uses of ByteString in com.google.protobuf
Subclasses of ByteString in com.google.protobufModifier and TypeClassDescriptionprivate static final classThis class is used to represent the substring of aByteStringover a single byte array.(package private) static classBase class for leafByteStrings (i.e.private static final classThis class implements aByteStringbacked by a single array of bytes, contiguous in memory.(package private) final classClass to representByteStringsformed by concatenation of other ByteStrings, without copying the data in the pieces.Subclasses with type arguments of type ByteString in com.google.protobufFields in com.google.protobuf declared as ByteStringModifier and TypeFieldDescriptionprivate ByteStringLazyFieldLite.delayedBytesA delayed-parsed version of the contents of this field.static final ByteStringByteString.EMPTYEmptyByteString.private final ByteStringRopeByteString.leftprivate ByteStringLazyFieldLite.memoizedBytesThe memoized bytes forvalue.private final ByteStringRopeByteString.rightprivate ByteStringDescriptorProtos.UninterpretedOption.Builder.stringValue_private ByteStringDescriptorProtos.UninterpretedOption.stringValue_private ByteStringAny.Builder.value_private ByteStringAny.value_private ByteStringBytesValue.Builder.value_private ByteStringBytesValue.value_Fields in com.google.protobuf with type parameters of type ByteStringModifier and TypeFieldDescriptionprivate final ArrayList<ByteString> ByteString.Output.flushedBuffersprivate List<ByteString> UnknownFieldSet.Field.lengthDelimitedprivate final ArrayDeque<ByteString> RopeByteString.Balancer.prefixesStackprivate static final Comparator<ByteString> ByteString.UNSIGNED_LEXICOGRAPHICAL_COMPARATORCompares twoByteStrings lexicographically, treating their contents as unsigned byte values between 0 and 255 (inclusive).Methods in com.google.protobuf that return ByteStringModifier and TypeMethodDescriptionprivate static ByteStringLazyStringArrayList.asByteString(Object o) private ByteStringRopeByteString.Balancer.balance(ByteString left, ByteString right) private static ByteStringByteString.balancedConcat(Iterator<ByteString> iterator, int length) ByteString.CodedBuilder.build()static ByteStringInternal.bytesDefaultValue(String bytes) Helper called by generated code to construct default values for bytes fields.final ByteStringByteString.concat(ByteString other) Concatenate the givenByteStringto this one.(package private) static ByteStringRopeByteString.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 ByteStringRopeByteString.concatenateBytes(ByteString left, ByteString right) Concatenates two strings by copying data values.(package private) ByteStringTextFormat.Tokenizer.consumeByteString()If the next token is a string, consume it, unescape it as aByteString, and return it.static ByteStringByteString.copyFrom(byte[] bytes) Copies the given bytes into aByteString.static ByteStringByteString.copyFrom(byte[] bytes, int offset, int size) Copies the given bytes into aByteString.(package private) static ByteStringByteString.copyFrom(byte[] bytes, int offset, int size, boolean requireUtf8) static ByteStringByteString.copyFrom(Iterable<ByteString> byteStrings) Concatenates all byte strings in the iterable and returns the result.static ByteStringDeprecated.static ByteStringEncodestextinto a sequence of bytes using the named charset and returns the result as aByteString.static ByteStringByteString.copyFrom(ByteBuffer bytes) Copies the remaining bytes from ajava.nio.ByteBufferinto aByteString.static ByteStringByteString.copyFrom(ByteBuffer bytes, int size) Copies the nextsizebytes from ajava.nio.ByteBufferinto aByteString.static ByteStringByteString.copyFromUtf8(String text) Encodestextinto a sequence of UTF-8 bytes and returns the result as aByteString.static final ByteStringByteString.empty()Returns an emptyByteStringof size0.static ByteStringReturns aByteStringfrom 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.Field.Builder.getDefaultValueBytes()The string value of the default value of this field.Field.getDefaultValueBytes()The string value of the default value of this field.FieldOrBuilder.getDefaultValueBytes()The string value of the default value of this field.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.Api.Builder.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.Api.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.ApiOrBuilder.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.Enum.Builder.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.Enum.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.EnumOrBuilder.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.Method.Builder.getEditionBytes()Deprecated.google.protobuf.Method.edition is deprecated.Method.getEditionBytes()Deprecated.google.protobuf.Method.edition is deprecated.MethodOrBuilder.getEditionBytes()Deprecated.google.protobuf.Method.edition is deprecated.Type.Builder.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.Type.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.TypeOrBuilder.getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.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.SourceContext.Builder.getFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.SourceContext.getFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.SourceContextOrBuilder.getFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.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.Field.Builder.getJsonNameBytes()The field JSON name.Field.getJsonNameBytes()The field JSON name.FieldOrBuilder.getJsonNameBytes()The field JSON name.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;Api.Builder.getNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.Api.getNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.ApiOrBuilder.getNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.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;Enum.Builder.getNameBytes()Enum type name.Enum.getNameBytes()Enum type name.EnumOrBuilder.getNameBytes()Enum type name.EnumValue.Builder.getNameBytes()Enum value name.EnumValue.getNameBytes()Enum value name.EnumValueOrBuilder.getNameBytes()Enum value name.Field.Builder.getNameBytes()The field name.Field.getNameBytes()The field name.FieldOrBuilder.getNameBytes()The field name.Method.Builder.getNameBytes()The simple name of this method.Method.getNameBytes()The simple name of this method.MethodOrBuilder.getNameBytes()The simple name of this method.Mixin.Builder.getNameBytes()The fully qualified name of the interface which is included.Mixin.getNameBytes()The fully qualified name of the interface which is included.MixinOrBuilder.getNameBytes()The fully qualified name of the interface which is included.Option.Builder.getNameBytes()The option's name.Option.getNameBytes()The option's name.OptionOrBuilder.getNameBytes()The option's name.Type.Builder.getNameBytes()The fully qualified message name.Type.getNameBytes()The fully qualified message name.TypeOrBuilder.getNameBytes()The fully qualified message name.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.Type.Builder.getOneofsBytes(int index) The list of types appearing in `oneof` definitions in this type.Type.getOneofsBytes(int index) The list of types appearing in `oneof` definitions in this type.TypeOrBuilder.getOneofsBytes(int index) The list of types appearing in `oneof` definitions in this type.DescriptorProtos.FileDescriptorProto.Builder.getOptionDependencyBytes(int index) Names of files imported by this file purely for the purpose of providing option extensions.DescriptorProtos.FileDescriptorProto.getOptionDependencyBytes(int index) Names of files imported by this file purely for the purpose of providing option extensions.DescriptorProtos.FileDescriptorProtoOrBuilder.getOptionDependencyBytes(int index) Names of files imported by this file purely for the purpose of providing option extensions.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.FieldMask.Builder.getPathsBytes(int index) The set of field mask paths.FieldMask.getPathsBytes(int index) The set of field mask paths.FieldMaskOrBuilder.getPathsBytes(int index) The set of field mask paths.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.FieldOptions.FeatureSupport.Builder.getRemovalErrorBytes()The removal error text if this feature is used after the edition it was removed in.DescriptorProtos.FieldOptions.FeatureSupport.getRemovalErrorBytes()The removal error text if this feature is used after the edition it was removed in.DescriptorProtos.FieldOptions.FeatureSupportOrBuilder.getRemovalErrorBytes()The removal error text if this feature is used after the edition it was removed in.Method.Builder.getRequestTypeUrlBytes()A URL of the input message type.Method.getRequestTypeUrlBytes()A URL of the input message type.MethodOrBuilder.getRequestTypeUrlBytes()A URL of the input message type.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.Method.Builder.getResponseTypeUrlBytes()The URL of the output message type.Method.getResponseTypeUrlBytes()The URL of the output message type.MethodOrBuilder.getResponseTypeUrlBytes()The URL of the output message type.Mixin.Builder.getRootBytes()If non-empty specifies a path under which inherited HTTP paths are rooted.Mixin.getRootBytes()If non-empty specifies a path under which inherited HTTP paths are rooted.MixinOrBuilder.getRootBytes()If non-empty specifies a path under which inherited HTTP paths are rooted.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;Value.Builder.getStringValueBytes()Represents a string value.Value.getStringValueBytes()Represents a string value.ValueOrBuilder.getStringValueBytes()Represents a string value.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.Any.Builder.getTypeUrlBytes()A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.Any.getTypeUrlBytes()A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.AnyOrBuilder.getTypeUrlBytes()A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.Field.Builder.getTypeUrlBytes()The field type URL, without the scheme, for message or enumeration types.Field.getTypeUrlBytes()The field type URL, without the scheme, for message or enumeration types.FieldOrBuilder.getTypeUrlBytes()The field type URL, without the scheme, for message or enumeration types.Any.Builder.getValue()Must be a valid serialized protocol buffer of the above specified type.Any.getValue()Must be a valid serialized protocol buffer of the above specified type.AnyOrBuilder.getValue()Must be a valid serialized protocol buffer of the above specified type.BytesValue.Builder.getValue()The bytes value.BytesValue.getValue()The bytes value.BytesValueOrBuilder.getValue()The bytes value.DescriptorProtos.FieldOptions.EditionDefault.Builder.getValueBytes()Textproto value.DescriptorProtos.FieldOptions.EditionDefault.getValueBytes()Textproto value.DescriptorProtos.FieldOptions.EditionDefaultOrBuilder.getValueBytes()Textproto value.StringValue.Builder.getValueBytes()The string value.StringValue.getValueBytes()The string value.StringValueOrBuilder.getValueBytes()The string value.Api.Builder.getVersionBytes()A version string for this interface.Api.getVersionBytes()A version string for this interface.ApiOrBuilder.getVersionBytes()A version string for this interface.BinaryReader.SafeHeapReader.readBytes()CodedInputStream.ArrayDecoder.readBytes()abstract ByteStringCodedInputStream.readBytes()Read abytesfield value from the stream.CodedInputStream.StreamDecoder.readBytes()CodedInputStreamReader.readBytes()Reader.readBytes()Reads and returns the next field of typeBYTESand advances the reader to the next field.private ByteStringCodedInputStream.ArrayDecoder.readBytesInternal(boolean requireUtf8) private ByteStringCodedInputStream.StreamDecoder.readBytesInternal(boolean requireUtf8) private ByteStringCodedInputStream.StreamDecoder.readBytesSlowPath(int size, boolean requireUtf8) 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 ByteStringByteString.readChunk(InputStream in, int chunkSize) Blocks until a chunk of the given size can be made from the stream, or EOF is reached.static ByteStringByteString.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 ByteStringByteString.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 ByteStringByteString.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) ByteString.BoundedByteString.substring(int beginIndex, int endIndex) ByteString.LiteralByteString.substring(int beginIndex, int endIndex) final ByteStringByteString.substring(int beginIndex) Return the substring frombeginIndex, inclusive, to the end of the string.abstract ByteStringByteString.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 ByteStringAbstractMessage.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 aByteStringand returns it.UnknownFieldSet.Field.toByteString(int fieldNumber) Serializes the message to aByteStringand returns it.UnknownFieldSet.toByteString()Serializes the message to aByteStringand returns it.static ByteStringTextFormat.unescapeBytes(CharSequence charString) Un-escape a byte sequence as escaped usingTextFormat.escapeBytes(ByteString).static ByteStringUnsafeByteOperations.unsafeWrap(byte[] buffer) An unsafe operation that returns aByteStringthat is backed by the provided buffer.static ByteStringUnsafeByteOperations.unsafeWrap(byte[] buffer, int offset, int length) An unsafe operation that returns aByteStringthat is backed by a subregion of the provided buffer.static ByteStringUnsafeByteOperations.unsafeWrap(ByteBuffer buffer) An unsafe operation that returns aByteStringthat is backed by the provided buffer.(package private) static ByteStringByteString.wrap(byte[] bytes) Wraps the given bytes into aByteString.(package private) static ByteStringByteString.wrap(byte[] bytes, boolean requireUtf8) (package private) static ByteStringByteString.wrap(byte[] bytes, int offset, int length) Wraps the given bytes into aByteString.(package private) static ByteStringByteString.wrap(byte[] bytes, int offset, int length, boolean requireUtf8) (package private) static ByteStringByteString.wrap(ByteBuffer buffer) Wraps the given bytes into aByteString.(package private) static ByteStringByteString.wrap(ByteBuffer buffer, boolean requireUtf8) 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 aComparatorwhich comparesByteString-s lexicographically as sequences of unsigned bytes (i.e.Methods in com.google.protobuf with parameters of type ByteStringModifier and TypeMethodDescriptionprivate voidLazyStringArrayList.add(int index, ByteString element) voidLazyStringArrayList.add(ByteString element) voidLazyStringArrayList.ByteStringListView.add(int index, ByteString s) voidLazyStringList.add(ByteString element) Appends the specified element to the end of this list (optional operation).voidUnmodifiableLazyStringList.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 voidUnknownFieldSchema.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) voidUnknownFieldSetLiteSchema.addLengthDelimited(UnknownFieldSetLite fields, int number, ByteString value) (package private) voidUnknownFieldSetSchema.addLengthDelimited(UnknownFieldSet.Builder fields, int number, ByteString value) Type.Builder.addOneofsBytes(ByteString value) The list of types appearing in `oneof` definitions in this type.DescriptorProtos.FileDescriptorProto.Builder.addOptionDependencyBytes(ByteString value) Names of files imported by this file purely for the purpose of providing option extensions.FieldMask.Builder.addPathsBytes(ByteString value) The set of field mask paths.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 ByteStringRopeByteString.Balancer.balance(ByteString left, ByteString right) private static voidLazyFieldLite.checkArguments(ExtensionRegistryLite extensionRegistry, ByteString bytes) protected static voidAbstractMessageLite.checkByteStringIsUtf8(ByteString byteString) static intCodedOutputStream.computeBytesSize(int fieldNumber, ByteString value) Compute the number of bytes that would be needed to encode abytesfield, including tag.static intCodedOutputStream.computeBytesSizeNoTag(ByteString value) Compute the number of bytes that would be needed to encode abytesfield.static intCodedOutputStream.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 ByteStringByteString.concat(ByteString other) Concatenate the givenByteStringto this one.(package private) static ByteStringRopeByteString.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 ByteStringRopeByteString.concatenateBytes(ByteString left, ByteString right) Concatenates two strings by copying data values.private voidRopeByteString.Balancer.doBalance(ByteString root) final booleanByteString.endsWith(ByteString suffix) Tests if this bytestring ends with the specified suffix.protected booleanByteString.BoundedByteString.equalsInternal(ByteString other) protected abstract booleanByteString.equalsInternal(ByteString other) Internal portion of the equals check: as a precondition the caller has already checked most fast properties that are common (including reference identity, null, size, cached hash codes if available) are the same.protected final booleanByteString.LiteralByteString.equalsInternal(ByteString other) booleanRopeByteString.equalsInternal(ByteString other) Determines if this string is equal to another of the same length by iterating over the leaf nodes.(package private) booleanByteString.BoundedByteString.equalsRange(ByteString other, int offset, int length) (package private) abstract booleanByteString.LeafByteString.equalsRange(ByteString other, int offset, int length) Check equality of the substring of given length of this object starting at zero with anotherByteStringsubstring starting at offset.(package private) booleanByteString.LiteralByteString.equalsRange(ByteString other, int offset, int length) Check equality of the substring of given length of this object starting at zero with another ByteString substring starting at offset.static StringTextFormat.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 StringTextFormatEscaper.escapeBytes(ByteString input) Backslash escapes bytes in the format used in protocol buffer text format.private ByteString.LeafByteStringRopeByteString.PieceIterator.getLeafByLeft(ByteString root) private voidRopeByteString.Balancer.insert(ByteString byteString) Push a string on the balance stack (BAP95).static booleanInternal.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) Parsedataas a message of this type and merge it with the message being built.MessageLite.Builder.mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry) Parsedataas a message of this type and merge it with the message being built.UnknownFieldSet.Builder.mergeFrom(ByteString data) Parsedataas anUnknownFieldSetand merge it with the set being built.UnknownFieldSet.Builder.mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry) protected voidGeneratedMessageLite.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) UnknownFieldSetLiteUnknownFieldSetLite.mergeLengthDelimitedField(int fieldNumber, ByteString value) Convenience method for merging a length-delimited field.private voidGeneratedMessageLite.ExtendableMessage.mergeMessageSetExtensionFromBytes(ByteString rawBytes, ExtensionRegistryLite extensionRegistry, GeneratedMessageLite.GeneratedExtension<?, ?> extension) private static voidMessageReflection.mergeMessageSetExtensionFromBytes(ByteString rawBytes, ExtensionRegistry.ExtensionInfo extension, ExtensionRegistryLite extensionRegistry, MessageReflection.MergeTarget target) protected final voidGeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int number, ByteString bytes) Called by generated subclasses to add to the unknown field set.private static MessageLiteLazyFieldLite.mergeValueAndBytes(MessageLite value, ByteString otherBytes, ExtensionRegistryLite extensionRegistry) (package private) static RopeByteStringRopeByteString.newInstanceForTest(ByteString left, ByteString right) Create a new RopeByteString for testing only while bypassing all the defenses ofRopeByteString.concatenate(ByteString, ByteString).static BytesValueBytesValue.of(ByteString value) 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) static AnyAny.parseFrom(ByteString data) static AnyAny.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static ApiApi.parseFrom(ByteString data) static ApiApi.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static BoolValueBoolValue.parseFrom(ByteString data) static BoolValueBoolValue.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static BytesValueBytesValue.parseFrom(ByteString data) static BytesValueBytesValue.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.EnumOptionsDescriptorProtos.EnumOptions.parseFrom(ByteString data) static DescriptorProtos.EnumOptionsDescriptorProtos.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.FeatureSetDescriptorProtos.FeatureSet.parseFrom(ByteString data) static DescriptorProtos.FeatureSetDescriptorProtos.FeatureSet.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) DescriptorProtos.FeatureSet.VisibilityFeature.parseFrom(ByteString data) DescriptorProtos.FeatureSet.VisibilityFeature.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.FileOptionsDescriptorProtos.FileOptions.parseFrom(ByteString data) static DescriptorProtos.FileOptionsDescriptorProtos.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 DoubleValueDoubleValue.parseFrom(ByteString data) static DoubleValueDoubleValue.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static DurationDuration.parseFrom(ByteString data) static DurationDuration.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static DynamicMessageDynamicMessage.parseFrom(Descriptors.Descriptor type, ByteString data) Parsedataas a message of the given type and return it.static DynamicMessageDynamicMessage.parseFrom(Descriptors.Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) Parsedataas a message of the given type and return it.static EmptyEmpty.parseFrom(ByteString data) static EmptyEmpty.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static EnumEnum.parseFrom(ByteString data) static EnumEnum.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static EnumValueEnumValue.parseFrom(ByteString data) static EnumValueEnumValue.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static FieldField.parseFrom(ByteString data) static FieldField.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static FieldMaskFieldMask.parseFrom(ByteString data) static FieldMaskFieldMask.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static FloatValueFloatValue.parseFrom(ByteString data) static FloatValueFloatValue.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 Int32ValueInt32Value.parseFrom(ByteString data) static Int32ValueInt32Value.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static Int64ValueInt64Value.parseFrom(ByteString data) static Int64ValueInt64Value.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) JavaFeaturesProto.JavaFeatures.NestInFileClassFeature.parseFrom(ByteString data) JavaFeaturesProto.JavaFeatures.NestInFileClassFeature.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) JavaFeaturesProto.JavaFeatures.parseFrom(ByteString data) JavaFeaturesProto.JavaFeatures.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static ListValueListValue.parseFrom(ByteString data) static ListValueListValue.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static MethodMethod.parseFrom(ByteString data) static MethodMethod.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static MixinMixin.parseFrom(ByteString data) static MixinMixin.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static OptionOption.parseFrom(ByteString data) static OptionOption.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) Parser.parseFrom(ByteString data) Parsesdataas a message ofMessageType.Parser.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) Parsesdataas a message ofMessageType.static SourceContextSourceContext.parseFrom(ByteString data) static SourceContextSourceContext.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static StringValueStringValue.parseFrom(ByteString data) static StringValueStringValue.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static StructStruct.parseFrom(ByteString data) static StructStruct.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static TimestampTimestamp.parseFrom(ByteString data) static TimestampTimestamp.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static TypeType.parseFrom(ByteString data) static TypeType.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static UInt32ValueUInt32Value.parseFrom(ByteString data) static UInt32ValueUInt32Value.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static UInt64ValueUInt64Value.parseFrom(ByteString data) static UInt64ValueUInt64Value.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static UnknownFieldSetUnknownFieldSet.parseFrom(ByteString data) Parsedataas anUnknownFieldSetand return it.static ValueValue.parseFrom(ByteString data) static ValueValue.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 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 voidExtensionSchema.parseMessageSetItem(ByteString data, Object extension, ExtensionRegistryLite extensionRegistry, FieldSet<T> extensions) Parses the entire content of aByteStringas one MessageSet item.(package private) voidExtensionSchemaFull.parseMessageSetItem(ByteString data, Object extension, ExtensionRegistryLite extensionRegistry, FieldSet<Descriptors.FieldDescriptor> extensions) (package private) voidExtensionSchemaLite.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) voidLazyStringArrayList.set(int index, ByteString s) voidLazyStringList.set(int index, ByteString element) Replaces the element at the specified position in this list with the specified element (optional operation).voidUnmodifiableLazyStringList.set(int index, ByteString element) Deprecated.DescriptorProtos.UninterpretedOption.Builder.setAggregateValueBytes(ByteString value) optional string aggregate_value = 8;private ObjectLazyStringArrayList.setAndReturn(int index, ByteString s) voidLazyFieldLite.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.Field.Builder.setDefaultValueBytes(ByteString value) The string value of the default value of this field.DescriptorProtos.FieldOptions.FeatureSupport.Builder.setDeprecationWarningBytes(ByteString value) The deprecation warning text if this feature is used after the edition it was marked deprecated in.Api.Builder.setEditionBytes(ByteString value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.Enum.Builder.setEditionBytes(ByteString value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.Method.Builder.setEditionBytes(ByteString value) Deprecated.google.protobuf.Method.edition is deprecated.Type.Builder.setEditionBytes(ByteString value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.DescriptorProtos.FieldDescriptorProto.Builder.setExtendeeBytes(ByteString value) For extensions, this is the name of the type being extended.SourceContext.Builder.setFileNameBytes(ByteString value) The path-qualified name of the .proto file that contained the associated protobuf element.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.Field.Builder.setJsonNameBytes(ByteString value) The field JSON name.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.setNameBytes(ByteString value) The fully qualified name of this interface, including package name followed by the interface's simple name.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;Enum.Builder.setNameBytes(ByteString value) Enum type name.EnumValue.Builder.setNameBytes(ByteString value) Enum value name.Field.Builder.setNameBytes(ByteString value) The field name.Method.Builder.setNameBytes(ByteString value) The simple name of this method.Mixin.Builder.setNameBytes(ByteString value) The fully qualified name of the interface which is included.Option.Builder.setNameBytes(ByteString value) The option's name.Type.Builder.setNameBytes(ByteString value) The fully qualified message name.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.FieldOptions.FeatureSupport.Builder.setRemovalErrorBytes(ByteString value) The removal error text if this feature is used after the edition it was removed in.Method.Builder.setRequestTypeUrlBytes(ByteString value) A URL of the input message type.Method.Builder.setResponseTypeUrlBytes(ByteString value) The URL of the output message type.Mixin.Builder.setRootBytes(ByteString value) If non-empty specifies a path under which inherited HTTP paths are rooted.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;Value.Builder.setStringValueBytes(ByteString value) Represents a string value.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.Any.Builder.setTypeUrlBytes(ByteString value) A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.Field.Builder.setTypeUrlBytes(ByteString value) The field type URL, without the scheme, for message or enumeration types.Any.Builder.setValue(ByteString value) Must be a valid serialized protocol buffer of the above specified type.BytesValue.Builder.setValue(ByteString value) The bytes value.DescriptorProtos.FieldOptions.EditionDefault.Builder.setValueBytes(ByteString value) Textproto value.StringValue.Builder.setValueBytes(ByteString value) The string value.Api.Builder.setVersionBytes(ByteString value) A version string for this interface.final booleanByteString.startsWith(ByteString prefix) Tests if this bytestring starts with the specified prefix.static voidUnsafeByteOperations.unsafeWriteTo(ByteString bytes, ByteOutput output) Writes the givenByteStringto the providedByteOutput.voidBinaryWriter.SafeDirectWriter.writeBytes(int fieldNumber, ByteString value) voidBinaryWriter.SafeHeapWriter.writeBytes(int fieldNumber, ByteString value) voidBinaryWriter.UnsafeDirectWriter.writeBytes(int fieldNumber, ByteString value) voidBinaryWriter.UnsafeHeapWriter.writeBytes(int fieldNumber, ByteString value) final voidCodedOutputStream.ArrayEncoder.writeBytes(int fieldNumber, ByteString value) voidCodedOutputStream.DirectNioEncoder.writeBytes(int fieldNumber, ByteString value) voidCodedOutputStream.OutputStreamEncoder.writeBytes(int fieldNumber, ByteString value) abstract voidCodedOutputStream.writeBytes(int fieldNumber, ByteString value) Write abytesfield, including tag, to the stream.voidCodedOutputStreamWriter.writeBytes(int fieldNumber, ByteString value) static voidSchemaUtil.writeBytes(int fieldNumber, ByteString value, Writer writer) voidWriter.writeBytes(int fieldNumber, ByteString value) Writes a field of typeFieldType.BYTES.final voidCodedOutputStream.ArrayEncoder.writeBytesNoTag(ByteString value) voidCodedOutputStream.DirectNioEncoder.writeBytesNoTag(ByteString value) voidCodedOutputStream.OutputStreamEncoder.writeBytesNoTag(ByteString value) abstract voidCodedOutputStream.writeBytesNoTag(ByteString value) Write abytesfield to the stream.final voidCodedOutputStream.writeRawBytes(ByteString value) Write a byte string.final voidCodedOutputStream.ArrayEncoder.writeRawMessageSetExtension(int fieldNumber, ByteString value) voidCodedOutputStream.DirectNioEncoder.writeRawMessageSetExtension(int fieldNumber, ByteString value) voidCodedOutputStream.OutputStreamEncoder.writeRawMessageSetExtension(int fieldNumber, ByteString value) abstract voidCodedOutputStream.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 TypeMethodDescriptionbooleanLazyStringArrayList.addAllByteString(Collection<? extends ByteString> values) booleanLazyStringList.addAllByteString(Collection<? extends ByteString> c) Appends all elements in the specified ByteString collection to the end of this list.booleanUnmodifiableLazyStringList.addAllByteString(Collection<? extends ByteString> element) Deprecated.private static ByteStringByteString.balancedConcat(Iterator<ByteString> iterator, int length) (package private) static intSchemaUtil.computeSizeByteStringList(int fieldNumber, List<ByteString> list) private voidTextFormat.Tokenizer.consumeByteString(List<ByteString> list) LikeTextFormat.Tokenizer.consumeByteString()but adds each token of the string to the given list.static ByteStringByteString.copyFrom(Iterable<ByteString> byteStrings) Concatenates all byte strings in the iterable and returns the result.voidBinaryReader.SafeHeapReader.readBytesList(List<ByteString> target) voidCodedInputStreamReader.readBytesList(List<ByteString> target) voidReader.readBytesList(List<ByteString> target) Reads the next field of typeBYTES_LISTand advances the reader to the next field.final voidBinaryWriter.writeBytesList(int fieldNumber, List<ByteString> list) voidCodedOutputStreamWriter.writeBytesList(int fieldNumber, List<ByteString> value) static voidSchemaUtil.writeBytesList(int fieldNumber, List<ByteString> value, Writer writer) voidWriter.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.(package private)LazyFieldLite(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes) privatePieceIterator(ByteString root) privateRopeByteString(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. -
Uses of ByteString in com.google.protobuf.compiler
Methods in com.google.protobuf.compiler that return ByteStringModifier and TypeMethodDescriptionPluginProtos.CodeGeneratorResponse.File.Builder.getContentBytes()The file contents.PluginProtos.CodeGeneratorResponse.File.getContentBytes()The file contents.PluginProtos.CodeGeneratorResponse.FileOrBuilder.getContentBytes()The file contents.PluginProtos.CodeGeneratorResponse.Builder.getErrorBytes()Error message.PluginProtos.CodeGeneratorResponse.getErrorBytes()Error message.PluginProtos.CodeGeneratorResponseOrBuilder.getErrorBytes()Error message.PluginProtos.CodeGeneratorRequest.Builder.getFileToGenerateBytes(int index) The .proto files that were explicitly listed on the command-line.PluginProtos.CodeGeneratorRequest.getFileToGenerateBytes(int index) The .proto files that were explicitly listed on the command-line.PluginProtos.CodeGeneratorRequestOrBuilder.getFileToGenerateBytes(int index) The .proto files that were explicitly listed on the command-line.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.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.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.PluginProtos.CodeGeneratorResponse.File.Builder.getNameBytes()The file name, relative to the output directory.PluginProtos.CodeGeneratorResponse.File.getNameBytes()The file name, relative to the output directory.PluginProtos.CodeGeneratorResponse.FileOrBuilder.getNameBytes()The file name, relative to the output directory.PluginProtos.CodeGeneratorRequest.Builder.getParameterBytes()The generator parameter passed on the command-line.PluginProtos.CodeGeneratorRequest.getParameterBytes()The generator parameter passed on the command-line.PluginProtos.CodeGeneratorRequestOrBuilder.getParameterBytes()The generator parameter passed on the command-line.PluginProtos.Version.Builder.getSuffixBytes()A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".PluginProtos.Version.getSuffixBytes()A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".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 ByteStringModifier and TypeMethodDescriptionPluginProtos.CodeGeneratorRequest.Builder.addFileToGenerateBytes(ByteString value) The .proto files that were explicitly listed on the command-line.PluginProtos.CodeGeneratorRequest.parseFrom(ByteString data) PluginProtos.CodeGeneratorRequest.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) PluginProtos.CodeGeneratorResponse.File.parseFrom(ByteString data) PluginProtos.CodeGeneratorResponse.File.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) PluginProtos.CodeGeneratorResponse.parseFrom(ByteString data) PluginProtos.CodeGeneratorResponse.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static PluginProtos.VersionPluginProtos.Version.parseFrom(ByteString data) static PluginProtos.VersionPluginProtos.Version.parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) PluginProtos.CodeGeneratorResponse.File.Builder.setContentBytes(ByteString value) The file contents.PluginProtos.CodeGeneratorResponse.Builder.setErrorBytes(ByteString value) Error message.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.setNameBytes(ByteString value) The file name, relative to the output directory.PluginProtos.CodeGeneratorRequest.Builder.setParameterBytes(ByteString value) The generator parameter passed on the command-line.PluginProtos.Version.Builder.setSuffixBytes(ByteString value) A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". -
Uses of ByteString in com.google.protobuf.util
Methods in com.google.protobuf.util that return ByteStringModifier and TypeMethodDescriptionprivate ByteStringJsonFormat.ParserImpl.parseBytes(com.google.gson.JsonElement json) private ByteStringJsonFormat.PrinterImpl.toByteString(MessageOrBuilder message)
ByteString.copyFromUtf8(String)orByteString.copyFrom(String, Charset)instead.