Class UserMentionMetadata (0.3.0)

public final class UserMentionMetadata extends GeneratedMessageV3 implements UserMentionMetadataOrBuilder

Annotation metadata for user mentions (@).

Protobuf type google.chat.v1.UserMentionMetadata

Static Fields

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

USER_FIELD_NUMBER

public static final int USER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UserMentionMetadata getDefaultInstance()
Returns
TypeDescription
UserMentionMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UserMentionMetadata.Builder newBuilder()
Returns
TypeDescription
UserMentionMetadata.Builder

newBuilder(UserMentionMetadata prototype)

public static UserMentionMetadata.Builder newBuilder(UserMentionMetadata prototype)
Parameter
NameDescription
prototypeUserMentionMetadata
Returns
TypeDescription
UserMentionMetadata.Builder

parseDelimitedFrom(InputStream input)

public static UserMentionMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserMentionMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UserMentionMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UserMentionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UserMentionMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UserMentionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UserMentionMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UserMentionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UserMentionMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserMentionMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UserMentionMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UserMentionMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UserMentionMetadata> parser()
Returns
TypeDescription
Parser<UserMentionMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UserMentionMetadata getDefaultInstanceForType()
Returns
TypeDescription
UserMentionMetadata

getParserForType()

public Parser<UserMentionMetadata> getParserForType()
Returns
TypeDescription
Parser<UserMentionMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public UserMentionMetadata.Type getType()

The type of user mention.

.google.chat.v1.UserMentionMetadata.Type type = 2;

Returns
TypeDescription
UserMentionMetadata.Type

The type.

getTypeValue()

public int getTypeValue()

The type of user mention.

.google.chat.v1.UserMentionMetadata.Type type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUser()

public User getUser()

The user mentioned.

.google.chat.v1.User user = 1;

Returns
TypeDescription
User

The user.

getUserOrBuilder()

public UserOrBuilder getUserOrBuilder()

The user mentioned.

.google.chat.v1.User user = 1;

Returns
TypeDescription
UserOrBuilder

hasUser()

public boolean hasUser()

The user mentioned.

.google.chat.v1.User user = 1;

Returns
TypeDescription
boolean

Whether the user field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UserMentionMetadata.Builder newBuilderForType()
Returns
TypeDescription
UserMentionMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UserMentionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UserMentionMetadata.Builder toBuilder()
Returns
TypeDescription
UserMentionMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException