Class TextPiece
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.TextPiece
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,TextPieceOrBuilder
public final class TextPiece
extends com.google.protobuf.GeneratedMessageV3
implements TextPieceOrBuilder
Protobuf type
TextPiece- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TextPiecestatic final com.google.protobuf.Descriptors.Descriptor.TextFormat format = 2;.TextFormat format = 2;.TextPieceGift giftvalue = 22;.TextPieceGift giftvalue = 22;.TextPieceHeart heartvalue = 23;.TextPieceHeart heartvalue = 23;.TextPieceImage imagevalue = 25;.TextPieceImage imagevalue = 25;com.google.protobuf.Parser<TextPiece>.TextPiecePatternRef patternrefvalue = 24;.TextPiecePatternRef patternrefvalue = 24;string schema_key = 100;com.google.protobuf.ByteStringstring schema_key = 100;intstring string_value = 11;com.google.protobuf.ByteStringstring string_value = 11;intgetType()uint32 type = 1;.TextPieceUser uservalue = 21;.TextPieceUser uservalue = 21;string value_ref = 3;com.google.protobuf.ByteStringstring value_ref = 3;boolean.TextFormat format = 2;boolean.TextPieceGift giftvalue = 22;inthashCode()boolean.TextPieceHeart heartvalue = 23;boolean.TextPieceImage imagevalue = 25;boolean.TextPiecePatternRef patternrefvalue = 24;boolean.TextPieceUser uservalue = 21;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic TextPiece.Builderstatic TextPiece.BuildernewBuilder(TextPiece prototype) protected TextPiece.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TextPieceparseDelimitedFrom(InputStream input) static TextPieceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TextPieceparseFrom(byte[] data) static TextPieceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TextPieceparseFrom(com.google.protobuf.ByteString data) static TextPieceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TextPieceparseFrom(com.google.protobuf.CodedInputStream input) static TextPieceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TextPieceparseFrom(InputStream input) static TextPieceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TextPieceparseFrom(ByteBuffer data) static TextPieceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TextPiece>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER- See Also:
-
VALUE_REF_FIELD_NUMBER
public static final int VALUE_REF_FIELD_NUMBER- See Also:
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER- See Also:
-
USERVALUE_FIELD_NUMBER
public static final int USERVALUE_FIELD_NUMBER- See Also:
-
GIFTVALUE_FIELD_NUMBER
public static final int GIFTVALUE_FIELD_NUMBER- See Also:
-
HEARTVALUE_FIELD_NUMBER
public static final int HEARTVALUE_FIELD_NUMBER- See Also:
-
PATTERNREFVALUE_FIELD_NUMBER
public static final int PATTERNREFVALUE_FIELD_NUMBER- See Also:
-
IMAGEVALUE_FIELD_NUMBER
public static final int IMAGEVALUE_FIELD_NUMBER- See Also:
-
SCHEMA_KEY_FIELD_NUMBER
public static final int SCHEMA_KEY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getType
public int getType()uint32 type = 1;- Specified by:
getTypein interfaceTextPieceOrBuilder- Returns:
- The type.
-
hasFormat
public boolean hasFormat().TextFormat format = 2;- Specified by:
hasFormatin interfaceTextPieceOrBuilder- Returns:
- Whether the format field is set.
-
getFormat
.TextFormat format = 2;- Specified by:
getFormatin interfaceTextPieceOrBuilder- Returns:
- The format.
-
getFormatOrBuilder
.TextFormat format = 2;- Specified by:
getFormatOrBuilderin interfaceTextPieceOrBuilder
-
getValueRef
string value_ref = 3;- Specified by:
getValueRefin interfaceTextPieceOrBuilder- Returns:
- The valueRef.
-
getValueRefBytes
public com.google.protobuf.ByteString getValueRefBytes()string value_ref = 3;- Specified by:
getValueRefBytesin interfaceTextPieceOrBuilder- Returns:
- The bytes for valueRef.
-
getStringValue
string string_value = 11;- Specified by:
getStringValuein interfaceTextPieceOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()string string_value = 11;- Specified by:
getStringValueBytesin interfaceTextPieceOrBuilder- Returns:
- The bytes for stringValue.
-
hasUservalue
public boolean hasUservalue().TextPieceUser uservalue = 21;- Specified by:
hasUservaluein interfaceTextPieceOrBuilder- Returns:
- Whether the uservalue field is set.
-
getUservalue
.TextPieceUser uservalue = 21;- Specified by:
getUservaluein interfaceTextPieceOrBuilder- Returns:
- The uservalue.
-
getUservalueOrBuilder
.TextPieceUser uservalue = 21;- Specified by:
getUservalueOrBuilderin interfaceTextPieceOrBuilder
-
hasGiftvalue
public boolean hasGiftvalue().TextPieceGift giftvalue = 22;- Specified by:
hasGiftvaluein interfaceTextPieceOrBuilder- Returns:
- Whether the giftvalue field is set.
-
getGiftvalue
.TextPieceGift giftvalue = 22;- Specified by:
getGiftvaluein interfaceTextPieceOrBuilder- Returns:
- The giftvalue.
-
getGiftvalueOrBuilder
.TextPieceGift giftvalue = 22;- Specified by:
getGiftvalueOrBuilderin interfaceTextPieceOrBuilder
-
hasHeartvalue
public boolean hasHeartvalue().TextPieceHeart heartvalue = 23;- Specified by:
hasHeartvaluein interfaceTextPieceOrBuilder- Returns:
- Whether the heartvalue field is set.
-
getHeartvalue
.TextPieceHeart heartvalue = 23;- Specified by:
getHeartvaluein interfaceTextPieceOrBuilder- Returns:
- The heartvalue.
-
getHeartvalueOrBuilder
.TextPieceHeart heartvalue = 23;- Specified by:
getHeartvalueOrBuilderin interfaceTextPieceOrBuilder
-
hasPatternrefvalue
public boolean hasPatternrefvalue().TextPiecePatternRef patternrefvalue = 24;- Specified by:
hasPatternrefvaluein interfaceTextPieceOrBuilder- Returns:
- Whether the patternrefvalue field is set.
-
getPatternrefvalue
.TextPiecePatternRef patternrefvalue = 24;- Specified by:
getPatternrefvaluein interfaceTextPieceOrBuilder- Returns:
- The patternrefvalue.
-
getPatternrefvalueOrBuilder
.TextPiecePatternRef patternrefvalue = 24;- Specified by:
getPatternrefvalueOrBuilderin interfaceTextPieceOrBuilder
-
hasImagevalue
public boolean hasImagevalue().TextPieceImage imagevalue = 25;- Specified by:
hasImagevaluein interfaceTextPieceOrBuilder- Returns:
- Whether the imagevalue field is set.
-
getImagevalue
.TextPieceImage imagevalue = 25;- Specified by:
getImagevaluein interfaceTextPieceOrBuilder- Returns:
- The imagevalue.
-
getImagevalueOrBuilder
.TextPieceImage imagevalue = 25;- Specified by:
getImagevalueOrBuilderin interfaceTextPieceOrBuilder
-
getSchemaKey
string schema_key = 100;- Specified by:
getSchemaKeyin interfaceTextPieceOrBuilder- Returns:
- The schemaKey.
-
getSchemaKeyBytes
public com.google.protobuf.ByteString getSchemaKeyBytes()string schema_key = 100;- Specified by:
getSchemaKeyBytesin interfaceTextPieceOrBuilder- Returns:
- The bytes for schemaKey.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TextPiece parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextPiece parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextPiece parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextPiece parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextPiece parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextPiece parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TextPiece parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TextPiece parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TextPiece parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TextPiece.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-