public static final class UserMentionMetadata.Builder extends GeneratedMessageV3.Builder<UserMentionMetadata.Builder> implements UserMentionMetadataOrBuilder
Annotation metadata for user mentions (@).
Protobuf type google.chat.v1.UserMentionMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public UserMentionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UserMentionMetadata build()
public UserMentionMetadata buildPartial()
public UserMentionMetadata.Builder clear()
Overrides
public UserMentionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public UserMentionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public UserMentionMetadata.Builder clearType()
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
public UserMentionMetadata.Builder clearUser()
The user mentioned.
.google.chat.v1.User user = 1;
public UserMentionMetadata.Builder clone()
Overrides
public UserMentionMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public UserMentionMetadata.Type getType()
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
public int getTypeValue()
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for type.
|
The user mentioned.
.google.chat.v1.User user = 1;
Returns |
Type |
Description |
User |
The user.
|
public User.Builder getUserBuilder()
The user mentioned.
.google.chat.v1.User user = 1;
public UserOrBuilder getUserOrBuilder()
The user mentioned.
.google.chat.v1.User user = 1;
The user mentioned.
.google.chat.v1.User user = 1;
Returns |
Type |
Description |
boolean |
Whether the user field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public UserMentionMetadata.Builder mergeFrom(UserMentionMetadata other)
public UserMentionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public UserMentionMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final UserMentionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public UserMentionMetadata.Builder mergeUser(User value)
The user mentioned.
.google.chat.v1.User user = 1;
Parameter |
Name |
Description |
value |
User
|
public UserMentionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UserMentionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public UserMentionMetadata.Builder setType(UserMentionMetadata.Type value)
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
public UserMentionMetadata.Builder setTypeValue(int value)
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for type to set.
|
public final UserMentionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public UserMentionMetadata.Builder setUser(User value)
The user mentioned.
.google.chat.v1.User user = 1;
Parameter |
Name |
Description |
value |
User
|
public UserMentionMetadata.Builder setUser(User.Builder builderForValue)
The user mentioned.
.google.chat.v1.User user = 1;