Class ApproveApprovalRequestMessage.Builder (2.53.0)

public static final class ApproveApprovalRequestMessage.Builder extends GeneratedMessageV3.Builder<ApproveApprovalRequestMessage.Builder> implements ApproveApprovalRequestMessageOrBuilder

Request to approve an ApprovalRequest.

Protobuf type google.cloud.accessapproval.v1.ApproveApprovalRequestMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ApproveApprovalRequestMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

build()

public ApproveApprovalRequestMessage build()
Returns
Type Description
ApproveApprovalRequestMessage

buildPartial()

public ApproveApprovalRequestMessage buildPartial()
Returns
Type Description
ApproveApprovalRequestMessage

clear()

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

clearExpireTime()

public ApproveApprovalRequestMessage.Builder clearExpireTime()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
ApproveApprovalRequestMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public ApproveApprovalRequestMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

clearName()

public ApproveApprovalRequestMessage.Builder clearName()

Name of the approval request to approve.

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

Returns
Type Description
ApproveApprovalRequestMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ApproveApprovalRequestMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

clone()

public ApproveApprovalRequestMessage.Builder clone()
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

getDefaultInstanceForType()

public ApproveApprovalRequestMessage getDefaultInstanceForType()
Returns
Type Description
ApproveApprovalRequestMessage

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Name of the approval request to approve.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the approval request to approve.

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

Returns
Type Description
ByteString

The bytes for name.

hasExpireTime()

public boolean hasExpireTime()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public ApproveApprovalRequestMessage.Builder mergeExpireTime(Timestamp value)

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveApprovalRequestMessage.Builder

mergeFrom(ApproveApprovalRequestMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApproveApprovalRequestMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

setExpireTime(Timestamp value)

public ApproveApprovalRequestMessage.Builder setExpireTime(Timestamp value)

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveApprovalRequestMessage.Builder

setExpireTime(Timestamp.Builder builderForValue)

public ApproveApprovalRequestMessage.Builder setExpireTime(Timestamp.Builder builderForValue)

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ApproveApprovalRequestMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ApproveApprovalRequestMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

setName(String value)

public ApproveApprovalRequestMessage.Builder setName(String value)

Name of the approval request to approve.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ApproveApprovalRequestMessage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApproveApprovalRequestMessage.Builder setNameBytes(ByteString value)

Name of the approval request to approve.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ApproveApprovalRequestMessage.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ApproveApprovalRequestMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ApproveApprovalRequestMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApproveApprovalRequestMessage.Builder
Overrides