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 classApprovalRequest.BuilderA request for the customer to approve access to a resource.static classApprovalRequest.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 intAPPROVE_FIELD_NUMBERstatic intDISMISS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intREQUEST_TIME_FIELD_NUMBERstatic intREQUESTED_EXPIRATION_FIELD_NUMBERstatic intREQUESTED_LOCATIONS_FIELD_NUMBERstatic intREQUESTED_REASON_FIELD_NUMBERstatic intREQUESTED_RESOURCE_NAME_FIELD_NUMBERstatic intREQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ApproveDecisiongetApprove()Access was approved.ApproveDecisionOrBuildergetApproveOrBuilder()Access was approved.ApprovalRequest.DecisionCasegetDecisionCase()static ApprovalRequestgetDefaultInstance()ApprovalRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DismissDecisiongetDismiss()The request was dismissed.DismissDecisionOrBuildergetDismissOrBuilder()The request was dismissed.StringgetName()The resource name of the request.com.google.protobuf.ByteStringgetNameBytes()The resource name of the request.com.google.protobuf.Parser<ApprovalRequest>getParserForType()com.google.protobuf.TimestampgetRequestedExpiration()The requested expiration for the approval.com.google.protobuf.TimestampOrBuildergetRequestedExpirationOrBuilder()The requested expiration for the approval.AccessLocationsgetRequestedLocations()The locations for which approval is being requested.AccessLocationsOrBuildergetRequestedLocationsOrBuilder()The locations for which approval is being requested.AccessReasongetRequestedReason()The justification for which approval is being requested.AccessReasonOrBuildergetRequestedReasonOrBuilder()The justification for which approval is being requested.StringgetRequestedResourceName()The resource for which approval is being requested.com.google.protobuf.ByteStringgetRequestedResourceNameBytes()The resource for which approval is being requested.ResourcePropertiesgetRequestedResourceProperties()Properties related to the resource represented by requested_resource_name.ResourcePropertiesOrBuildergetRequestedResourcePropertiesOrBuilder()Properties related to the resource represented by requested_resource_name.com.google.protobuf.TimestampgetRequestTime()The time at which approval was requested.com.google.protobuf.TimestampOrBuildergetRequestTimeOrBuilder()The time at which approval was requested.intgetSerializedSize()booleanhasApprove()Access was approved.booleanhasDismiss()The request was dismissed.inthashCode()booleanhasRequestedExpiration()The requested expiration for the approval.booleanhasRequestedLocations()The locations for which approval is being requested.booleanhasRequestedReason()The justification for which approval is being requested.booleanhasRequestedResourceProperties()Properties related to the resource represented by requested_resource_name.booleanhasRequestTime()The time at which approval was requested.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ApprovalRequest.BuildernewBuilder()static ApprovalRequest.BuildernewBuilder(ApprovalRequest prototype)ApprovalRequest.BuildernewBuilderForType()protected ApprovalRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ApprovalRequestparseDelimitedFrom(InputStream input)static ApprovalRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ApprovalRequestparseFrom(byte[] data)static ApprovalRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ApprovalRequestparseFrom(com.google.protobuf.ByteString data)static ApprovalRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ApprovalRequestparseFrom(com.google.protobuf.CodedInputStream input)static ApprovalRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ApprovalRequestparseFrom(InputStream input)static ApprovalRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ApprovalRequestparseFrom(ByteBuffer data)static ApprovalRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ApprovalRequest>parser()ApprovalRequest.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDecisionCase
public ApprovalRequest.DecisionCase getDecisionCase()
- Specified by:
getDecisionCasein 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:
getNamein 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:
getNameBytesin 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:
getRequestedResourceNamein 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:
getRequestedResourceNameBytesin 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:
hasRequestedResourcePropertiesin 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:
getRequestedResourcePropertiesin 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:
getRequestedResourcePropertiesOrBuilderin interfaceApprovalRequestOrBuilder
-
hasRequestedReason
public boolean hasRequestedReason()
The justification for which approval is being requested.
.google.cloud.accessapproval.v1.AccessReason requested_reason = 3;- Specified by:
hasRequestedReasonin 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:
getRequestedReasonin 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:
getRequestedReasonOrBuilderin interfaceApprovalRequestOrBuilder
-
hasRequestedLocations
public boolean hasRequestedLocations()
The locations for which approval is being requested.
.google.cloud.accessapproval.v1.AccessLocations requested_locations = 4;- Specified by:
hasRequestedLocationsin 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:
getRequestedLocationsin 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:
getRequestedLocationsOrBuilderin interfaceApprovalRequestOrBuilder
-
hasRequestTime
public boolean hasRequestTime()
The time at which approval was requested.
.google.protobuf.Timestamp request_time = 5;- Specified by:
hasRequestTimein 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:
getRequestTimein 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:
getRequestTimeOrBuilderin 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:
hasRequestedExpirationin 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:
getRequestedExpirationin 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:
getRequestedExpirationOrBuilderin interfaceApprovalRequestOrBuilder
-
hasApprove
public boolean hasApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;- Specified by:
hasApprovein interfaceApprovalRequestOrBuilder- Returns:
- Whether the approve field is set.
-
getApprove
public ApproveDecision getApprove()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;- Specified by:
getApprovein interfaceApprovalRequestOrBuilder- Returns:
- The approve.
-
getApproveOrBuilder
public ApproveDecisionOrBuilder getApproveOrBuilder()
Access was approved.
.google.cloud.accessapproval.v1.ApproveDecision approve = 7;- Specified by:
getApproveOrBuilderin interfaceApprovalRequestOrBuilder
-
hasDismiss
public boolean hasDismiss()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;- Specified by:
hasDismissin 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:
getDismissin interfaceApprovalRequestOrBuilder- Returns:
- The dismiss.
-
getDismissOrBuilder
public DismissDecisionOrBuilder getDismissOrBuilder()
The request was dismissed.
.google.cloud.accessapproval.v1.DismissDecision dismiss = 8;- Specified by:
getDismissOrBuilderin interfaceApprovalRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ApprovalRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ApprovalRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-