Class DoNotDisturbMetadata.Builder (0.59.0)

public static final class DoNotDisturbMetadata.Builder extends GeneratedMessage.Builder<DoNotDisturbMetadata.Builder> implements DoNotDisturbMetadataOrBuilder

Metadata associated with the DO_NOT_DISTURB availability state, specifying when the state is set to expire.

Protobuf type google.chat.v1.DoNotDisturbMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DoNotDisturbMetadata build()
Returns
Type Description
DoNotDisturbMetadata

buildPartial()

public DoNotDisturbMetadata buildPartial()
Returns
Type Description
DoNotDisturbMetadata

clear()

public DoNotDisturbMetadata.Builder clear()
Returns
Type Description
DoNotDisturbMetadata.Builder
Overrides

clearExpirationTime()

public DoNotDisturbMetadata.Builder clearExpirationTime()

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DoNotDisturbMetadata.Builder

getDefaultInstanceForType()

public DoNotDisturbMetadata getDefaultInstanceForType()
Returns
Type Description
DoNotDisturbMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpirationTime()

public Timestamp getExpirationTime()

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expirationTime.

getExpirationTimeBuilder()

public Timestamp.Builder getExpirationTimeBuilder()

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasExpirationTime()

public boolean hasExpirationTime()

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expirationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpirationTime(Timestamp value)

public DoNotDisturbMetadata.Builder mergeExpirationTime(Timestamp value)

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DoNotDisturbMetadata.Builder

mergeFrom(DoNotDisturbMetadata other)

public DoNotDisturbMetadata.Builder mergeFrom(DoNotDisturbMetadata other)
Parameter
Name Description
other DoNotDisturbMetadata
Returns
Type Description
DoNotDisturbMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DoNotDisturbMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DoNotDisturbMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DoNotDisturbMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DoNotDisturbMetadata.Builder
Overrides

setExpirationTime(Timestamp value)

public DoNotDisturbMetadata.Builder setExpirationTime(Timestamp value)

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DoNotDisturbMetadata.Builder

setExpirationTime(Timestamp.Builder builderForValue)

public DoNotDisturbMetadata.Builder setExpirationTime(Timestamp.Builder builderForValue)

Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.

.google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DoNotDisturbMetadata.Builder