Class 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.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
    implements TargetsPresentConditionOrBuilder
     TargetsPresentCondition contains information on any Targets defined in
     the Delivery Pipeline that do not actually exist.
     
    Protobuf type google.cloud.deploy.v1.TargetsPresentCondition
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TargetsPresentCondition.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • clearField

        public TargetsPresentCondition.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • clearOneof

        public TargetsPresentCondition.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • setRepeatedField

        public TargetsPresentCondition.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • addRepeatedField

        public TargetsPresentCondition.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • setUnknownFields

        public final TargetsPresentCondition.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>
      • mergeUnknownFields

        public final TargetsPresentCondition.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TargetsPresentCondition.Builder>