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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateMuteConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateMuteConfigRequest build()
Returns
buildPartial()
public CreateMuteConfigRequest buildPartial()
Returns
clear()
public CreateMuteConfigRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateMuteConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearMuteConfigId()
public CreateMuteConfigRequest.Builder clearMuteConfigId()
Required. Unique identifier provided by the client within the parent scope.
It must consist of lower case letters, numbers, and hyphen, with the first
character a letter, the last a letter or a number, and a 63 character
maximum.
string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateMuteConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateMuteConfigRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateMuteConfigRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
getMuteConfigId()
public String getMuteConfigId()
Required. Unique identifier provided by the client within the parent scope.
It must consist of lower case letters, numbers, and hyphen, with the first
character a letter, the last a letter or a number, and a 63 character
maximum.
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 lower case letters, numbers, and hyphen, with the first
character a letter, the last a letter or a number, and a 63 character
maximum.
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateMuteConfigRequest other)
public CreateMuteConfigRequest.Builder mergeFrom(CreateMuteConfigRequest other)
Parameter
Returns
public CreateMuteConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateMuteConfigRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateMuteConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateMuteConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setMuteConfigId(String value)
public CreateMuteConfigRequest.Builder setMuteConfigId(String value)
Required. Unique identifier provided by the client within the parent scope.
It must consist of lower case letters, numbers, and hyphen, with the first
character a letter, the last a letter or a number, and a 63 character
maximum.
string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The muteConfigId to set.
|
Returns
setMuteConfigIdBytes(ByteString value)
public CreateMuteConfigRequest.Builder setMuteConfigIdBytes(ByteString value)
Required. Unique identifier provided by the client within the parent scope.
It must consist of lower case letters, numbers, and hyphen, with the first
character a letter, the last a letter or a number, and a 63 character
maximum.
string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for muteConfigId to set.
|
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateMuteConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateMuteConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides