Class ApproveDecision.Builder (2.1.12)

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

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ApproveDecision.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ApproveDecision.Builder
Overrides

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

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

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.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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