Class UserMentionMetadata.Builder (0.4.0)

public static final class UserMentionMetadata.Builder extends GeneratedMessageV3.Builder<UserMentionMetadata.Builder> implements UserMentionMetadataOrBuilder

Annotation metadata for user mentions (@).

Protobuf type google.chat.v1.UserMentionMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserMentionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

build()

public UserMentionMetadata build()
Returns
TypeDescription
UserMentionMetadata

buildPartial()

public UserMentionMetadata buildPartial()
Returns
TypeDescription
UserMentionMetadata

clear()

public UserMentionMetadata.Builder clear()
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UserMentionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UserMentionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

clearType()

public UserMentionMetadata.Builder clearType()

The type of user mention.

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

Returns
TypeDescription
UserMentionMetadata.Builder

This builder for chaining.

clearUser()

public UserMentionMetadata.Builder clearUser()

The user mentioned.

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

Returns
TypeDescription
UserMentionMetadata.Builder

clone()

public UserMentionMetadata.Builder clone()
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

getDefaultInstanceForType()

public UserMentionMetadata getDefaultInstanceForType()
Returns
TypeDescription
UserMentionMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

getUserBuilder()

public User.Builder getUserBuilder()

The user mentioned.

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

Returns
TypeDescription
User.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserMentionMetadata other)

public UserMentionMetadata.Builder mergeFrom(UserMentionMetadata other)
Parameter
NameDescription
otherUserMentionMetadata
Returns
TypeDescription
UserMentionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserMentionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UserMentionMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserMentionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

mergeUser(User value)

public UserMentionMetadata.Builder mergeUser(User value)

The user mentioned.

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

Parameter
NameDescription
valueUser
Returns
TypeDescription
UserMentionMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UserMentionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UserMentionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

setType(UserMentionMetadata.Type value)

public UserMentionMetadata.Builder setType(UserMentionMetadata.Type value)

The type of user mention.

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

Parameter
NameDescription
valueUserMentionMetadata.Type

The type to set.

Returns
TypeDescription
UserMentionMetadata.Builder

This builder for chaining.

setTypeValue(int value)

public UserMentionMetadata.Builder setTypeValue(int value)

The type of user mention.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
UserMentionMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UserMentionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UserMentionMetadata.Builder
Overrides

setUser(User value)

public UserMentionMetadata.Builder setUser(User value)

The user mentioned.

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

Parameter
NameDescription
valueUser
Returns
TypeDescription
UserMentionMetadata.Builder

setUser(User.Builder builderForValue)

public UserMentionMetadata.Builder setUser(User.Builder builderForValue)

The user mentioned.

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

Parameter
NameDescription
builderForValueUser.Builder
Returns
TypeDescription
UserMentionMetadata.Builder