public static final class SpaceNotificationSetting.Builder extends GeneratedMessageV3.Builder<SpaceNotificationSetting.Builder> implements SpaceNotificationSettingOrBuilderThe notification setting of a user in a space.
Protobuf type google.chat.v1.SpaceNotificationSetting
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SpaceNotificationSetting.BuilderImplements
SpaceNotificationSettingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpaceNotificationSetting.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
build()
public SpaceNotificationSetting build()| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting |
|
buildPartial()
public SpaceNotificationSetting buildPartial()| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting |
|
clear()
public SpaceNotificationSetting.Builder clear()| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public SpaceNotificationSetting.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
clearMuteSetting()
public SpaceNotificationSetting.Builder clearMuteSetting()The space notification mute setting.
optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3;
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
clearName()
public SpaceNotificationSetting.Builder clearName() Identifier. The resource name of the space notification setting.
Format: users/{user}/spaces/{space}/spaceNotificationSetting.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
clearNotificationSetting()
public SpaceNotificationSetting.Builder clearNotificationSetting()The notification setting.
optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2;
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpaceNotificationSetting.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
clone()
public SpaceNotificationSetting.Builder clone()| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
getDefaultInstanceForType()
public SpaceNotificationSetting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMuteSetting()
public SpaceNotificationSetting.MuteSetting getMuteSetting()The space notification mute setting.
optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3;
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.MuteSetting |
The muteSetting. |
getMuteSettingValue()
public int getMuteSettingValue()The space notification mute setting.
optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for muteSetting. |
getName()
public String getName() Identifier. The resource name of the space notification setting.
Format: users/{user}/spaces/{space}/spaceNotificationSetting.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the space notification setting.
Format: users/{user}/spaces/{space}/spaceNotificationSetting.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNotificationSetting()
public SpaceNotificationSetting.NotificationSetting getNotificationSetting()The notification setting.
optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2;
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.NotificationSetting |
The notificationSetting. |
getNotificationSettingValue()
public int getNotificationSettingValue()The notification setting.
optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for notificationSetting. |
hasMuteSetting()
public boolean hasMuteSetting()The space notification mute setting.
optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the muteSetting field is set. |
hasNotificationSetting()
public boolean hasNotificationSetting()The notification setting.
optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the notificationSetting field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SpaceNotificationSetting other)
public SpaceNotificationSetting.Builder mergeFrom(SpaceNotificationSetting other)| Parameter | |
|---|---|
| Name | Description |
other |
SpaceNotificationSetting |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpaceNotificationSetting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SpaceNotificationSetting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpaceNotificationSetting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public SpaceNotificationSetting.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
setMuteSetting(SpaceNotificationSetting.MuteSetting value)
public SpaceNotificationSetting.Builder setMuteSetting(SpaceNotificationSetting.MuteSetting value)The space notification mute setting.
optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
SpaceNotificationSetting.MuteSettingThe muteSetting to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
setMuteSettingValue(int value)
public SpaceNotificationSetting.Builder setMuteSettingValue(int value)The space notification mute setting.
optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for muteSetting to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
setName(String value)
public SpaceNotificationSetting.Builder setName(String value) Identifier. The resource name of the space notification setting.
Format: users/{user}/spaces/{space}/spaceNotificationSetting.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SpaceNotificationSetting.Builder setNameBytes(ByteString value) Identifier. The resource name of the space notification setting.
Format: users/{user}/spaces/{space}/spaceNotificationSetting.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
setNotificationSetting(SpaceNotificationSetting.NotificationSetting value)
public SpaceNotificationSetting.Builder setNotificationSetting(SpaceNotificationSetting.NotificationSetting value)The notification setting.
optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
SpaceNotificationSetting.NotificationSettingThe notificationSetting to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
setNotificationSettingValue(int value)
public SpaceNotificationSetting.Builder setNotificationSettingValue(int value)The notification setting.
optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for notificationSetting to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpaceNotificationSetting.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SpaceNotificationSetting.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
SpaceNotificationSetting.Builder |
|