Class ApprovalRequest.Builder (2.15.0)

public static final class ApprovalRequest.Builder extends GeneratedMessageV3.Builder<ApprovalRequest.Builder> implements ApprovalRequestOrBuilder

A request for the customer to approve access to a resource.

Protobuf type google.cloud.accessapproval.v1.ApprovalRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApprovalRequest build()
Returns
TypeDescription
ApprovalRequest

buildPartial()

public ApprovalRequest buildPartial()
Returns
TypeDescription
ApprovalRequest

clear()

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

clearApprove()

public ApprovalRequest.Builder clearApprove()

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Returns
TypeDescription
ApprovalRequest.Builder

clearDecision()

public ApprovalRequest.Builder clearDecision()
Returns
TypeDescription
ApprovalRequest.Builder

clearDismiss()

public ApprovalRequest.Builder clearDismiss()

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Returns
TypeDescription
ApprovalRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ApprovalRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ApprovalRequest.Builder
Overrides

clearName()

public ApprovalRequest.Builder clearName()

The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

string name = 1;

Returns
TypeDescription
ApprovalRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestTime()

public ApprovalRequest.Builder clearRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Returns
TypeDescription
ApprovalRequest.Builder

clearRequestedExpiration()

public ApprovalRequest.Builder clearRequestedExpiration()

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 = 6;

Returns
TypeDescription
ApprovalRequest.Builder

clearRequestedLocations()

public ApprovalRequest.Builder clearRequestedLocations()

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Returns
TypeDescription
ApprovalRequest.Builder

clearRequestedReason()

public ApprovalRequest.Builder clearRequestedReason()

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
ApprovalRequest.Builder

clearRequestedResourceName()

public ApprovalRequest.Builder clearRequestedResourceName()

The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.

string requested_resource_name = 2;

Returns
TypeDescription
ApprovalRequest.Builder

This builder for chaining.

clearRequestedResourceProperties()

public ApprovalRequest.Builder clearRequestedResourceProperties()

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Returns
TypeDescription
ApprovalRequest.Builder

clone()

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

getApprove()

public ApproveDecision getApprove()

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Returns
TypeDescription
ApproveDecision

The approve.

getApproveBuilder()

public ApproveDecision.Builder getApproveBuilder()

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Returns
TypeDescription
ApproveDecision.Builder

getApproveOrBuilder()

public ApproveDecisionOrBuilder getApproveOrBuilder()

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Returns
TypeDescription
ApproveDecisionOrBuilder

getDecisionCase()

public ApprovalRequest.DecisionCase getDecisionCase()
Returns
TypeDescription
ApprovalRequest.DecisionCase

getDefaultInstanceForType()

public ApprovalRequest getDefaultInstanceForType()
Returns
TypeDescription
ApprovalRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDismiss()

public DismissDecision getDismiss()

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Returns
TypeDescription
DismissDecision

The dismiss.

getDismissBuilder()

public DismissDecision.Builder getDismissBuilder()

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Returns
TypeDescription
DismissDecision.Builder

getDismissOrBuilder()

public DismissDecisionOrBuilder getDismissOrBuilder()

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Returns
TypeDescription
DismissDecisionOrBuilder

getName()

public String getName()

The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getRequestTime()

public Timestamp getRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Returns
TypeDescription
Timestamp

The requestTime.

getRequestTimeBuilder()

public Timestamp.Builder getRequestTimeBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Returns
TypeDescription
Builder

getRequestTimeOrBuilder()

public TimestampOrBuilder getRequestTimeOrBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getRequestedExpiration()

public Timestamp getRequestedExpiration()

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 = 6;

Returns
TypeDescription
Timestamp

The requestedExpiration.

getRequestedExpirationBuilder()

public Timestamp.Builder getRequestedExpirationBuilder()

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 = 6;

Returns
TypeDescription
Builder

getRequestedExpirationOrBuilder()

public TimestampOrBuilder getRequestedExpirationOrBuilder()

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 = 6;

Returns
TypeDescription
TimestampOrBuilder

getRequestedLocations()

public AccessLocations getRequestedLocations()

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Returns
TypeDescription
AccessLocations

