Class CreatePostureRequest.Builder (0.50.0)

public static final class CreatePostureRequest.Builder extends GeneratedMessage.Builder<CreatePostureRequest.Builder> implements CreatePostureRequestOrBuilder

Message for creating a Posture.

Protobuf type google.cloud.securityposture.v1.CreatePostureRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreatePostureRequest build()
Returns
Type Description
CreatePostureRequest

buildPartial()

public CreatePostureRequest buildPartial()
Returns
Type Description
CreatePostureRequest

clear()

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

clearParent()

public CreatePostureRequest.Builder clearParent()

Required. Value for parent.

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

Returns
Type Description
CreatePostureRequest.Builder

This builder for chaining.

clearPosture()

public CreatePostureRequest.Builder clearPosture()

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreatePostureRequest.Builder

clearPostureId()

public CreatePostureRequest.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
CreatePostureRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreatePostureRequest getDefaultInstanceForType()
Returns
Type Description
CreatePostureRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Value for parent.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
Type Description
ByteString

The bytes for parent.

getPosture()

public Posture getPosture()

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Posture

The posture.

getPostureBuilder()

public Posture.Builder getPostureBuilder()

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Posture.Builder

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.

getPostureOrBuilder()

public PostureOrBuilder getPostureOrBuilder()

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PostureOrBuilder

hasPosture()

public boolean hasPosture()

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the posture field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreatePostureRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePosture(Posture value)

public CreatePostureRequest.Builder mergePosture(Posture value)

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Posture
Returns
Type Description
CreatePostureRequest.Builder

setParent(String value)

public CreatePostureRequest.Builder setParent(String value)

Required. Value for parent.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreatePostureRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreatePostureRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

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
CreatePostureRequest.Builder

This builder for chaining.

setPosture(Posture value)

public CreatePostureRequest.Builder setPosture(Posture value)

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Posture
Returns
Type Description
CreatePostureRequest.Builder

setPosture(Posture.Builder builderForValue)

public CreatePostureRequest.Builder setPosture(Posture.Builder builderForValue)

Required. The resource being created.

.google.cloud.securityposture.v1.Posture posture = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Posture.Builder
Returns
Type Description
CreatePostureRequest.Builder

setPostureId(String value)

public CreatePostureRequest.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
CreatePostureRequest.Builder

This builder for chaining.

setPostureIdBytes(ByteString value)

public CreatePostureRequest.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
CreatePostureRequest.Builder

This builder for chaining.