Class ExtractPostureRequest.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExtractPostureRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

build()

public ExtractPostureRequest build()
Returns
TypeDescription
ExtractPostureRequest

buildPartial()

public ExtractPostureRequest buildPartial()
Returns
TypeDescription
ExtractPostureRequest

clear()

public ExtractPostureRequest.Builder clear()
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExtractPostureRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExtractPostureRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ExtractPostureRequest.Builder

This builder for chaining.

clone()

public ExtractPostureRequest.Builder clone()
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

getDefaultInstanceForType()

public ExtractPostureRequest getDefaultInstanceForType()
Returns
TypeDescription
ExtractPostureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExtractPostureRequest other)

public ExtractPostureRequest.Builder mergeFrom(ExtractPostureRequest other)
Parameter
NameDescription
otherExtractPostureRequest
Returns
TypeDescription
ExtractPostureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExtractPostureRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExtractPostureRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExtractPostureRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExtractPostureRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueString

The postureId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for postureId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExtractPostureRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExtractPostureRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The workload to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workload to set.

Returns
TypeDescription
ExtractPostureRequest.Builder

This builder for chaining.