Class AutomationResourceSelector.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomationResourceSelector.Builder>
com.google.cloud.deploy.v1.AutomationResourceSelector.Builder
All Implemented Interfaces:
AutomationResourceSelectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutomationResourceSelector

public static final class AutomationResourceSelector.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutomationResourceSelector.Builder> implements AutomationResourceSelectorOrBuilder
 AutomationResourceSelector contains the information to select the resources
 to which an Automation is going to be applied.
 
Protobuf type google.cloud.deploy.v1.AutomationResourceSelector
  • 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<AutomationResourceSelector.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<AutomationResourceSelector.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<AutomationResourceSelector.Builder>
    • getDefaultInstanceForType

      public AutomationResourceSelector 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

      public AutomationResourceSelector buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AutomationResourceSelector.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<AutomationResourceSelector.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<AutomationResourceSelector.Builder>
    • mergeFrom

      public AutomationResourceSelector.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<AutomationResourceSelector.Builder>
      Throws:
      IOException
    • getTargetsList

      public List<TargetAttribute> getTargetsList()
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetsList in interface AutomationResourceSelectorOrBuilder
    • getTargetsCount

      public int getTargetsCount()
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetsCount in interface AutomationResourceSelectorOrBuilder
    • getTargets

      public TargetAttribute getTargets(int index)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargets in interface AutomationResourceSelectorOrBuilder
    • setTargets

      public AutomationResourceSelector.Builder setTargets(int index, TargetAttribute value)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setTargets

      public AutomationResourceSelector.Builder setTargets(int index, TargetAttribute.Builder builderForValue)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addTargets

       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addTargets

      public AutomationResourceSelector.Builder addTargets(int index, TargetAttribute value)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addTargets

      public AutomationResourceSelector.Builder addTargets(TargetAttribute.Builder builderForValue)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addTargets

      public AutomationResourceSelector.Builder addTargets(int index, TargetAttribute.Builder builderForValue)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllTargets

      public AutomationResourceSelector.Builder addAllTargets(Iterable<? extends TargetAttribute> values)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearTargets

      public AutomationResourceSelector.Builder clearTargets()
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeTargets

      public AutomationResourceSelector.Builder removeTargets(int index)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetsBuilder

      public TargetAttribute.Builder getTargetsBuilder(int index)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetsOrBuilder

      public TargetAttributeOrBuilder getTargetsOrBuilder(int index)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetsOrBuilder in interface AutomationResourceSelectorOrBuilder
    • getTargetsOrBuilderList

      public List<? extends TargetAttributeOrBuilder> getTargetsOrBuilderList()
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetsOrBuilderList in interface AutomationResourceSelectorOrBuilder
    • addTargetsBuilder

      public TargetAttribute.Builder addTargetsBuilder()
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addTargetsBuilder

      public TargetAttribute.Builder addTargetsBuilder(int index)
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetsBuilderList

      public List<TargetAttribute.Builder> getTargetsBuilderList()
       Optional. Contains attributes about a target.
       
      repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];