public static final class CreateFindingRequest.Builder extends GeneratedMessageV3.Builder<CreateFindingRequest.Builder> implements CreateFindingRequestOrBuilder
Request message for creating a finding.
Protobuf type google.cloud.securitycenter.v1beta1.CreateFindingRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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.v1beta1.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.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
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.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getFindingId()
public String getFindingId()
Required. Unique identifier provided by the client within the parent scope.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
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.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
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.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
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