Class Repository.VulnerabilityScanningConfig.Builder (1.54.0)

public static final class Repository.VulnerabilityScanningConfig.Builder extends GeneratedMessageV3.Builder<Repository.VulnerabilityScanningConfig.Builder> implements Repository.VulnerabilityScanningConfigOrBuilder

Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.

Protobuf type google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Repository.VulnerabilityScanningConfig build()
Returns
Type Description
Repository.VulnerabilityScanningConfig

buildPartial()

public Repository.VulnerabilityScanningConfig buildPartial()
Returns
Type Description
Repository.VulnerabilityScanningConfig

clear()

public Repository.VulnerabilityScanningConfig.Builder clear()
Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder
Overrides

clearEnablementConfig()

public Repository.VulnerabilityScanningConfig.Builder clearEnablementConfig()

Optional. Config for whether this repository has vulnerability scanning disabled.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

clearEnablementState()

public Repository.VulnerabilityScanningConfig.Builder clearEnablementState()

Output only. State of feature enablement, combining repository enablement config and API enablement state.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

clearEnablementStateReason()

public Repository.VulnerabilityScanningConfig.Builder clearEnablementStateReason()

Output only. Reason for the repository state.

string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLastEnableTime()

public Repository.VulnerabilityScanningConfig.Builder clearLastEnableTime()

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Repository.VulnerabilityScanningConfig.Builder clone()
Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder
Overrides

getDefaultInstanceForType()

public Repository.VulnerabilityScanningConfig getDefaultInstanceForType()
Returns
Type Description
Repository.VulnerabilityScanningConfig

getDescriptorForType()

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

getEnablementConfig()

public Repository.VulnerabilityScanningConfig.EnablementConfig getEnablementConfig()

Optional. Config for whether this repository has vulnerability scanning disabled.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.VulnerabilityScanningConfig.EnablementConfig

The enablementConfig.

getEnablementConfigValue()

public int getEnablementConfigValue()

Optional. Config for whether this repository has vulnerability scanning disabled.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for enablementConfig.

getEnablementState()

public Repository.VulnerabilityScanningConfig.EnablementState getEnablementState()

Output only. State of feature enablement, combining repository enablement config and API enablement state.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.VulnerabilityScanningConfig.EnablementState

The enablementState.

getEnablementStateReason()

public String getEnablementStateReason()

Output only. Reason for the repository state.

string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The enablementStateReason.

getEnablementStateReasonBytes()

public ByteString getEnablementStateReasonBytes()

Output only. Reason for the repository state.

string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for enablementStateReason.

getEnablementStateValue()

public int getEnablementStateValue()

Output only. State of feature enablement, combining repository enablement config and API enablement state.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for enablementState.

getLastEnableTime()

public Timestamp getLastEnableTime()

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastEnableTime.

getLastEnableTimeBuilder()

public Timestamp.Builder getLastEnableTimeBuilder()

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastEnableTimeOrBuilder()

public TimestampOrBuilder getLastEnableTimeOrBuilder()

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasLastEnableTime()

public boolean hasLastEnableTime()

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastEnableTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Repository.VulnerabilityScanningConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastEnableTime(Timestamp value)

public Repository.VulnerabilityScanningConfig.Builder mergeLastEnableTime(Timestamp value)

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnablementConfig(Repository.VulnerabilityScanningConfig.EnablementConfig value)

public Repository.VulnerabilityScanningConfig.Builder setEnablementConfig(Repository.VulnerabilityScanningConfig.EnablementConfig value)

Optional. Config for whether this repository has vulnerability scanning disabled.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.VulnerabilityScanningConfig.EnablementConfig

The enablementConfig to set.

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

setEnablementConfigValue(int value)

public Repository.VulnerabilityScanningConfig.Builder setEnablementConfigValue(int value)

Optional. Config for whether this repository has vulnerability scanning disabled.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for enablementConfig to set.

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

setEnablementState(Repository.VulnerabilityScanningConfig.EnablementState value)

public Repository.VulnerabilityScanningConfig.Builder setEnablementState(Repository.VulnerabilityScanningConfig.EnablementState value)

Output only. State of feature enablement, combining repository enablement config and API enablement state.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Repository.VulnerabilityScanningConfig.EnablementState

The enablementState to set.

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

setEnablementStateReason(String value)

public Repository.VulnerabilityScanningConfig.Builder setEnablementStateReason(String value)

Output only. Reason for the repository state.

string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The enablementStateReason to set.

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

setEnablementStateReasonBytes(ByteString value)

public Repository.VulnerabilityScanningConfig.Builder setEnablementStateReasonBytes(ByteString value)

Output only. Reason for the repository state.

string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for enablementStateReason to set.

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

setEnablementStateValue(int value)

public Repository.VulnerabilityScanningConfig.Builder setEnablementStateValue(int value)

Output only. State of feature enablement, combining repository enablement config and API enablement state.

.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for enablementState to set.

Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastEnableTime(Timestamp value)

public Repository.VulnerabilityScanningConfig.Builder setLastEnableTime(Timestamp value)

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

setLastEnableTime(Timestamp.Builder builderForValue)

public Repository.VulnerabilityScanningConfig.Builder setLastEnableTime(Timestamp.Builder builderForValue)

Output only. The last time this repository config was enabled.

.google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.VulnerabilityScanningConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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