Class AccessApprovalRequest (0.5.0)

public final class AccessApprovalRequest extends GeneratedMessageV3 implements AccessApprovalRequestOrBuilder

Details about the Access request.

Protobuf type google.cloud.cloudcontrolspartner.v1.AccessApprovalRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_EXPIRATION_TIME_FIELD_NUMBER

public static final int REQUESTED_EXPIRATION_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_REASON_FIELD_NUMBER

public static final int REQUESTED_REASON_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 AccessApprovalRequest getDefaultInstance()
Returns
TypeDescription
AccessApprovalRequest

getDescriptor()

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

newBuilder()

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

newBuilder(AccessApprovalRequest prototype)

public static AccessApprovalRequest.Builder newBuilder(AccessApprovalRequest prototype)
Parameter
NameDescription
prototypeAccessApprovalRequest
Returns
TypeDescription
AccessApprovalRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AccessApprovalRequest getDefaultInstanceForType()
Returns
TypeDescription
AccessApprovalRequest

getName()

public String getName()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getRequestTime()

public Timestamp getRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
TypeDescription
Timestamp

The requestTime.

getRequestTimeOrBuilder()

public TimestampOrBuilder getRequestTimeOrBuilder()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getRequestedExpirationTime()

public Timestamp getRequestedExpirationTime()

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_time = 4;

Returns
TypeDescription
Timestamp

The requestedExpirationTime.

getRequestedExpirationTimeOrBuilder()

public TimestampOrBuilder getRequestedExpirationTimeOrBuilder()

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_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getRequestedReason()

public AccessReason getRequestedReason()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
AccessReason

The requestedReason.

getRequestedReasonOrBuilder()

public AccessReasonOrBuilder getRequestedReasonOrBuilder()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
AccessReasonOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasRequestTime()

public boolean hasRequestTime()

The time at which approval was requested.

.google.protobuf.Timestamp request_time = 2;

Returns
TypeDescription
boolean

Whether the requestTime field is set.

hasRequestedExpirationTime()

public boolean hasRequestedExpirationTime()

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_time = 4;

Returns
TypeDescription
boolean

Whether the requestedExpirationTime field is set.

hasRequestedReason()

public boolean hasRequestedReason()

The justification for which approval is being requested.

.google.cloud.cloudcontrolspartner.v1.AccessReason requested_reason = 3;

Returns
TypeDescription
boolean

Whether the requestedReason 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 AccessApprovalRequest.Builder newBuilderForType()
Returns
TypeDescription
AccessApprovalRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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