The requestedLocations.

getRequestedLocationsBuilder()

public AccessLocations.Builder getRequestedLocationsBuilder()

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Returns
TypeDescription
AccessLocations.Builder

getRequestedLocationsOrBuilder()

public AccessLocationsOrBuilder getRequestedLocationsOrBuilder()

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Returns
TypeDescription
AccessLocationsOrBuilder

getRequestedReason()

public AccessReason getRequestedReason()

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
AccessReason

The requestedReason.

getRequestedReasonBuilder()

public AccessReason.Builder getRequestedReasonBuilder()

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
AccessReason.Builder

getRequestedReasonOrBuilder()

public AccessReasonOrBuilder getRequestedReasonOrBuilder()

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
AccessReasonOrBuilder

getRequestedResourceName()

public String getRequestedResourceName()

The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.

string requested_resource_name = 2;

Returns
TypeDescription
String

The requestedResourceName.

getRequestedResourceNameBytes()

public ByteString getRequestedResourceNameBytes()

The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.

string requested_resource_name = 2;

Returns
TypeDescription
ByteString

The bytes for requestedResourceName.

getRequestedResourceProperties()

public ResourceProperties getRequestedResourceProperties()

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Returns
TypeDescription
ResourceProperties

The requestedResourceProperties.

getRequestedResourcePropertiesBuilder()

public ResourceProperties.Builder getRequestedResourcePropertiesBuilder()

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Returns
TypeDescription
ResourceProperties.Builder

getRequestedResourcePropertiesOrBuilder()

public ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder()

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Returns
TypeDescription
ResourcePropertiesOrBuilder

hasApprove()

public boolean hasApprove()

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Returns
TypeDescription
boolean

Whether the approve field is set.

hasDismiss()

public boolean hasDismiss()

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Returns
TypeDescription
boolean

Whether the dismiss field is set.

hasRequestTime()

public boolean hasRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Returns
TypeDescription
boolean

Whether the requestTime field is set.

hasRequestedExpiration()

public boolean hasRequestedExpiration()

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 = 6;

Returns
TypeDescription
boolean

Whether the requestedExpiration field is set.

hasRequestedLocations()

public boolean hasRequestedLocations()

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Returns
TypeDescription
boolean

Whether the requestedLocations field is set.

hasRequestedReason()

public boolean hasRequestedReason()

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
boolean

Whether the requestedReason field is set.

hasRequestedResourceProperties()

public boolean hasRequestedResourceProperties()

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Returns
TypeDescription
boolean

Whether the requestedResourceProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeApprove(ApproveDecision value)

public ApprovalRequest.Builder mergeApprove(ApproveDecision value)

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Parameter
NameDescription
valueApproveDecision
Returns
TypeDescription
ApprovalRequest.Builder

mergeDismiss(DismissDecision value)

public ApprovalRequest.Builder mergeDismiss(DismissDecision value)

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Parameter
NameDescription
valueDismissDecision
Returns
TypeDescription
ApprovalRequest.Builder

mergeFrom(ApprovalRequest other)

public ApprovalRequest.Builder mergeFrom(ApprovalRequest other)
Parameter
NameDescription
otherApprovalRequest
Returns
TypeDescription
ApprovalRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ApprovalRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ApprovalRequest.Builder
Overrides

mergeRequestTime(Timestamp value)

public ApprovalRequest.Builder mergeRequestTime(Timestamp value)

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ApprovalRequest.Builder

mergeRequestedExpiration(Timestamp value)

