Class CreateMuteConfigRequest.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMuteConfigRequest build()
Returns
TypeDescription
CreateMuteConfigRequest

buildPartial()

public CreateMuteConfigRequest buildPartial()
Returns
TypeDescription
CreateMuteConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateMuteConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateMuteConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateMuteConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateMuteConfigRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMuteConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateMuteConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the muteConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateMuteConfigRequest other)

public CreateMuteConfigRequest.Builder mergeFrom(CreateMuteConfigRequest other)
Parameter
NameDescription
otherCreateMuteConfigRequest
Returns
TypeDescription
CreateMuteConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateMuteConfigRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMuteConfig
Returns
TypeDescription
CreateMuteConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateMuteConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMuteConfig
Returns
TypeDescription
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
NameDescription
builderForValueMuteConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The muteConfigId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for muteConfigId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateMuteConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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