Class MarkAsActiveRequest.Builder (0.59.0)

public static final class MarkAsActiveRequest.Builder extends GeneratedMessage.Builder<MarkAsActiveRequest.Builder> implements MarkAsActiveRequestOrBuilder

Request message for the MarkAsActive method.

Protobuf type google.chat.v1.MarkAsActiveRequest

Static Methods

getDescriptor()

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

Methods

build()

public MarkAsActiveRequest build()
Returns
Type Description
MarkAsActiveRequest

buildPartial()

public MarkAsActiveRequest buildPartial()
Returns
Type Description
MarkAsActiveRequest

clear()

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

clearExpiration()

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

clearExpireTime()

public MarkAsActiveRequest.Builder clearExpireTime()

The absolute timestamp when the ACTIVE state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
MarkAsActiveRequest.Builder

clearName()

public MarkAsActiveRequest.Builder clearName()

Required. The resource name of the availability to mark as active. 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
MarkAsActiveRequest.Builder

This builder for chaining.

clearTtl()

public MarkAsActiveRequest.Builder clearTtl()

The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
MarkAsActiveRequest.Builder

getDefaultInstanceForType()

public MarkAsActiveRequest getDefaultInstanceForType()
Returns
Type Description
MarkAsActiveRequest

getDescriptorForType()

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

getExpirationCase()

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

getExpireTime()

public Timestamp getExpireTime()

The absolute timestamp when the ACTIVE state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The absolute timestamp when the ACTIVE state expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The absolute timestamp when the ACTIVE 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 active. 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 active. 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 ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
DurationOrBuilder

hasExpireTime()

public boolean hasExpireTime()

The absolute timestamp when the ACTIVE 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 ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.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 MarkAsActiveRequest.Builder mergeExpireTime(Timestamp value)

The absolute timestamp when the ACTIVE state expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
MarkAsActiveRequest.Builder

mergeFrom(MarkAsActiveRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTtl(Duration value)

public MarkAsActiveRequest.Builder mergeTtl(Duration value)

The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
MarkAsActiveRequest.Builder

setExpireTime(Timestamp value)

public MarkAsActiveRequest.Builder setExpireTime(Timestamp value)

The absolute timestamp when the ACTIVE state expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
MarkAsActiveRequest.Builder

setExpireTime(Timestamp.Builder builderForValue)

public MarkAsActiveRequest.Builder setExpireTime(Timestamp.Builder builderForValue)

The absolute timestamp when the ACTIVE state expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MarkAsActiveRequest.Builder

setName(String value)

public MarkAsActiveRequest.Builder setName(String value)

Required. The resource name of the availability to mark as active. 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
MarkAsActiveRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MarkAsActiveRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the availability to mark as active. 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
MarkAsActiveRequest.Builder

This builder for chaining.

setTtl(Duration value)

public MarkAsActiveRequest.Builder setTtl(Duration value)

The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
MarkAsActiveRequest.Builder

setTtl(Duration.Builder builderForValue)

public MarkAsActiveRequest.Builder setTtl(Duration.Builder builderForValue)

The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MarkAsActiveRequest.Builder