Class MarkAsDoNotDisturbRequest.Builder (0.59.0)

public static final class MarkAsDoNotDisturbRequest.Builder extends GeneratedMessage.Builder<MarkAsDoNotDisturbRequest.Builder> implements MarkAsDoNotDisturbRequestOrBuilder

Request message for the MarkAsDoNotDisturb method.

Protobuf type google.chat.v1.MarkAsDoNotDisturbRequest

Static Methods

getDescriptor()

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

Methods

build()

public MarkAsDoNotDisturbRequest build()
Returns
Type Description
MarkAsDoNotDisturbRequest

buildPartial()

public MarkAsDoNotDisturbRequest buildPartial()
Returns
Type Description
MarkAsDoNotDisturbRequest

clear()

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

clearExpiration()

public MarkAsDoNotDisturbRequest.Builder clearExpiration()
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

clearExpireTime()

public MarkAsDoNotDisturbRequest.Builder clearExpireTime()

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

clearName()

public MarkAsDoNotDisturbRequest.Builder clearName()

Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability

{user} is the id for the Person in the People API or Admin SDK directory API. For example, users/123456789.

The user's email address or me can also be used as an alias to refer to the caller. For example, users/user@example.com or users/me.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

This builder for chaining.

clearTtl()

public MarkAsDoNotDisturbRequest.Builder clearTtl()

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

getDefaultInstanceForType()

public MarkAsDoNotDisturbRequest getDefaultInstanceForType()
Returns
Type Description
MarkAsDoNotDisturbRequest

getDescriptorForType()

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

getExpirationCase()

public MarkAsDoNotDisturbRequest.ExpirationCase getExpirationCase()
Returns
Type Description
MarkAsDoNotDisturbRequest.ExpirationCase

getExpireTime()

public Timestamp getExpireTime()

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability

{user} is the id for the Person in the People API or Admin SDK directory API. For example, users/123456789.

The user's email address or me can also be used as an alias to refer to the caller. For example, users/user@example.com or users/me.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability

{user} is the id for the Person in the People API or Admin SDK directory API. For example, users/123456789.

The user's email address or me can also be used as an alias to refer to the caller. For example, users/user@example.com or users/me.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getTtl()

public Duration getTtl()

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
DurationOrBuilder

hasExpireTime()

public boolean hasExpireTime()

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
boolean

Whether the expireTime field is set.

hasTtl()

public boolean hasTtl()

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public MarkAsDoNotDisturbRequest.Builder mergeExpireTime(Timestamp value)

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

mergeFrom(MarkAsDoNotDisturbRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTtl(Duration value)

public MarkAsDoNotDisturbRequest.Builder mergeTtl(Duration value)

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

setExpireTime(Timestamp value)

public MarkAsDoNotDisturbRequest.Builder setExpireTime(Timestamp value)

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

setExpireTime(Timestamp.Builder builderForValue)

public MarkAsDoNotDisturbRequest.Builder setExpireTime(Timestamp.Builder builderForValue)

The absolute timestamp when the DND state expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

setName(String value)

public MarkAsDoNotDisturbRequest.Builder setName(String value)

Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability

{user} is the id for the Person in the People API or Admin SDK directory API. For example, users/123456789.

The user's email address or me can also be used as an alias to refer to the caller. For example, users/user@example.com or users/me.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MarkAsDoNotDisturbRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability

{user} is the id for the Person in the People API or Admin SDK directory API. For example, users/123456789.

The user's email address or me can also be used as an alias to refer to the caller. For example, users/user@example.com or users/me.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

This builder for chaining.

setTtl(Duration value)

public MarkAsDoNotDisturbRequest.Builder setTtl(Duration value)

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder

setTtl(Duration.Builder builderForValue)

public MarkAsDoNotDisturbRequest.Builder setTtl(Duration.Builder builderForValue)

The duration from the current time until the DND state expires.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MarkAsDoNotDisturbRequest.Builder