Class UpdatePostureRequest.Builder (0.7.0)

public static final class UpdatePostureRequest.Builder extends GeneratedMessageV3.Builder<UpdatePostureRequest.Builder> implements UpdatePostureRequestOrBuilder

Message for updating a Posture.

Protobuf type google.cloud.securityposture.v1.UpdatePostureRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdatePostureRequest build()
Returns
Type Description
UpdatePostureRequest

buildPartial()

public UpdatePostureRequest buildPartial()
Returns
Type Description
UpdatePostureRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPosture()

public UpdatePostureRequest.Builder clearPosture()

Required. The resource being updated.

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

Returns
Type Description
UpdatePostureRequest.Builder

clearRevisionId()

public UpdatePostureRequest.Builder clearRevisionId()

Required. Posture revision which needs to be updated.

string revision_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdatePostureRequest.Builder

This builder for chaining.

clearUpdateMask()

public UpdatePostureRequest.Builder clearUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdatePostureRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdatePostureRequest getDefaultInstanceForType()
Returns
Type Description
UpdatePostureRequest

getDescriptorForType()

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

getPosture()

public Posture getPosture()

Required. The resource being updated.

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

Returns
Type Description
Posture

The posture.

getPostureBuilder()

public Posture.Builder getPostureBuilder()

Required. The resource being updated.

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

Returns
Type Description
Posture.Builder

getPostureOrBuilder()

public PostureOrBuilder getPostureOrBuilder()

Required. The resource being updated.

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

Returns
Type Description
PostureOrBuilder

getRevisionId()

public String getRevisionId()

Required. Posture revision which needs to be updated.

string revision_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Required. Posture revision which needs to be updated.

string revision_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for revisionId.

getUpdateMask()

public FieldMask getUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasPosture()

public boolean hasPosture()

Required. The resource being updated.

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

Returns
Type Description
boolean

Whether the posture field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdatePostureRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePosture(Posture value)

public UpdatePostureRequest.Builder mergePosture(Posture value)

Required. The resource being updated.

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

Parameter
Name Description
value Posture
Returns
Type Description
UpdatePostureRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdatePostureRequest.Builder mergeUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdatePostureRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPosture(Posture value)

public UpdatePostureRequest.Builder setPosture(Posture value)

Required. The resource being updated.

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

Parameter
Name Description
value Posture
Returns
Type Description
UpdatePostureRequest.Builder

setPosture(Posture.Builder builderForValue)

public UpdatePostureRequest.Builder setPosture(Posture.Builder builderForValue)

Required. The resource being updated.

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

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

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

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

setRevisionId(String value)

public UpdatePostureRequest.Builder setRevisionId(String value)

Required. Posture revision which needs to be updated.

string revision_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
UpdatePostureRequest.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public UpdatePostureRequest.Builder setRevisionIdBytes(ByteString value)

Required. Posture revision which needs to be updated.

string revision_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
UpdatePostureRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdatePostureRequest.Builder setUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdatePostureRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdatePostureRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdatePostureRequest.Builder