Class CreatePostureRequest.Builder (0.11.0)

public static final class CreatePostureRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreatePostureRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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