Class Repository.VulnerabilityScanningConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.Builder
All Implemented Interfaces:
Repository.VulnerabilityScanningConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Repository.VulnerabilityScanningConfig

public static final class Repository.VulnerabilityScanningConfig.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
    • getDefaultInstanceForType

      public Repository.VulnerabilityScanningConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Repository.VulnerabilityScanningConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
    • mergeFrom

      public Repository.VulnerabilityScanningConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Repository.VulnerabilityScanningConfig.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getEnablementConfigValue in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The enum numeric value on the wire for enablementConfig.
    • setEnablementConfigValue

      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];
      Parameters:
      value - The enum numeric value on the wire for enablementConfig to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getEnablementConfig in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The enablementConfig.
    • setEnablementConfig

       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];
      Parameters:
      value - The enablementConfig to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      hasLastEnableTime in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      Whether the lastEnableTime field is set.
    • getLastEnableTime

      public com.google.protobuf.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];
      Specified by:
      getLastEnableTime in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The lastEnableTime.
    • setLastEnableTime

      public Repository.VulnerabilityScanningConfig.Builder setLastEnableTime(com.google.protobuf.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];
    • setLastEnableTime

      public Repository.VulnerabilityScanningConfig.Builder setLastEnableTime(com.google.protobuf.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];
    • mergeLastEnableTime

      public Repository.VulnerabilityScanningConfig.Builder mergeLastEnableTime(com.google.protobuf.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];
    • 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];
    • getLastEnableTimeBuilder

      public com.google.protobuf.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];
    • getLastEnableTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getLastEnableTimeOrBuilder in interface Repository.VulnerabilityScanningConfigOrBuilder
    • 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];
      Specified by:
      getEnablementStateValue in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The enum numeric value on the wire for enablementState.
    • setEnablementStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for enablementState to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getEnablementState in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The enablementState.
    • setEnablementState

       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];
      Parameters:
      value - The enablementState to set.
      Returns:
      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:
      This builder for chaining.
    • getEnablementStateReason

      public String getEnablementStateReason()
       Output only. Reason for the repository state.
       
      string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnablementStateReason in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The enablementStateReason.
    • getEnablementStateReasonBytes

      public com.google.protobuf.ByteString getEnablementStateReasonBytes()
       Output only. Reason for the repository state.
       
      string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnablementStateReasonBytes in interface Repository.VulnerabilityScanningConfigOrBuilder
      Returns:
      The bytes for enablementStateReason.
    • setEnablementStateReason

      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];
      Parameters:
      value - The enablementStateReason to set.
      Returns:
      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:
      This builder for chaining.
    • setEnablementStateReasonBytes

      public Repository.VulnerabilityScanningConfig.Builder setEnablementStateReasonBytes(com.google.protobuf.ByteString value)
       Output only. Reason for the repository state.
       
      string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for enablementStateReason to set.
      Returns:
      This builder for chaining.