public static final class CreateFindingRequest.Builder extends GeneratedMessageV3.Builder<CreateFindingRequest.Builder> implements CreateFindingRequestOrBuilder
Request message for creating a finding.
Protobuf type google.cloud.securitycenter.v1.CreateFindingRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateFindingRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateFindingRequest build()
buildPartial()
public CreateFindingRequest buildPartial()
clear()
public CreateFindingRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateFindingRequest.Builder clearField(Descriptors.FieldDescriptor field)
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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateFindingRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateFindingRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateFindingRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1.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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
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 |
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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the finding field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Finding
|
mergeFrom(CreateFindingRequest other)
public CreateFindingRequest.Builder mergeFrom(CreateFindingRequest other)
public CreateFindingRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateFindingRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateFindingRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateFindingRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Finding
|
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.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateFindingRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateFindingRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides