Class CreateFindingRequest.Builder (2.6.0)
Version 2.6.0keyboard_arrow_down
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateFindingRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateFindingRequest build ()
Returns
buildPartial()
public CreateFindingRequest buildPartial ()
Returns
clear()
public CreateFindingRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateFindingRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateFindingRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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
clone()
public CreateFindingRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateFindingRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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
Returns
mergeFrom(CreateFindingRequest other)
public CreateFindingRequest . Builder mergeFrom ( CreateFindingRequest other )
Parameter
Returns
public CreateFindingRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateFindingRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateFindingRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateFindingRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Returns
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
Returns
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
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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateFindingRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateFindingRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]