Class ExtractPostureRequest (0.1.0)

public final class ExtractPostureRequest extends GeneratedMessageV3 implements ExtractPostureRequestOrBuilder

Message for extracting existing policies on a workload as a Posture.

Protobuf type google.cloud.securityposture.v1.ExtractPostureRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

POSTURE_ID_FIELD_NUMBER

public static final int POSTURE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

WORKLOAD_FIELD_NUMBER

public static final int WORKLOAD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExtractPostureRequest getDefaultInstance()
Returns
TypeDescription
ExtractPostureRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ExtractPostureRequest prototype)

public static ExtractPostureRequest.Builder newBuilder(ExtractPostureRequest prototype)
Parameter
NameDescription
prototypeExtractPostureRequest
Returns
TypeDescription
ExtractPostureRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ExtractPostureRequest getDefaultInstanceForType()
Returns
TypeDescription
ExtractPostureRequest

getParent()

public String getParent()

Required. The parent resource name. The format of this value is as follows: organizations/{organization}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name. The format of this value is as follows: organizations/{organization}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getPostureId()

public String getPostureId()

Required. User provided identifier. It should be unique in scope of an Organization and location.

string posture_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The postureId.

getPostureIdBytes()

public ByteString getPostureIdBytes()

Required. User provided identifier. It should be unique in scope of an Organization and location.

string posture_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for postureId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWorkload()

public String getWorkload()

Required. Workload from which the policies are to be extracted, it should belong to the same organization defined in parent. The format of this value varies depending on the scope of the request:

  • folder/folderNumber
  • project/projectNumber
  • organization/organizationNumber

string workload = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The workload.

getWorkloadBytes()

public ByteString getWorkloadBytes()

Required. Workload from which the policies are to be extracted, it should belong to the same organization defined in parent. The format of this value varies depending on the scope of the request:

  • folder/folderNumber
  • project/projectNumber
  • organization/organizationNumber

string workload = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for workload.

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 ExtractPostureRequest.Builder newBuilderForType()
Returns
TypeDescription
ExtractPostureRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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