Class UpdateFindingRequest.Builder (2.6.0)

public static final class UpdateFindingRequest.Builder extends GeneratedMessageV3.Builder<UpdateFindingRequest.Builder> implements UpdateFindingRequestOrBuilder

Request message for updating or creating a finding.

Protobuf type google.cloud.securitycenter.v1beta1.UpdateFindingRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateFindingRequest build()
Returns
TypeDescription
UpdateFindingRequest

buildPartial()

public UpdateFindingRequest buildPartial()
Returns
TypeDescription
UpdateFindingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFinding()

public UpdateFindingRequest.Builder clearFinding()

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateFindingRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateFindingRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateFindingRequest.Builder
Overrides

clearUpdateMask()

public UpdateFindingRequest.Builder clearUpdateMask()

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
UpdateFindingRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateFindingRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateFindingRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFinding()

public Finding getFinding()

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Finding

The finding.

getFindingBuilder()

public Finding.Builder getFindingBuilder()

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Finding.Builder

getFindingOrBuilder()

public FindingOrBuilder getFindingOrBuilder()

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FindingOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMaskOrBuilder

hasFinding()

public boolean hasFinding()

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the finding field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

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

mergeFinding(Finding value)

public UpdateFindingRequest.Builder mergeFinding(Finding value)

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFinding
Returns
TypeDescription
UpdateFindingRequest.Builder

mergeFrom(UpdateFindingRequest other)

public UpdateFindingRequest.Builder mergeFrom(UpdateFindingRequest other)
Parameter
NameDescription
otherUpdateFindingRequest
Returns
TypeDescription
UpdateFindingRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateFindingRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateFindingRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateFindingRequest.Builder mergeUpdateMask(FieldMask value)

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateFindingRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFinding(Finding value)

public UpdateFindingRequest.Builder setFinding(Finding value)

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFinding
Returns
TypeDescription
UpdateFindingRequest.Builder

setFinding(Finding.Builder builderForValue)

public UpdateFindingRequest.Builder setFinding(Finding.Builder builderForValue)

Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

.google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueFinding.Builder
Returns
TypeDescription
UpdateFindingRequest.Builder

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

public UpdateFindingRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateFindingRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateFindingRequest.Builder setUpdateMask(FieldMask value)

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateFindingRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateFindingRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateFindingRequest.Builder