public static final class UserMentionMetadata.Builder extends GeneratedMessageV3.Builder<UserMentionMetadata.Builder> implements UserMentionMetadataOrBuilder
Annotation metadata for user mentions (@).
Protobuf type google.chat.v1.UserMentionMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UserMentionMetadata.BuilderImplements
UserMentionMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserMentionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
build()
public UserMentionMetadata build()
Returns | |
---|---|
Type | Description |
UserMentionMetadata |
buildPartial()
public UserMentionMetadata buildPartial()
Returns | |
---|---|
Type | Description |
UserMentionMetadata |
clear()
public UserMentionMetadata.Builder clear()
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public UserMentionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public UserMentionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
clearType()
public UserMentionMetadata.Builder clearType()
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder | This builder for chaining. |
clearUser()
public UserMentionMetadata.Builder clearUser()
The user mentioned.
.google.chat.v1.User user = 1;
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
clone()
public UserMentionMetadata.Builder clone()
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
getDefaultInstanceForType()
public UserMentionMetadata getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UserMentionMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getType()
public UserMentionMetadata.Type getType()
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Type | The type. |
getTypeValue()
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. |
getUser()
public User getUser()
The user mentioned.
.google.chat.v1.User user = 1;
Returns | |
---|---|
Type | Description |
User | The user. |
getUserBuilder()
public User.Builder getUserBuilder()
The user mentioned.
.google.chat.v1.User user = 1;
Returns | |
---|---|
Type | Description |
User.Builder |
getUserOrBuilder()
public UserOrBuilder getUserOrBuilder()
The user mentioned.
.google.chat.v1.User user = 1;
Returns | |
---|---|
Type | Description |
UserOrBuilder |
hasUser()
public boolean hasUser()
The user mentioned.
.google.chat.v1.User user = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the user field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(UserMentionMetadata other)
public UserMentionMetadata.Builder mergeFrom(UserMentionMetadata other)
Parameter | |
---|---|
Name | Description |
other | UserMentionMetadata |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UserMentionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UserMentionMetadata.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserMentionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
mergeUser(User value)
public UserMentionMetadata.Builder mergeUser(User value)
The user mentioned.
.google.chat.v1.User user = 1;
Parameter | |
---|---|
Name | Description |
value | User |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public UserMentionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserMentionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
setType(UserMentionMetadata.Type value)
public UserMentionMetadata.Builder setType(UserMentionMetadata.Type value)
The type of user mention.
.google.chat.v1.UserMentionMetadata.Type type = 2;
Parameter | |
---|---|
Name | Description |
value | UserMentionMetadata.Type The type to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for type to set. |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final UserMentionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
setUser(User value)
public UserMentionMetadata.Builder setUser(User value)
The user mentioned.
.google.chat.v1.User user = 1;
Parameter | |
---|---|
Name | Description |
value | User |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |
setUser(User.Builder builderForValue)
public UserMentionMetadata.Builder setUser(User.Builder builderForValue)
The user mentioned.
.google.chat.v1.User user = 1;
Parameter | |
---|---|
Name | Description |
builderForValue | User.Builder |
Returns | |
---|---|
Type | Description |
UserMentionMetadata.Builder |