Class CreateFindingRequest.Builder (2.52.0)

public static final class CreateFindingRequest.Builder extends GeneratedMessageV3.Builder<CreateFindingRequest.Builder> implements CreateFindingRequestOrBuilder

Request message for creating a finding.

Protobuf type google.cloud.securitycenter.v1p1beta1.CreateFindingRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFindingRequest build()
Returns
Type Description
CreateFindingRequest

buildPartial()

public CreateFindingRequest buildPartial()
Returns
Type Description
CreateFindingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFinding()

public CreateFindingRequest.Builder clearFinding()

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFindingRequest.Builder

clearFindingId()

public CreateFindingRequest.Builder clearFindingId()

Required. Unique identifier provided by the client within the parent scope.

string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFindingRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateFindingRequest.Builder clearParent()

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

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

Returns
Type Description
CreateFindingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFindingRequest getDefaultInstanceForType()
Returns
Type Description
CreateFindingRequest

getDescriptorForType()

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

getFinding()

public Finding getFinding()

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Finding

The finding.

getFindingBuilder()

public Finding.Builder getFindingBuilder()

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Finding.Builder

getFindingId()

public String getFindingId()

Required. Unique identifier provided by the client within the parent scope.

string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The findingId.

getFindingIdBytes()

public ByteString getFindingIdBytes()

Required. Unique identifier provided by the client within the parent scope.

string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for findingId.

getFindingOrBuilder()

public FindingOrBuilder getFindingOrBuilder()

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FindingOrBuilder

getParent()

public String getParent()

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

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

Returns
Type Description
ByteString

The bytes for parent.

hasFinding()

public boolean hasFinding()

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the finding field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFinding(Finding value)

public CreateFindingRequest.Builder mergeFinding(Finding value)

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Finding
Returns
Type Description
CreateFindingRequest.Builder

mergeFrom(CreateFindingRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFinding(Finding value)

public CreateFindingRequest.Builder setFinding(Finding value)

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Finding
Returns
Type Description
CreateFindingRequest.Builder

setFinding(Finding.Builder builderForValue)

public CreateFindingRequest.Builder setFinding(Finding.Builder builderForValue)

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Finding.Builder
Returns
Type Description
CreateFindingRequest.Builder

setFindingId(String value)

public CreateFindingRequest.Builder setFindingId(String value)

Required. Unique identifier provided by the client within the parent scope.

string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The findingId to set.

Returns
Type Description
CreateFindingRequest.Builder

This builder for chaining.

setFindingIdBytes(ByteString value)

public CreateFindingRequest.Builder setFindingIdBytes(ByteString value)

Required. Unique identifier provided by the client within the parent scope.

string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for findingId to set.

Returns
Type Description
CreateFindingRequest.Builder

This builder for chaining.

setParent(String value)

public CreateFindingRequest.Builder setParent(String value)

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateFindingRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateFindingRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

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
CreateFindingRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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