Class AccessApprovalRequest.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessApprovalRequest build()
Returns
TypeDescription
AccessApprovalRequest

buildPartial()

public AccessApprovalRequest buildPartial()
Returns
TypeDescription
AccessApprovalRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestTime()

public AccessApprovalRequest.Builder clearRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

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

clearRequestedReason()

public AccessApprovalRequest.Builder clearRequestedReason()

The justification for which approval is being requested.

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

Returns
TypeDescription
AccessApprovalRequest.Builder

clone()

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

getDefaultInstanceForType()

public AccessApprovalRequest getDefaultInstanceForType()
Returns
TypeDescription
AccessApprovalRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getRequestTime()

public Timestamp getRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
TypeDescription
Timestamp

The requestTime.

getRequestTimeBuilder()

public Timestamp.Builder getRequestTimeBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
TypeDescription
Builder

getRequestTimeOrBuilder()

public TimestampOrBuilder getRequestTimeOrBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

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

getRequestedReason()

public AccessReason getRequestedReason()

The justification for which approval is being requested.

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

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

getRequestedReasonOrBuilder()

public AccessReasonOrBuilder getRequestedReasonOrBuilder()

The justification for which approval is being requested.

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

Returns
TypeDescription
AccessReasonOrBuilder

hasRequestTime()

public boolean hasRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

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

Whether the requestedReason field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AccessApprovalRequest other)

public AccessApprovalRequest.Builder mergeFrom(AccessApprovalRequest other)
Parameter
NameDescription
otherAccessApprovalRequest
Returns
TypeDescription
AccessApprovalRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessApprovalRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessApprovalRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueAccessReason
Returns
TypeDescription
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
NameDescription
builderForValueAccessReason.Builder
Returns
TypeDescription
AccessApprovalRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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