public ApprovalRequest.Builder mergeRequestedExpiration(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 = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ApprovalRequest.Builder

mergeRequestedLocations(AccessLocations value)

public ApprovalRequest.Builder mergeRequestedLocations(AccessLocations value)

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Parameter
NameDescription
valueAccessLocations
Returns
TypeDescription
ApprovalRequest.Builder

mergeRequestedReason(AccessReason value)

public ApprovalRequest.Builder mergeRequestedReason(AccessReason value)

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Parameter
NameDescription
valueAccessReason
Returns
TypeDescription
ApprovalRequest.Builder

mergeRequestedResourceProperties(ResourceProperties value)

public ApprovalRequest.Builder mergeRequestedResourceProperties(ResourceProperties value)

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Parameter
NameDescription
valueResourceProperties
Returns
TypeDescription
ApprovalRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApprove(ApproveDecision value)

public ApprovalRequest.Builder setApprove(ApproveDecision value)

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Parameter
NameDescription
valueApproveDecision
Returns
TypeDescription
ApprovalRequest.Builder

setApprove(ApproveDecision.Builder builderForValue)

public ApprovalRequest.Builder setApprove(ApproveDecision.Builder builderForValue)

Access was approved.

.google.cloud.accessapproval.v1.ApproveDecision approve = 7;

Parameter
NameDescription
builderForValueApproveDecision.Builder
Returns
TypeDescription
ApprovalRequest.Builder

setDismiss(DismissDecision value)

public ApprovalRequest.Builder setDismiss(DismissDecision value)

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Parameter
NameDescription
valueDismissDecision
Returns
TypeDescription
ApprovalRequest.Builder

setDismiss(DismissDecision.Builder builderForValue)

public ApprovalRequest.Builder setDismiss(DismissDecision.Builder builderForValue)

The request was dismissed.

.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;

Parameter
NameDescription
builderForValueDismissDecision.Builder
Returns
TypeDescription
ApprovalRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ApprovalRequest.Builder setName(String value)

The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ApprovalRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApprovalRequest.Builder setNameBytes(ByteString value)

The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ApprovalRequest.Builder

This builder for chaining.

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

public ApprovalRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ApprovalRequest.Builder
Overrides

setRequestTime(Timestamp value)

public ApprovalRequest.Builder setRequestTime(Timestamp value)

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ApprovalRequest.Builder

setRequestTime(Timestamp.Builder builderForValue)

public ApprovalRequest.Builder setRequestTime(Timestamp.Builder builderForValue)

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedExpiration(Timestamp value)

public ApprovalRequest.Builder setRequestedExpiration(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 = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedExpiration(Timestamp.Builder builderForValue)

public ApprovalRequest.Builder setRequestedExpiration(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 = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedLocations(AccessLocations value)

public ApprovalRequest.Builder setRequestedLocations(AccessLocations value)

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Parameter
NameDescription
valueAccessLocations
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedLocations(AccessLocations.Builder builderForValue)

public ApprovalRequest.Builder setRequestedLocations(AccessLocations.Builder builderForValue)

The locations for which approval is being requested.

.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;

Parameter
NameDescription
builderForValueAccessLocations.Builder
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedReason(AccessReason value)

public ApprovalRequest.Builder setRequestedReason(AccessReason value)

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Parameter
NameDescription
valueAccessReason
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedReason(AccessReason.Builder builderForValue)

public ApprovalRequest.Builder setRequestedReason(AccessReason.Builder builderForValue)

The justification for which approval is being requested.

.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;

Parameter
NameDescription
builderForValueAccessReason.Builder
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedResourceName(String value)

public ApprovalRequest.Builder setRequestedResourceName(String value)

The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.

string requested_resource_name = 2;

Parameter
NameDescription
valueString

The requestedResourceName to set.

Returns
TypeDescription
ApprovalRequest.Builder

This builder for chaining.

setRequestedResourceNameBytes(ByteString value)

public ApprovalRequest.Builder setRequestedResourceNameBytes(ByteString value)

The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.

string requested_resource_name = 2;

Parameter
NameDescription
valueByteString

The bytes for requestedResourceName to set.

Returns
TypeDescription
ApprovalRequest.Builder

This builder for chaining.

setRequestedResourceProperties(ResourceProperties value)

public ApprovalRequest.Builder setRequestedResourceProperties(ResourceProperties value)

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Parameter
NameDescription
valueResourceProperties
Returns
TypeDescription
ApprovalRequest.Builder

setRequestedResourceProperties(ResourceProperties.Builder builderForValue)

public ApprovalRequest.Builder setRequestedResourceProperties(ResourceProperties.Builder builderForValue)

Properties related to the resource represented by requested_resource_name.

.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;

Parameter
NameDescription
builderForValueResourceProperties.Builder
Returns
TypeDescription
ApprovalRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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