Class ExtractPostureRequest.Builder (0.7.0)

public static final class ExtractPostureRequest.Builder extends GeneratedMessageV3.Builder<ExtractPostureRequest.Builder> implements ExtractPostureRequestOrBuilder

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

Protobuf type google.cloud.securityposture.v1.ExtractPostureRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExtractPostureRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

build()

public ExtractPostureRequest build()
Returns
Type Description
ExtractPostureRequest

buildPartial()

public ExtractPostureRequest buildPartial()
Returns
Type Description
ExtractPostureRequest

clear()

public ExtractPostureRequest.Builder clear()
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExtractPostureRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExtractPostureRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

clearParent()

public ExtractPostureRequest.Builder clearParent()

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
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

clearPostureId()

public ExtractPostureRequest.Builder clearPostureId()

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
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

clearWorkload()

public ExtractPostureRequest.Builder clearWorkload()

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
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

clone()

public ExtractPostureRequest.Builder clone()
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

getDefaultInstanceForType()

public ExtractPostureRequest getDefaultInstanceForType()
Returns
Type Description
ExtractPostureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for parent.

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
Type Description
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
Type Description
ByteString

The bytes for postureId.

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
Type Description
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
Type Description
ByteString

The bytes for workload.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExtractPostureRequest other)

public ExtractPostureRequest.Builder mergeFrom(ExtractPostureRequest other)
Parameter
Name Description
other ExtractPostureRequest
Returns
Type Description
ExtractPostureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExtractPostureRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtractPostureRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExtractPostureRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExtractPostureRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExtractPostureRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

setParent(String value)

public ExtractPostureRequest.Builder setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExtractPostureRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

setPostureId(String value)

public ExtractPostureRequest.Builder setPostureId(String value)

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

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

Parameter
Name Description
value String

The postureId to set.

Returns
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

setPostureIdBytes(ByteString value)

public ExtractPostureRequest.Builder setPostureIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for postureId to set.

Returns
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExtractPostureRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExtractPostureRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExtractPostureRequest.Builder
Overrides

setWorkload(String value)

public ExtractPostureRequest.Builder setWorkload(String value)

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];

Parameter
Name Description
value String

The workload to set.

Returns
Type Description
ExtractPostureRequest.Builder

This builder for chaining.

setWorkloadBytes(ByteString value)

public ExtractPostureRequest.Builder setWorkloadBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for workload to set.

Returns
Type Description
ExtractPostureRequest.Builder

This builder for chaining.