Class ApproveDecision.Builder (2.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ApproveDecision.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ApproveDecision.Builder
Overrides

build()

public ApproveDecision build()
Returns
TypeDescription
ApproveDecision

buildPartial()

public ApproveDecision buildPartial()
Returns
TypeDescription
ApproveDecision

clear()

public ApproveDecision.Builder clear()
Returns
TypeDescription
ApproveDecision.Builder
Overrides

clearApproveTime()

public ApproveDecision.Builder clearApproveTime()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
TypeDescription
ApproveDecision.Builder

clearAutoApproved()

public ApproveDecision.Builder clearAutoApproved()

True when the request has been auto-approved.

bool auto_approved = 5;

Returns
TypeDescription
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
TypeDescription
ApproveDecision.Builder

clearField(Descriptors.FieldDescriptor field)

public ApproveDecision.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ApproveDecision.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ApproveDecision.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ApproveDecision.Builder

clone()

public ApproveDecision.Builder clone()
Returns
TypeDescription
ApproveDecision.Builder
Overrides

getApproveTime()

public Timestamp getApproveTime()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
TypeDescription
Timestamp

The approveTime.

getApproveTimeBuilder()

public Timestamp.Builder getApproveTimeBuilder()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
TypeDescription
Builder

getApproveTimeOrBuilder()

public TimestampOrBuilder getApproveTimeOrBuilder()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getAutoApproved()

public boolean getAutoApproved()

True when the request has been auto-approved.

bool auto_approved = 5;

Returns
TypeDescription
boolean

The autoApproved.

getDefaultInstanceForType()

public ApproveDecision getDefaultInstanceForType()
Returns
TypeDescription
ApproveDecision

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The time at which the approval expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getInvalidateTime()

public Timestamp getInvalidateTime()

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

.google.protobuf.Timestamp invalidate_time = 3;

Returns
TypeDescription
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
TypeDescription
Builder

getInvalidateTimeOrBuilder()

public TimestampOrBuilder getInvalidateTimeOrBuilder()

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

.google.protobuf.Timestamp invalidate_time = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SignatureInfoOrBuilder

hasApproveTime()

public boolean hasApproveTime()

The time at which approval was granted.

.google.protobuf.Timestamp approve_time = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the signatureInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ApproveDecision.Builder

mergeFrom(ApproveDecision other)

public ApproveDecision.Builder mergeFrom(ApproveDecision other)
Parameter
NameDescription
otherApproveDecision
Returns
TypeDescription
ApproveDecision.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ApproveDecision.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveDecision.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ApproveDecision.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueSignatureInfo
Returns
TypeDescription
ApproveDecision.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApproveDecision.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ApproveDecision.Builder

setAutoApproved(boolean value)

public ApproveDecision.Builder setAutoApproved(boolean value)

True when the request has been auto-approved.

bool auto_approved = 5;

Parameter
NameDescription
valueboolean

The autoApproved to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ApproveDecision.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ApproveDecision.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ApproveDecision.Builder

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

public ApproveDecision.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSignatureInfo
Returns
TypeDescription
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
NameDescription
builderForValueSignatureInfo.Builder
Returns
TypeDescription
ApproveDecision.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ApproveDecision.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ApproveDecision.Builder
Overrides