Class CreateResourceValueConfigRequest.Builder (2.45.0)

public static final class CreateResourceValueConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateResourceValueConfigRequest.Builder> implements CreateResourceValueConfigRequestOrBuilder

Request message to create single resource value config

Protobuf type google.cloud.securitycenter.v2.CreateResourceValueConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateResourceValueConfigRequest build()
Returns
TypeDescription
CreateResourceValueConfigRequest

buildPartial()

public CreateResourceValueConfigRequest buildPartial()
Returns
TypeDescription
CreateResourceValueConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateResourceValueConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateResourceValueConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder
Overrides

clearParent()

public CreateResourceValueConfigRequest.Builder clearParent()

Required. Resource name of the new ResourceValueConfig's parent.

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

Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

This builder for chaining.

clearResourceValueConfig()

public CreateResourceValueConfigRequest.Builder clearResourceValueConfig()

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateResourceValueConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateResourceValueConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Resource name of the new ResourceValueConfig's parent.

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 ResourceValueConfig's parent.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getResourceValueConfig()

public ResourceValueConfig getResourceValueConfig()

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ResourceValueConfig

The resourceValueConfig.

getResourceValueConfigBuilder()

public ResourceValueConfig.Builder getResourceValueConfigBuilder()

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ResourceValueConfig.Builder

getResourceValueConfigOrBuilder()

public ResourceValueConfigOrBuilder getResourceValueConfigOrBuilder()

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ResourceValueConfigOrBuilder

hasResourceValueConfig()

public boolean hasResourceValueConfig()

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the resourceValueConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateResourceValueConfigRequest other)

public CreateResourceValueConfigRequest.Builder mergeFrom(CreateResourceValueConfigRequest other)
Parameter
NameDescription
otherCreateResourceValueConfigRequest
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceValueConfig(ResourceValueConfig value)

public CreateResourceValueConfigRequest.Builder mergeResourceValueConfig(ResourceValueConfig value)

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueResourceValueConfig
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateResourceValueConfigRequest.Builder setParent(String value)

Required. Resource name of the new ResourceValueConfig's parent.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateResourceValueConfigRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the new ResourceValueConfig's parent.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

This builder for chaining.

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

public CreateResourceValueConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder
Overrides

setResourceValueConfig(ResourceValueConfig value)

public CreateResourceValueConfigRequest.Builder setResourceValueConfig(ResourceValueConfig value)

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueResourceValueConfig
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

setResourceValueConfig(ResourceValueConfig.Builder builderForValue)

public CreateResourceValueConfigRequest.Builder setResourceValueConfig(ResourceValueConfig.Builder builderForValue)

Required. The resource value config being created.

.google.cloud.securitycenter.v2.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueResourceValueConfig.Builder
Returns
TypeDescription
CreateResourceValueConfigRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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