Class ApprovalRequest (2.13.0)

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
TypeDescription
int

DISMISS_FIELD_NUMBER

public static final int DISMISS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_EXPIRATION_FIELD_NUMBER

public static final int REQUESTED_EXPIRATION_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_LOCATIONS_FIELD_NUMBER

public static final int REQUESTED_LOCATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_REASON_FIELD_NUMBER

public static final int REQUESTED_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_RESOURCE_NAME_FIELD_NUMBER

public static final int REQUESTED_RESOURCE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER

public static final int REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_TIME_FIELD_NUMBER

public static final int REQUEST_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ApprovalRequest getDefaultInstance()
Returns
TypeDescription
ApprovalRequest

getDescriptor()

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

newBuilder()

public static ApprovalRequest.Builder newBuilder()
Returns
TypeDescription
ApprovalRequest.Builder

newBuilder(ApprovalRequest prototype)

public static ApprovalRequest.Builder newBuilder(ApprovalRequest prototype)
Parameter
NameDescription
prototypeApprovalRequest
Returns
TypeDescription
ApprovalRequest.Builder

parseDelimitedFrom(InputStream input)

public static ApprovalRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApprovalRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ApprovalRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ApprovalRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ApprovalRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ApprovalRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ApprovalRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ApprovalRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ApprovalRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApprovalRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ApprovalRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ApprovalRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApprovalRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ApprovalRequest> parser()
Returns
TypeDescription
Parser<ApprovalRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApprove()

public ApproveDecision getApprove()

Access was approved.

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

Returns
TypeDescription
ApproveDecision

The approve.

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

getDismiss()

public DismissDecision getDismiss()

The request was dismissed.

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

Returns
TypeDescription
DismissDecision

The dismiss.

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.

getParserForType()

public Parser<ApprovalRequest> getParserForType()
Returns
TypeDescription
Parser<ApprovalRequest>
Overrides

getRequestTime()

public Timestamp getRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 5;

Returns
TypeDescription
Timestamp

The requestTime.

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.

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.

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ApprovalRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ApprovalRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException