Class MarkAsActiveRequest (0.59.0)

public final class MarkAsActiveRequest extends GeneratedMessage implements MarkAsActiveRequestOrBuilder

Request message for the MarkAsActive method.

Protobuf type google.chat.v1.MarkAsActiveRequest

Static Fields

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TTL_FIELD_NUMBER

public static final int TTL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MarkAsActiveRequest getDefaultInstance()
Returns
Type Description
MarkAsActiveRequest

getDescriptor()

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

newBuilder()

public static MarkAsActiveRequest.Builder newBuilder()
Returns
Type Description
MarkAsActiveRequest.Builder

newBuilder(MarkAsActiveRequest prototype)

public static MarkAsActiveRequest.Builder newBuilder(MarkAsActiveRequest prototype)
Parameter
Name Description
prototype MarkAsActiveRequest
Returns
Type Description
MarkAsActiveRequest.Builder

parseDelimitedFrom(InputStream input)

public static MarkAsActiveRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkAsActiveRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MarkAsActiveRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MarkAsActiveRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MarkAsActiveRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MarkAsActiveRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MarkAsActiveRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkAsActiveRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MarkAsActiveRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkAsActiveRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MarkAsActiveRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MarkAsActiveRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkAsActiveRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MarkAsActiveRequest> parser()
Returns
Type Description
Parser<MarkAsActiveRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public MarkAsActiveRequest getDefaultInstanceForType()
Returns
Type Description
MarkAsActiveRequest

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.

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.

getParserForType()

public Parser<MarkAsActiveRequest> getParserForType()
Returns
Type Description
Parser<MarkAsActiveRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected MarkAsActiveRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MarkAsActiveRequest.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException