Class CreateFindingRequest.Builder (2.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFindingRequest build()
Returns
TypeDescription
CreateFindingRequest

buildPartial()

public CreateFindingRequest buildPartial()
Returns
TypeDescription
CreateFindingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateFindingRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateFindingRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFindingRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateFindingRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the finding 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 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
NameDescription
valueFinding
Returns
TypeDescription
CreateFindingRequest.Builder

mergeFrom(CreateFindingRequest other)

public CreateFindingRequest.Builder mergeFrom(CreateFindingRequest other)
Parameter
NameDescription
otherCreateFindingRequest
Returns
TypeDescription
CreateFindingRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The findingId to set.

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

The bytes for findingId to set.

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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