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