public static final class ApproveGrantRequest.Builder extends GeneratedMessage.Builder<ApproveGrantRequest.Builder> implements ApproveGrantRequestOrBuilder Request message for ApproveGrant method.
Protobuf type google.cloud.privilegedaccessmanager.v1.ApproveGrantRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ApproveGrantRequest.BuilderImplements
ApproveGrantRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ApproveGrantRequest build()| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest |
|
buildPartial()
public ApproveGrantRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest |
|
clear()
public ApproveGrantRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
|
clearName()
public ApproveGrantRequest.Builder clearName()Required. Name of the grant resource which is being approved.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
This builder for chaining. |
clearReason()
public ApproveGrantRequest.Builder clearReason() Optional. The reason for approving this grant. This is required if the
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ApproveGrantRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Name of the grant resource which is being approved.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the grant resource which is being approved.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getReason()
public String getReason() Optional. The reason for approving this grant. This is required if the
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The reason. |
getReasonBytes()
public ByteString getReasonBytes() Optional. The reason for approving this grant. This is required if the
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for reason. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ApproveGrantRequest other)
public ApproveGrantRequest.Builder mergeFrom(ApproveGrantRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ApproveGrantRequest |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ApproveGrantRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ApproveGrantRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
|
setName(String value)
public ApproveGrantRequest.Builder setName(String value)Required. Name of the grant resource which is being approved.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ApproveGrantRequest.Builder setNameBytes(ByteString value)Required. Name of the grant resource which is being approved.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
This builder for chaining. |
setReason(String value)
public ApproveGrantRequest.Builder setReason(String value) Optional. The reason for approving this grant. This is required if the
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reason to set. |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
This builder for chaining. |
setReasonBytes(ByteString value)
public ApproveGrantRequest.Builder setReasonBytes(ByteString value) Optional. The reason for approving this grant. This is required if the
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reason to set. |
| Returns | |
|---|---|
| Type | Description |
ApproveGrantRequest.Builder |
This builder for chaining. |