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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreatePostureRequest build()
Returns
TypeDescription
CreatePostureRequest

buildPartial()

public CreatePostureRequest buildPartial()
Returns
TypeDescription
CreatePostureRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreatePostureRequest getDefaultInstanceForType()
Returns
TypeDescription
CreatePostureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Value for parent.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

getPostureOrBuilder()

public PostureOrBuilder getPostureOrBuilder()

Required. The resource being created.

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

Returns
TypeDescription
PostureOrBuilder

hasPosture()

public boolean hasPosture()

Required. The resource being created.

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

Returns
TypeDescription
boolean

Whether the posture field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreatePostureRequest other)

public CreatePostureRequest.Builder mergeFrom(CreatePostureRequest other)
Parameter
NameDescription
otherCreatePostureRequest
Returns
TypeDescription
CreatePostureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreatePostureRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePosture
Returns
TypeDescription
CreatePostureRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valuePosture
Returns
TypeDescription
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
NameDescription
builderForValuePosture.Builder
Returns
TypeDescription
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
NameDescription
valueString

The postureId to set.

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

The bytes for postureId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CreatePostureRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreatePostureRequest.Builder
Overrides