Class AccessApprovalRequest.Builder (0.11.0)

public static final class AccessApprovalRequest.Builder extends GeneratedMessageV3.Builder<AccessApprovalRequest.Builder> implements AccessApprovalRequestOrBuilder

Details about the Access request.

Protobuf type google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessApprovalRequest build()
Returns
Type Description
AccessApprovalRequest

buildPartial()

public AccessApprovalRequest buildPartial()
Returns
Type Description
AccessApprovalRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AccessApprovalRequest.Builder clearName()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AccessApprovalRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestTime()

public AccessApprovalRequest.Builder clearRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
Type Description
AccessApprovalRequest.Builder

clearRequestedExpirationTime()

public AccessApprovalRequest.Builder clearRequestedExpirationTime()

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Returns
Type Description
AccessApprovalRequest.Builder

clearRequestedReason()

public AccessApprovalRequest.Builder clearRequestedReason()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Returns
Type Description
AccessApprovalRequest.Builder

clone()

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

getDefaultInstanceForType()

public AccessApprovalRequest getDefaultInstanceForType()
Returns
Type Description
AccessApprovalRequest

getDescriptorForType()

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

getName()

public String getName()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getRequestTime()

public Timestamp getRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
Type Description
Timestamp

The requestTime.

getRequestTimeBuilder()

public Timestamp.Builder getRequestTimeBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
Type Description
Builder

getRequestTimeOrBuilder()

public TimestampOrBuilder getRequestTimeOrBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
Type Description
TimestampOrBuilder

getRequestedExpirationTime()

public Timestamp getRequestedExpirationTime()

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Returns
Type Description
Timestamp

The requestedExpirationTime.

getRequestedExpirationTimeBuilder()

public Timestamp.Builder getRequestedExpirationTimeBuilder()

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Returns
Type Description
Builder

getRequestedExpirationTimeOrBuilder()

public TimestampOrBuilder getRequestedExpirationTimeOrBuilder()

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Returns
Type Description
TimestampOrBuilder

getRequestedReason()

public AccessReason getRequestedReason()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Returns
Type Description
AccessReason

The requestedReason.

getRequestedReasonBuilder()

public AccessReason.Builder getRequestedReasonBuilder()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Returns
Type Description
AccessReason.Builder

getRequestedReasonOrBuilder()

public AccessReasonOrBuilder getRequestedReasonOrBuilder()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Returns
Type Description
AccessReasonOrBuilder

hasRequestTime()

public boolean hasRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
Type Description
boolean

Whether the requestTime field is set.

hasRequestedExpirationTime()

public boolean hasRequestedExpirationTime()

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Returns
Type Description
boolean

Whether the requestedExpirationTime field is set.

hasRequestedReason()

public boolean hasRequestedReason()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Returns
Type Description
boolean

Whether the requestedReason field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessApprovalRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRequestTime(Timestamp value)

public AccessApprovalRequest.Builder mergeRequestTime(Timestamp value)

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AccessApprovalRequest.Builder

mergeRequestedExpirationTime(Timestamp value)

public AccessApprovalRequest.Builder mergeRequestedExpirationTime(Timestamp value)

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
AccessApprovalRequest.Builder

mergeRequestedReason(AccessReason value)

public AccessApprovalRequest.Builder mergeRequestedReason(AccessReason value)

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Parameter
Name Description
value AccessReason
Returns
Type Description
AccessApprovalRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccessApprovalRequest.Builder setName(String value)

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccessApprovalRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccessApprovalRequest.Builder setNameBytes(ByteString value)

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccessApprovalRequest.Builder

This builder for chaining.

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

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

setRequestTime(Timestamp value)

public AccessApprovalRequest.Builder setRequestTime(Timestamp value)

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AccessApprovalRequest.Builder

setRequestTime(Timestamp.Builder builderForValue)

public AccessApprovalRequest.Builder setRequestTime(Timestamp.Builder builderForValue)

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AccessApprovalRequest.Builder

setRequestedExpirationTime(Timestamp value)

public AccessApprovalRequest.Builder setRequestedExpirationTime(Timestamp value)

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
AccessApprovalRequest.Builder

setRequestedExpirationTime(Timestamp.Builder builderForValue)

public AccessApprovalRequest.Builder setRequestedExpirationTime(Timestamp.Builder builderForValue)

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

.google.protobuf.Timestamp requested_expiration_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AccessApprovalRequest.Builder

setRequestedReason(AccessReason value)

public AccessApprovalRequest.Builder setRequestedReason(AccessReason value)

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Parameter
Name Description
value AccessReason
Returns
Type Description
AccessApprovalRequest.Builder

setRequestedReason(AccessReason.Builder builderForValue)

public AccessApprovalRequest.Builder setRequestedReason(AccessReason.Builder builderForValue)

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3;

Parameter
Name Description
builderForValue AccessReason.Builder
Returns
Type Description
AccessApprovalRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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