Class ApprovalRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.accessapproval.v1.ApprovalRequest
-
- All Implemented Interfaces:
ApprovalRequestOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class ApprovalRequest extends com.google.protobuf.GeneratedMessageV3 implements ApprovalRequestOrBuilder
A request for the customer to approve access to a resource.
Protobuf typegoogle.cloud.accessapproval.v1.ApprovalRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApprovalRequest.Builder
A request for the customer to approve access to a resource.static class
ApprovalRequest.DecisionCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
APPROVE_FIELD_NUMBER
static int
DISMISS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
REQUEST_TIME_FIELD_NUMBER
static int
REQUESTED_EXPIRATION_FIELD_NUMBER
static int
REQUESTED_LOCATIONS_FIELD_NUMBER
static int
REQUESTED_REASON_FIELD_NUMBER
static int
REQUESTED_RESOURCE_NAME_FIELD_NUMBER
static int
REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ApproveDecision
getApprove()
Access was approved.ApproveDecisionOrBuilder
getApproveOrBuilder()
Access was approved.ApprovalRequest.DecisionCase
getDecisionCase()
static ApprovalRequest
getDefaultInstance()
ApprovalRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
DismissDecision
getDismiss()
The request was dismissed.DismissDecisionOrBuilder
getDismissOrBuilder()
The request was dismissed.String
getName()
The resource name of the request.com.google.protobuf.ByteString
getNameBytes()
The resource name of the request.com.google.protobuf.Parser<ApprovalRequest>
getParserForType()
com.google.protobuf.Timestamp
getRequestedExpiration()
The requested expiration for the approval.com.google.protobuf.TimestampOrBuilder
getRequestedExpirationOrBuilder()
The requested expiration for the approval.AccessLocations
getRequestedLocations()
The locations for which approval is being requested.AccessLocationsOrBuilder
getRequestedLocationsOrBuilder()
The locations for which approval is being requested.AccessReason
getRequestedReason()
The justification for which approval is being requested.AccessReasonOrBuilder
getRequestedReasonOrBuilder()
The justification for which approval is being requested.String
getRequestedResourceName()
The resource for which approval is being requested.com.google.protobuf.ByteString
getRequestedResourceNameBytes()
The resource for which approval is being requested.ResourceProperties
getRequestedResourceProperties()
Properties related to the resource represented by requested_resource_name.ResourcePropertiesOrBuilder
getRequestedResourcePropertiesOrBuilder()
Properties related to the resource represented by requested_resource_name.com.google.protobuf.Timestamp
getRequestTime()
The time at which approval was requested.com.google.protobuf.TimestampOrBuilder
getRequestTimeOrBuilder()
The time at which approval was requested.int
getSerializedSize()
boolean
hasApprove()
Access was approved.boolean
hasDismiss()
The request was dismissed.int
hashCode()
boolean
hasRequestedExpiration()
The requested expiration for the approval.boolean
hasRequestedLocations()
The locations for which approval is being requested.boolean
hasRequestedReason()
The justification for which approval is being requested.boolean
hasRequestedResourceProperties()
Properties related to the resource represented by requested_resource_name.boolean
hasRequestTime()
The time at which approval was requested.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ApprovalRequest.Builder
newBuilder()
static ApprovalRequest.Builder
newBuilder(ApprovalRequest prototype)
ApprovalRequest.Builder
newBuilderForType()
protected ApprovalRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ApprovalRequest
parseDelimitedFrom(InputStream input)
static ApprovalRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ApprovalRequest
parseFrom(byte[] data)
static ApprovalRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ApprovalRequest
parseFrom(com.google.protobuf.ByteString data)
static ApprovalRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ApprovalRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static ApprovalRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ApprovalRequest
parseFrom(InputStream input)
static ApprovalRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ApprovalRequest
parseFrom(ByteBuffer data)
static ApprovalRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ApprovalRequest>
parser()
ApprovalRequest.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_RESOURCE_NAME_FIELD_NUMBER
public static final int REQUESTED_RESOURCE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
public static final int REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_REASON_FIELD_NUMBER
public static final int REQUESTED_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_LOCATIONS_FIELD_NUMBER
public static final int REQUESTED_LOCATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_TIME_FIELD_NUMBER
public static final int REQUEST_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_EXPIRATION_FIELD_NUMBER
public static final int REQUESTED_EXPIRATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPROVE_FIELD_NUMBER
public static final int APPROVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISMISS_FIELD_NUMBER
public static final int DISMISS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getDecisionCase
public ApprovalRequest.DecisionCase getDecisionCase()
- Specified by:
getDecisionCase
in interfaceApprovalRequestOrBuilder
-
getName
public String getName()
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
string name = 1;
- Specified by:
getName
in interfaceApprovalRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
string name = 1;
- Specified by:
getNameBytes
in interfaceApprovalRequestOrBuilder
- Returns:
- The bytes for name.
-
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;
- Specified by:
getRequestedResourceName
in interfaceApprovalRequestOrBuilder
- Returns:
- The requestedResourceName.
-
getRequestedResourceNameBytes
public com.google.protobuf.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;
- Specified by:
getRequestedResourceNameBytes
in interfaceApprovalRequestOrBuilder
- Returns:
- The bytes for requestedResourceName.
-
hasRequestedResourceProperties
public boolean hasRequestedResourceProperties()
Properties related to the resource represented by requested_resource_name.
.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;
- Specified by:
hasRequestedResourceProperties
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the requestedResourceProperties field is set.
-
getRequestedResourceProperties
public ResourceProperties getRequestedResourceProperties()
Properties related to the resource represented by requested_resource_name.
.google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9;
- Specified by:
getRequestedResourceProperties
in interfaceApprovalRequestOrBuilder
- Returns:
- 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;
- Specified by:
getRequestedResourcePropertiesOrBuilder
in interfaceApprovalRequestOrBuilder
-
hasRequestedReason
public boolean hasRequestedReason()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
- Specified by:
hasRequestedReason
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the requestedReason field is set.
-
getRequestedReason
public AccessReason getRequestedReason()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
- Specified by:
getRequestedReason
in interfaceApprovalRequestOrBuilder
- Returns:
- The requestedReason.
-
getRequestedReasonOrBuilder
public AccessReasonOrBuilder getRequestedReasonOrBuilder()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;
- Specified by:
getRequestedReasonOrBuilder
in interfaceApprovalRequestOrBuilder
-
hasRequestedLocations
public boolean hasRequestedLocations()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
- Specified by:
hasRequestedLocations
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the requestedLocations field is set.
-
getRequestedLocations
public AccessLocations getRequestedLocations()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
- Specified by:
getRequestedLocations
in interfaceApprovalRequestOrBuilder
- Returns:
- The requestedLocations.
-
getRequestedLocationsOrBuilder
public AccessLocationsOrBuilder getRequestedLocationsOrBuilder()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;
- Specified by:
getRequestedLocationsOrBuilder
in interfaceApprovalRequestOrBuilder
-
hasRequestTime
public boolean hasRequestTime()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
- Specified by:
hasRequestTime
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the requestTime field is set.
-
getRequestTime
public com.google.protobuf.Timestamp getRequestTime()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
- Specified by:
getRequestTime
in interfaceApprovalRequestOrBuilder
- Returns:
- The requestTime.
-
getRequestTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;
- Specified by:
getRequestTimeOrBuilder
in interfaceApprovalRequestOrBuilder
-
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;
- Specified by:
hasRequestedExpiration
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the requestedExpiration field is set.
-
getRequestedExpiration
public com.google.protobuf.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;
- Specified by:
getRequestedExpiration
in interfaceApprovalRequestOrBuilder
- Returns:
- The requestedExpiration.
-
getRequestedExpirationOrBuilder
public com.google.protobuf.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;
- Specified by:
getRequestedExpirationOrBuilder
in interfaceApprovalRequestOrBuilder
-
hasApprove
public boolean hasApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
- Specified by:
hasApprove
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the approve field is set.
-
getApprove
public ApproveDecision getApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
- Specified by:
getApprove
in interfaceApprovalRequestOrBuilder
- Returns:
- The approve.
-
getApproveOrBuilder
public ApproveDecisionOrBuilder getApproveOrBuilder()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;
- Specified by:
getApproveOrBuilder
in interfaceApprovalRequestOrBuilder
-
hasDismiss
public boolean hasDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
- Specified by:
hasDismiss
in interfaceApprovalRequestOrBuilder
- Returns:
- Whether the dismiss field is set.
-
getDismiss
public DismissDecision getDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
- Specified by:
getDismiss
in interfaceApprovalRequestOrBuilder
- Returns:
- The dismiss.
-
getDismissOrBuilder
public DismissDecisionOrBuilder getDismissOrBuilder()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;
- Specified by:
getDismissOrBuilder
in interfaceApprovalRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ApprovalRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApprovalRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApprovalRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApprovalRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApprovalRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApprovalRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApprovalRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ApprovalRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ApprovalRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ApprovalRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ApprovalRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ApprovalRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ApprovalRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ApprovalRequest.Builder newBuilder()
-
newBuilder
public static ApprovalRequest.Builder newBuilder(ApprovalRequest prototype)
-
toBuilder
public ApprovalRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ApprovalRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ApprovalRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ApprovalRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ApprovalRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ApprovalRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-