- 2.53.0 (latest)
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.10
- 2.3.1
- 2.2.4
- 2.1.12
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ApprovalRequest.BuilderImplements
ApprovalRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ApprovalRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
build()
public ApprovalRequest build()
Returns | |
---|---|
Type | Description |
ApprovalRequest |
buildPartial()
public ApprovalRequest buildPartial()
Returns | |
---|---|
Type | Description |
ApprovalRequest |
clear()
public ApprovalRequest.Builder clear()
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearApprove()
public ApprovalRequest.Builder clearApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearDecision()
public ApprovalRequest.Builder clearDecision()
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearDismiss()
public ApprovalRequest.Builder clearDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public ApprovalRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearName()
public ApprovalRequest.Builder clearName()
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
string name = 1;
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ApprovalRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearRequestTime()
public ApprovalRequest.Builder clearRequestTime()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearRequestedLocations()
public ApprovalRequest.Builder clearRequestedLocations()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clearRequestedReason()
public ApprovalRequest.Builder clearRequestedReason()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ApprovalRequest.Builder |
clone()
public ApprovalRequest.Builder clone()
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
getApprove()
public ApproveDecision getApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns | |
---|---|
Type | Description |
ApproveDecision | The approve. |
getApproveBuilder()
public ApproveDecision.Builder getApproveBuilder()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns | |
---|---|
Type | Description |
ApproveDecision.Builder |
getApproveOrBuilder()
public ApproveDecisionOrBuilder getApproveOrBuilder()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns | |
---|---|
Type | Description |
ApproveDecisionOrBuilder |
getDecisionCase()
public ApprovalRequest.DecisionCase getDecisionCase()
Returns | |
---|---|
Type | Description |
ApprovalRequest.DecisionCase |
getDefaultInstanceForType()
public ApprovalRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ApprovalRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDismiss()
public DismissDecision getDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns | |
---|---|
Type | Description |
DismissDecision | The dismiss. |
getDismissBuilder()
public DismissDecision.Builder getDismissBuilder()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns | |
---|---|
Type | Description |
DismissDecision.Builder |
getDismissOrBuilder()
public DismissDecisionOrBuilder getDismissOrBuilder()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns | |
---|---|
Type | Description |
DismissDecisionOrBuilder |
getName()
public String getName()
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getRequestTime()
public Timestamp getRequestTime()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Returns | |
---|---|
Type | Description |
Timestamp | The requestTime. |
getRequestTimeBuilder()
public Timestamp.Builder getRequestTimeBuilder()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Returns | |
---|---|
Type | Description |
Builder |
getRequestTimeOrBuilder()
public TimestampOrBuilder getRequestTimeOrBuilder()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getRequestedLocations()
public AccessLocations getRequestedLocations()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
AccessLocations.Builder |
getRequestedLocationsOrBuilder()
public AccessLocationsOrBuilder getRequestedLocationsOrBuilder()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
Returns | |
---|---|
Type | Description |
AccessLocationsOrBuilder |
getRequestedReason()
public AccessReason getRequestedReason()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.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.accessapproval.v1.AccessReason requested_reason = 3;
Returns | |
---|---|
Type | Description |
AccessReason.Builder |
getRequestedReasonOrBuilder()
public AccessReasonOrBuilder getRequestedReasonOrBuilder()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ResourcePropertiesOrBuilder |
hasApprove()
public boolean hasApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns | |
---|---|
Type | Description |
boolean | Whether the approve field is set. |
hasDismiss()
public boolean hasDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the requestedResourceProperties field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeApprove(ApproveDecision value)
public ApprovalRequest.Builder mergeApprove(ApproveDecision value)
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Parameter | |
---|---|
Name | Description |
value | ApproveDecision |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
mergeDismiss(DismissDecision value)
public ApprovalRequest.Builder mergeDismiss(DismissDecision value)
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Parameter | |
---|---|
Name | Description |
value | DismissDecision |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
mergeFrom(ApprovalRequest other)
public ApprovalRequest.Builder mergeFrom(ApprovalRequest other)
Parameter | |
---|---|
Name | Description |
other | ApprovalRequest |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ApprovalRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ApprovalRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
mergeRequestTime(Timestamp value)
public ApprovalRequest.Builder mergeRequestTime(Timestamp value)
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AccessLocations |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AccessReason |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ResourceProperties |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ApprovalRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
setApprove(ApproveDecision value)
public ApprovalRequest.Builder setApprove(ApproveDecision value)
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Parameter | |
---|---|
Name | Description |
value | ApproveDecision |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
setApprove(ApproveDecision.Builder builderForValue)
public ApprovalRequest.Builder setApprove(ApproveDecision.Builder builderForValue)
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Parameter | |
---|---|
Name | Description |
builderForValue | ApproveDecision.Builder |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
setDismiss(DismissDecision value)
public ApprovalRequest.Builder setDismiss(DismissDecision value)
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Parameter | |
---|---|
Name | Description |
value | DismissDecision |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | DismissDecision.Builder |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ApprovalRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
setRequestTime(Timestamp value)
public ApprovalRequest.Builder setRequestTime(Timestamp value)
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AccessLocations |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | AccessLocations.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AccessReason |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | AccessReason.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The requestedResourceName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for requestedResourceName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ResourceProperties |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | ResourceProperties.Builder |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ApprovalRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ApprovalRequest.Builder |