Uses of Class
com.google.protobuf.ByteString
-
-
Uses of ByteString in com.google.protobuf
Fields in com.google.protobuf declared as ByteString Modifier and Type Field Description static ByteStringByteString. EMPTYEmptyByteString.Methods in com.google.protobuf that return ByteString Modifier and Type Method Description static ByteStringInternal. bytesDefaultValue(String bytes)Helper called by generated code to construct default values for bytes fields.ByteStringByteString. concat(ByteString other)Concatenate the givenByteStringto this one.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.static ByteStringByteString. copyFrom(Iterable<ByteString> byteStrings)Concatenates all byte strings in the iterable and returns the result.static ByteStringByteString. copyFrom(String text, String charsetName)Encodestextinto a sequence of bytes using the named charset and returns the result as aByteString.static ByteStringByteString. copyFrom(String text, Charset charset)Encodestextinto 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 ByteStringByteString. empty()Returns an emptyByteStringof size0.static ByteStringByteString. fromHex(String hexString)Returns aByteStringfrom a hexadecimal String.ByteStringLazyStringArrayList. getByteString(int index)ByteStringLazyStringList. getByteString(int index)Returns the element at the specified position in this list as a ByteString.ByteStringUnmodifiableLazyStringList. getByteString(int index)ByteStringField.Builder. getDefaultValueBytes()The string value of the default value of this field.ByteStringField. getDefaultValueBytes()The string value of the default value of this field.ByteStringFieldOrBuilder. getDefaultValueBytes()The string value of the default value of this field.ByteStringSourceContext.Builder. getFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.ByteStringSourceContext. getFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.ByteStringSourceContextOrBuilder. getFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.ByteStringField.Builder. getJsonNameBytes()The field JSON name.ByteStringField. getJsonNameBytes()The field JSON name.ByteStringFieldOrBuilder. getJsonNameBytes()The field JSON name.ByteStringApi.Builder. getNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.ByteStringApi. getNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.ByteStringApiOrBuilder. getNameBytes()The fully qualified name of this interface, including package name followed by the interface's simple name.ByteStringEnum.Builder. getNameBytes()Enum type name.ByteStringEnum. getNameBytes()Enum type name.ByteStringEnumOrBuilder. getNameBytes()Enum type name.ByteStringEnumValue.Builder. getNameBytes()Enum value name.ByteStringEnumValue. getNameBytes()Enum value name.ByteStringEnumValueOrBuilder. getNameBytes()Enum value name.ByteStringField.Builder. getNameBytes()The field name.ByteStringField. getNameBytes()The field name.ByteStringFieldOrBuilder. getNameBytes()The field name.ByteStringMethod.Builder. getNameBytes()The simple name of this method.ByteStringMethod. getNameBytes()The simple name of this method.ByteStringMethodOrBuilder. getNameBytes()The simple name of this method.ByteStringMixin.Builder. getNameBytes()The fully qualified name of the interface which is included.ByteStringMixin. getNameBytes()The fully qualified name of the interface which is included.ByteStringMixinOrBuilder. getNameBytes()The fully qualified name of the interface which is included.ByteStringOption.Builder. getNameBytes()The option's name.ByteStringOption. getNameBytes()The option's name.ByteStringOptionOrBuilder. getNameBytes()The option's name.ByteStringType.Builder. getNameBytes()The fully qualified message name.ByteStringType. getNameBytes()The fully qualified message name.ByteStringTypeOrBuilder. getNameBytes()The fully qualified message name.ByteStringType.Builder. getOneofsBytes(int index)The list of types appearing in `oneof` definitions in this type.ByteStringType. getOneofsBytes(int index)The list of types appearing in `oneof` definitions in this type.ByteStringTypeOrBuilder. getOneofsBytes(int index)The list of types appearing in `oneof` definitions in this type.ByteStringFieldMask.Builder. getPathsBytes(int index)The set of field mask paths.ByteStringFieldMask. getPathsBytes(int index)The set of field mask paths.ByteStringFieldMaskOrBuilder. getPathsBytes(int index)The set of field mask paths.ByteStringMethod.Builder. getRequestTypeUrlBytes()A URL of the input message type.ByteStringMethod. getRequestTypeUrlBytes()A URL of the input message type.ByteStringMethodOrBuilder. getRequestTypeUrlBytes()A URL of the input message type.ByteStringMethod.Builder. getResponseTypeUrlBytes()The URL of the output message type.ByteStringMethod. getResponseTypeUrlBytes()The URL of the output message type.ByteStringMethodOrBuilder. getResponseTypeUrlBytes()The URL of the output message type.ByteStringMixin.Builder. getRootBytes()If non-empty specifies a path under which inherited HTTP paths are rooted.ByteStringMixin. getRootBytes()If non-empty specifies a path under which inherited HTTP paths are rooted.ByteStringMixinOrBuilder. getRootBytes()If non-empty specifies a path under which inherited HTTP paths are rooted.ByteStringValue.Builder. getStringValueBytes()Represents a string value.ByteStringValue. getStringValueBytes()Represents a string value.ByteStringValueOrBuilder. getStringValueBytes()Represents a string value.ByteStringAny.Builder. getTypeUrlBytes()A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.ByteStringAny. getTypeUrlBytes()A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.ByteStringAnyOrBuilder. getTypeUrlBytes()A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.ByteStringField.Builder. getTypeUrlBytes()The field type URL, without the scheme, for message or enumeration types.ByteStringField. getTypeUrlBytes()The field type URL, without the scheme, for message or enumeration types.ByteStringFieldOrBuilder. getTypeUrlBytes()The field type URL, without the scheme, for message or enumeration types.ByteStringAny.Builder. getValue()Must be a valid serialized protocol buffer of the above specified type.ByteStringAny. getValue()Must be a valid serialized protocol buffer of the above specified type.ByteStringAnyOrBuilder. getValue()Must be a valid serialized protocol buffer of the above specified type.ByteStringBytesValue.Builder. getValue()The bytes value.ByteStringBytesValue. getValue()The bytes value.ByteStringBytesValueOrBuilder. getValue()The bytes value.ByteStringStringValue.Builder. getValueBytes()The string value.ByteStringStringValue. getValueBytes()The string value.ByteStringStringValueOrBuilder. getValueBytes()The string value.ByteStringApi.Builder. getVersionBytes()A version string for this interface.ByteStringApi. getVersionBytes()A version string for this interface.ByteStringApiOrBuilder. getVersionBytes()A version string for this interface.abstract ByteStringCodedInputStream. readBytes()Read abytesfield value from the stream.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.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.ByteStringAbstractMessageLite. toByteString()ByteStringByteString.Output. toByteString()Creates a byte string with the size and contents of this output stream.ByteStringLazyFieldLite. toByteString()Returns a BytesString for this field in a thread-safe way.ByteStringMessageLite. toByteString()Serializes the message to aByteStringand returns it.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.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()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 ByteString Modifier and Type Method Description voidLazyStringArrayList. add(ByteString element)voidLazyStringList. add(ByteString element)Appends the specified element to the end of this list (optional operation).voidUnmodifiableLazyStringList. add(ByteString element)Type.BuilderType.Builder. addOneofsBytes(ByteString value)The list of types appearing in `oneof` definitions in this type.FieldMask.BuilderFieldMask.Builder. addPathsBytes(ByteString value)The set of field mask paths.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.ByteStringByteString. concat(ByteString other)Concatenate the givenByteStringto this one.booleanByteString. endsWith(ByteString suffix)Tests if this bytestring ends with the specified suffix.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.BuilderTypeAbstractMessageLite.Builder. mergeFrom(ByteString data)BuilderTypeAbstractMessageLite.Builder. mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry)MessageLite.BuilderMessageLite.Builder. mergeFrom(ByteString data)Parsedataas a message of this type and merge it with the message being built.MessageLite.BuilderMessageLite.Builder. mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry)Parsedataas a message of this type and merge it with the message being built.protected voidGeneratedMessageLite. mergeLengthDelimitedField(int fieldNumber, ByteString value)Called by subclasses to parse an unknown field.static BytesValueBytesValue. of(ByteString value)Map.Entry<K,V>MapEntryLite. parseEntry(ByteString bytes, ExtensionRegistryLite extensionRegistry)Parses an entry off of the input as aMap.Entry.MessageTypeAbstractParser. parseFrom(ByteString data)MessageTypeAbstractParser. 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)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 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)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)MessageTypeParser. parseFrom(ByteString data)Parsesdataas a message ofMessageType.MessageTypeParser. 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 ValueValue. parseFrom(ByteString data)static ValueValue. parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)MessageTypeAbstractParser. parsePartialFrom(ByteString data)MessageTypeAbstractParser. parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry)MessageTypeParser. parsePartialFrom(ByteString data)LikeParser.parseFrom(ByteString), but does not throw an exception if the message is missing required fields.MessageTypeParser. parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry)LikeParser.parseFrom(ByteString, ExtensionRegistryLite), but does not throw an exception if the message is missing required fields.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)voidLazyFieldLite. setByteString(ByteString bytes, ExtensionRegistryLite extensionRegistry)Sets this field with bytes to delay-parse.Field.BuilderField.Builder. setDefaultValueBytes(ByteString value)The string value of the default value of this field.SourceContext.BuilderSourceContext.Builder. setFileNameBytes(ByteString value)The path-qualified name of the .proto file that contained the associated protobuf element.Field.BuilderField.Builder. setJsonNameBytes(ByteString value)The field JSON name.Api.BuilderApi.Builder. setNameBytes(ByteString value)The fully qualified name of this interface, including package name followed by the interface's simple name.Enum.BuilderEnum.Builder. setNameBytes(ByteString value)Enum type name.EnumValue.BuilderEnumValue.Builder. setNameBytes(ByteString value)Enum value name.Field.BuilderField.Builder. setNameBytes(ByteString value)The field name.Method.BuilderMethod.Builder. setNameBytes(ByteString value)The simple name of this method.Mixin.BuilderMixin.Builder. setNameBytes(ByteString value)The fully qualified name of the interface which is included.Option.BuilderOption.Builder. setNameBytes(ByteString value)The option's name.Type.BuilderType.Builder. setNameBytes(ByteString value)The fully qualified message name.Method.BuilderMethod.Builder. setRequestTypeUrlBytes(ByteString value)A URL of the input message type.Method.BuilderMethod.Builder. setResponseTypeUrlBytes(ByteString value)The URL of the output message type.Mixin.BuilderMixin.Builder. setRootBytes(ByteString value)If non-empty specifies a path under which inherited HTTP paths are rooted.Value.BuilderValue.Builder. setStringValueBytes(ByteString value)Represents a string value.Any.BuilderAny.Builder. setTypeUrlBytes(ByteString value)A URL/resource name that uniquely identifies the type of the serialized protocol buffer message.Field.BuilderField.Builder. setTypeUrlBytes(ByteString value)The field type URL, without the scheme, for message or enumeration types.Any.BuilderAny.Builder. setValue(ByteString value)Must be a valid serialized protocol buffer of the above specified type.BytesValue.BuilderBytesValue.Builder. setValue(ByteString value)The bytes value.StringValue.BuilderStringValue.Builder. setValueBytes(ByteString value)The string value.Api.BuilderApi.Builder. setVersionBytes(ByteString value)A version string for this interface.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.abstract voidCodedOutputStream. writeBytes(int fieldNumber, ByteString value)Write abytesfield, including tag, to the stream.abstract voidCodedOutputStream. writeBytesNoTag(ByteString value)Write abytesfield to the stream.voidCodedOutputStream. writeRawBytes(ByteString value)Write a byte string.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 ByteString Modifier and Type Method Description booleanLazyStringArrayList. 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)static ByteStringByteString. 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.
-