Class ApproveDecision.Builder (2.45.0)

public static final class ApproveDecision.Builder extends GeneratedMessageV3.Builder<ApproveDecision.Builder> implements ApproveDecisionOrBuilder

A decision that has been made to approve access to a resource.

Protobuf type google.cloud.accessapproval.v1.ApproveDecision

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApproveDecision build()
Returns
Type Description
ApproveDecision

buildPartial()

public ApproveDecision buildPartial()
Returns
Type Description
ApproveDecision

clear()

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

clearApproveTime()

public ApproveDecision.Builder clearApproveTime()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
Type Description
ApproveDecision.Builder

clearAutoApproved()

public ApproveDecision.Builder clearAutoApproved()

True when the request has been auto-approved.

bool auto_approved = 5;

Returns
Type Description
ApproveDecision.Builder

This builder for chaining.

clearExpireTime()

public ApproveDecision.Builder clearExpireTime()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
ApproveDecision.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInvalidateTime()

public ApproveDecision.Builder clearInvalidateTime()

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Returns
Type Description
ApproveDecision.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSignatureInfo()

public ApproveDecision.Builder clearSignatureInfo()

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Returns
Type Description
ApproveDecision.Builder

clone()

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

getApproveTime()

public Timestamp getApproveTime()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
Type Description
Timestamp

The approveTime.

getApproveTimeBuilder()

public Timestamp.Builder getApproveTimeBuilder()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
Type Description
Builder

getApproveTimeOrBuilder()

public TimestampOrBuilder getApproveTimeOrBuilder()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
Type Description
TimestampOrBuilder

getAutoApproved()

public boolean getAutoApproved()

True when the request has been auto-approved.

bool auto_approved = 5;

Returns
Type Description
boolean

The autoApproved.

getDefaultInstanceForType()

public ApproveDecision getDefaultInstanceForType()
Returns
Type Description
ApproveDecision

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
TimestampOrBuilder

getInvalidateTime()

public Timestamp getInvalidateTime()

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Returns
Type Description
Timestamp

The invalidateTime.

getInvalidateTimeBuilder()

public Timestamp.Builder getInvalidateTimeBuilder()

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Returns
Type Description
Builder

getInvalidateTimeOrBuilder()

public TimestampOrBuilder getInvalidateTimeOrBuilder()

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Returns
Type Description
TimestampOrBuilder

getSignatureInfo()

public SignatureInfo getSignatureInfo()

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Returns
Type Description
SignatureInfo

The signatureInfo.

getSignatureInfoBuilder()

public SignatureInfo.Builder getSignatureInfoBuilder()

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Returns
Type Description
SignatureInfo.Builder

getSignatureInfoOrBuilder()

public SignatureInfoOrBuilder getSignatureInfoOrBuilder()

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Returns
Type Description
SignatureInfoOrBuilder

hasApproveTime()

public boolean hasApproveTime()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
Type Description
boolean

Whether the approveTime field is set.

hasExpireTime()

public boolean hasExpireTime()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
boolean

Whether the expireTime field is set.

hasInvalidateTime()

public boolean hasInvalidateTime()

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Returns
Type Description
boolean

Whether the invalidateTime field is set.

hasSignatureInfo()

public boolean hasSignatureInfo()

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Returns
Type Description
boolean

Whether the signatureInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApproveTime(Timestamp value)

public ApproveDecision.Builder mergeApproveTime(Timestamp value)

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveDecision.Builder

mergeExpireTime(Timestamp value)

public ApproveDecision.Builder mergeExpireTime(Timestamp value)

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveDecision.Builder

mergeFrom(ApproveDecision other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInvalidateTime(Timestamp value)

public ApproveDecision.Builder mergeInvalidateTime(Timestamp value)

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveDecision.Builder

mergeSignatureInfo(SignatureInfo value)

public ApproveDecision.Builder mergeSignatureInfo(SignatureInfo value)

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Parameter
Name Description
value SignatureInfo
Returns
Type Description
ApproveDecision.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApproveTime(Timestamp value)

public ApproveDecision.Builder setApproveTime(Timestamp value)

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveDecision.Builder

setApproveTime(Timestamp.Builder builderForValue)

public ApproveDecision.Builder setApproveTime(Timestamp.Builder builderForValue)

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ApproveDecision.Builder

setAutoApproved(boolean value)

public ApproveDecision.Builder setAutoApproved(boolean value)

True when the request has been auto-approved.

bool auto_approved = 5;

Parameter
Name Description
value boolean

The autoApproved to set.

Returns
Type Description
ApproveDecision.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public ApproveDecision.Builder setExpireTime(Timestamp value)

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveDecision.Builder

setExpireTime(Timestamp.Builder builderForValue)

public ApproveDecision.Builder setExpireTime(Timestamp.Builder builderForValue)

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ApproveDecision.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInvalidateTime(Timestamp value)

public ApproveDecision.Builder setInvalidateTime(Timestamp value)

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
ApproveDecision.Builder

setInvalidateTime(Timestamp.Builder builderForValue)

public ApproveDecision.Builder setInvalidateTime(Timestamp.Builder builderForValue)

If set, denotes the timestamp at which the approval is invalidated.

.google.protobuf.Timestamp invalidate_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ApproveDecision.Builder

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

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

setSignatureInfo(SignatureInfo value)

public ApproveDecision.Builder setSignatureInfo(SignatureInfo value)

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Parameter
Name Description
value SignatureInfo
Returns
Type Description
ApproveDecision.Builder

setSignatureInfo(SignatureInfo.Builder builderForValue)

public ApproveDecision.Builder setSignatureInfo(SignatureInfo.Builder builderForValue)

The signature for the ApprovalRequest and details on how it was signed.

.google.cloud.accessapproval.v1.SignatureInfo signature_info = 4;

Parameter
Name Description
builderForValue SignatureInfo.Builder
Returns
Type Description
ApproveDecision.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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