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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdatePostureRequest build()
Returns
TypeDescription
UpdatePostureRequest

buildPartial()

public UpdatePostureRequest buildPartial()
Returns
TypeDescription
UpdatePostureRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public UpdatePostureRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdatePostureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPosture()

public Posture getPosture()

Required. The resource being updated.

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

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

getPostureOrBuilder()

public PostureOrBuilder getPostureOrBuilder()

Required. The resource being updated.

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

Returns
TypeDescription
PostureOrBuilder

getRevisionId()

public String getRevisionId()

Required. Posture revision which needs to be updated.

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

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

hasPosture()

public boolean hasPosture()

Required. The resource being updated.

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

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

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdatePostureRequest other)

public UpdatePostureRequest.Builder mergeFrom(UpdatePostureRequest other)
Parameter
NameDescription
otherUpdatePostureRequest
Returns
TypeDescription
UpdatePostureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdatePostureRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdatePostureRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdatePostureRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The revisionId to set.

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

The bytes for revisionId to set.

Returns
TypeDescription
UpdatePostureRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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