public static final class SetMuteRequest.Builder extends GeneratedMessageV3.Builder<SetMuteRequest.Builder> implements SetMuteRequestOrBuilder
Request message for updating a finding's mute status.
Protobuf type google.cloud.securitycenter.v2.SetMuteRequest
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 SetMuteRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SetMuteRequest build()
buildPartial()
public SetMuteRequest buildPartial()
clear()
public SetMuteRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SetMuteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMute()
public SetMuteRequest.Builder clearMute()
Required. The desired state of the Mute.
.google.cloud.securitycenter.v2.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];
clearName()
public SetMuteRequest.Builder clearName()
Required. The relative resource
name
of the finding. If no location is specified, finding is assumed to be in
global. The following list shows some examples:
+
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
+
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
+
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public SetMuteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SetMuteRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public SetMuteRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMute()
public Finding.Mute getMute()
Required. The desired state of the Mute.
.google.cloud.securitycenter.v2.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];
getMuteValue()
public int getMuteValue()
Required. The desired state of the Mute.
.google.cloud.securitycenter.v2.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for mute.
|
getName()
Required. The relative resource
name
of the finding. If no location is specified, finding is assumed to be in
global. The following list shows some examples:
+
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
+
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
+
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The relative resource
name
of the finding. If no location is specified, finding is assumed to be in
global. The following list shows some examples:
+
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
+
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
+
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SetMuteRequest other)
public SetMuteRequest.Builder mergeFrom(SetMuteRequest other)
public SetMuteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SetMuteRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SetMuteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SetMuteRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMute(Finding.Mute value)
public SetMuteRequest.Builder setMute(Finding.Mute value)
Required. The desired state of the Mute.
.google.cloud.securitycenter.v2.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];
setMuteValue(int value)
public SetMuteRequest.Builder setMuteValue(int value)
Required. The desired state of the Mute.
.google.cloud.securitycenter.v2.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for mute to set.
|
setName(String value)
public SetMuteRequest.Builder setName(String value)
Required. The relative resource
name
of the finding. If no location is specified, finding is assumed to be in
global. The following list shows some examples:
+
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
+
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
+
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | String
The name to set.
|
setNameBytes(ByteString value)
public SetMuteRequest.Builder setNameBytes(ByteString value)
Required. The relative resource
name
of the finding. If no location is specified, finding is assumed to be in
global. The following list shows some examples:
+
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
+
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
+
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SetMuteRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SetMuteRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides