Class CreateMuteConfigRequest.Builder (2.54.0)

public static final class CreateMuteConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateMuteConfigRequest.Builder> implements CreateMuteConfigRequestOrBuilder

Request message for creating a mute config.

Protobuf type google.cloud.securitycenter.v1.CreateMuteConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateMuteConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

build()

public CreateMuteConfigRequest build()
Returns
Type Description
CreateMuteConfigRequest

buildPartial()

public CreateMuteConfigRequest buildPartial()
Returns
Type Description
CreateMuteConfigRequest

clear()

public CreateMuteConfigRequest.Builder clear()
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateMuteConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

clearMuteConfig()

public CreateMuteConfigRequest.Builder clearMuteConfig()

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMuteConfigRequest.Builder

clearMuteConfigId()

public CreateMuteConfigRequest.Builder clearMuteConfigId()

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMuteConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateMuteConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

clearParent()

public CreateMuteConfigRequest.Builder clearParent()

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

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

Returns
Type Description
CreateMuteConfigRequest.Builder

This builder for chaining.

clone()

public CreateMuteConfigRequest.Builder clone()
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateMuteConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateMuteConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMuteConfig()

public MuteConfig getMuteConfig()

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MuteConfig

The muteConfig.

getMuteConfigBuilder()

public MuteConfig.Builder getMuteConfigBuilder()

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MuteConfig.Builder

getMuteConfigId()

public String getMuteConfigId()

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The muteConfigId.

getMuteConfigIdBytes()

public ByteString getMuteConfigIdBytes()

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for muteConfigId.

getMuteConfigOrBuilder()

public MuteConfigOrBuilder getMuteConfigOrBuilder()

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MuteConfigOrBuilder

getParent()

public String getParent()

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_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 mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

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

Returns
Type Description
ByteString

The bytes for parent.

hasMuteConfig()

public boolean hasMuteConfig()

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the muteConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMuteConfigRequest other)

public CreateMuteConfigRequest.Builder mergeFrom(CreateMuteConfigRequest other)
Parameter
Name Description
other CreateMuteConfigRequest
Returns
Type Description
CreateMuteConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateMuteConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateMuteConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

mergeMuteConfig(MuteConfig value)

public CreateMuteConfigRequest.Builder mergeMuteConfig(MuteConfig value)

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MuteConfig
Returns
Type Description
CreateMuteConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateMuteConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateMuteConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

setMuteConfig(MuteConfig value)

public CreateMuteConfigRequest.Builder setMuteConfig(MuteConfig value)

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MuteConfig
Returns
Type Description
CreateMuteConfigRequest.Builder

setMuteConfig(MuteConfig.Builder builderForValue)

public CreateMuteConfigRequest.Builder setMuteConfig(MuteConfig.Builder builderForValue)

Required. The mute config being created.

.google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MuteConfig.Builder
Returns
Type Description
CreateMuteConfigRequest.Builder

setMuteConfigId(String value)

public CreateMuteConfigRequest.Builder setMuteConfigId(String value)

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The muteConfigId to set.

Returns
Type Description
CreateMuteConfigRequest.Builder

This builder for chaining.

setMuteConfigIdBytes(ByteString value)

public CreateMuteConfigRequest.Builder setMuteConfigIdBytes(ByteString value)

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for muteConfigId to set.

Returns
Type Description
CreateMuteConfigRequest.Builder

This builder for chaining.

setParent(String value)

public CreateMuteConfigRequest.Builder setParent(String value)

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMuteConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMuteConfigRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_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
Type Description
CreateMuteConfigRequest.Builder

This builder for chaining.

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

public CreateMuteConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateMuteConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateMuteConfigRequest.Builder
Overrides