public final class ApprovalRequest extends GeneratedMessageV3 implements ApprovalRequestOrBuilder
A request for the customer to approve access to a resource.
Protobuf type google.cloud.accessapproval.v1.ApprovalRequest
Static Fields
APPROVE_FIELD_NUMBER
public static final int APPROVE_FIELD_NUMBER
Field Value
DISMISS_FIELD_NUMBER
public static final int DISMISS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
REQUESTED_EXPIRATION_FIELD_NUMBER
public static final int REQUESTED_EXPIRATION_FIELD_NUMBER
Field Value
REQUESTED_LOCATIONS_FIELD_NUMBER
public static final int REQUESTED_LOCATIONS_FIELD_NUMBER
Field Value
REQUESTED_REASON_FIELD_NUMBER
public static final int REQUESTED_REASON_FIELD_NUMBER
Field Value
REQUESTED_RESOURCE_NAME_FIELD_NUMBER
public static final int REQUESTED_RESOURCE_NAME_FIELD_NUMBER
Field Value
REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
public static final int REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
Field Value
REQUEST_TIME_FIELD_NUMBER
public static final int REQUEST_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ApprovalRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ApprovalRequest.Builder newBuilder()
Returns
newBuilder(ApprovalRequest prototype)
public static ApprovalRequest.Builder newBuilder(ApprovalRequest prototype)
Parameter
Returns
public static ApprovalRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ApprovalRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ApprovalRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ApprovalRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ApprovalRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ApprovalRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ApprovalRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ApprovalRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ApprovalRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ApprovalRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ApprovalRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ApprovalRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ApprovalRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getApprove()
public ApproveDecision getApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns
getApproveOrBuilder()
public ApproveDecisionOrBuilder getApproveOrBuilder()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
Returns
getDecisionCase()
public ApprovalRequest.DecisionCase getDecisionCase()
Returns
getDefaultInstanceForType()
public ApprovalRequest getDefaultInstanceForType()
Returns
getDismiss()
public DismissDecision getDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns
getDismissOrBuilder()
public DismissDecisionOrBuilder getDismissOrBuilder()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
Returns
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
getParserForType()
public Parser<ApprovalRequest> getParserForType()
Returns
Overrides
getRequestTime()
public Timestamp getRequestTime()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Returns
getRequestTimeOrBuilder()
public TimestampOrBuilder getRequestTimeOrBuilder()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
Returns
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.
|
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
getRequestedLocations()
public AccessLocations getRequestedLocations()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
Returns
getRequestedLocationsOrBuilder()
public AccessLocationsOrBuilder getRequestedLocationsOrBuilder()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
Returns
getRequestedReason()
public AccessReason getRequestedReason()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
Returns
getRequestedReasonOrBuilder()
public AccessReasonOrBuilder getRequestedReasonOrBuilder()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
Returns
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
getRequestedResourcePropertiesOrBuilder()
public ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder()
Properties related to the resource represented by requested_resource_name.
.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ApprovalRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ApprovalRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ApprovalRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions