Class Type.Struct.Encoding.OrderedCodeBytes

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes
All Implemented Interfaces:
Type.Struct.Encoding.OrderedCodeBytesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Type.Struct.Encoding

public static final class Type.Struct.Encoding.OrderedCodeBytes extends com.google.protobuf.GeneratedMessageV3 implements Type.Struct.Encoding.OrderedCodeBytesOrBuilder
 Fields are encoded independently and concatenated with the fixed byte
 pair {0x00, 0x01} in between.

 Any null (0x00) byte in an encoded field is replaced by the fixed byte
 pair {0x00, 0xFF}.

 Fields that encode to the empty string "" have special handling:

  - If *every* field encodes to "", or if the STRUCT has no fields
    defined, then the STRUCT is encoded as the fixed byte pair
    {0x00, 0x00}.
  - Otherwise, the STRUCT only encodes until the last non-empty field,
    omitting any trailing empty fields. Any empty fields that aren't
    omitted are replaced with the fixed byte pair {0x00, 0x00}.

 Examples:

  - STRUCT()             -> "\00\00"
  - STRUCT("")           -> "\00\00"
  - STRUCT("", "")       -> "\00\00"
  - STRUCT("", "B")      -> "\00\00" + "\00\01" + "B"
  - STRUCT("A", "")      -> "A"
  - STRUCT("", "B", "")  -> "\00\00" + "\00\01" + "B"
  - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C"


 Since null bytes are always escaped, this encoding can cause size
 blowup for encodings like `Int64.BigEndianBytes` that are likely to
 produce many such bytes.

 Sorted mode:

  - Fields are encoded in sorted mode.
  - All values supported by the field encodings are allowed
  - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if
    `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.

 Distinct mode:

  - Fields are encoded in distinct mode.
  - All values supported by the field encodings are allowed.
 
Protobuf type google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes
See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Type.Struct.Encoding.OrderedCodeBytes parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Type.Struct.Encoding.OrderedCodeBytes.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Type.Struct.Encoding.OrderedCodeBytes getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Type.Struct.Encoding.OrderedCodeBytes> parser()
    • getParserForType

      public com.google.protobuf.Parser<Type.Struct.Encoding.OrderedCodeBytes> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Type.Struct.Encoding.OrderedCodeBytes getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder