Class TargetsPresentCondition.Builder

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

public static final class TargetsPresentCondition.Builder extends com.google.protobuf.GeneratedMessage.Builder<TargetsPresentCondition.Builder> implements TargetsPresentConditionOrBuilder
 `TargetsPresentCondition` contains information on any Targets referenced in
 the Delivery Pipeline that do not actually exist.
 
Protobuf type google.cloud.deploy.v1.TargetsPresentCondition
  • 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<TargetsPresentCondition.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<TargetsPresentCondition.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<TargetsPresentCondition.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TargetsPresentCondition.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<TargetsPresentCondition.Builder>
      Throws:
      IOException
    • getStatus

      public boolean getStatus()
       True if there aren't any missing Targets.
       
      bool status = 1;
      Specified by:
      getStatus in interface TargetsPresentConditionOrBuilder
      Returns:
      The status.
    • setStatus

      public TargetsPresentCondition.Builder setStatus(boolean value)
       True if there aren't any missing Targets.
       
      bool status = 1;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public TargetsPresentCondition.Builder clearStatus()
       True if there aren't any missing Targets.
       
      bool status = 1;
      Returns:
      This builder for chaining.
    • getMissingTargetsList

      public com.google.protobuf.ProtocolStringList getMissingTargetsList()
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getMissingTargetsList in interface TargetsPresentConditionOrBuilder
      Returns:
      A list containing the missingTargets.
    • getMissingTargetsCount

      public int getMissingTargetsCount()
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getMissingTargetsCount in interface TargetsPresentConditionOrBuilder
      Returns:
      The count of missingTargets.
    • getMissingTargets

      public String getMissingTargets(int index)
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getMissingTargets in interface TargetsPresentConditionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The missingTargets at the given index.
    • getMissingTargetsBytes

      public com.google.protobuf.ByteString getMissingTargetsBytes(int index)
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getMissingTargetsBytes in interface TargetsPresentConditionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the missingTargets at the given index.
    • setMissingTargets

      public TargetsPresentCondition.Builder setMissingTargets(int index, String value)
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The missingTargets to set.
      Returns:
      This builder for chaining.
    • addMissingTargets

      public TargetsPresentCondition.Builder addMissingTargets(String value)
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The missingTargets to add.
      Returns:
      This builder for chaining.
    • addAllMissingTargets

      public TargetsPresentCondition.Builder addAllMissingTargets(Iterable<String> values)
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The missingTargets to add.
      Returns:
      This builder for chaining.
    • clearMissingTargets

      public TargetsPresentCondition.Builder clearMissingTargets()
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addMissingTargetsBytes

      public TargetsPresentCondition.Builder addMissingTargetsBytes(com.google.protobuf.ByteString value)
       The list of Target names that do not exist. For example,
       `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
       
      repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the missingTargets to add.
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      hasUpdateTime in interface TargetsPresentConditionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      getUpdateTime in interface TargetsPresentConditionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public TargetsPresentCondition.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • setUpdateTime

      public TargetsPresentCondition.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • mergeUpdateTime

      public TargetsPresentCondition.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • clearUpdateTime

      public TargetsPresentCondition.Builder clearUpdateTime()
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Last time the condition was updated.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      getUpdateTimeOrBuilder in interface TargetsPresentConditionOrBuilder