Class Event.ExternalResourceInfo.Builder

    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 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<Event.ExternalResourceInfo.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<Event.ExternalResourceInfo.Builder>
      • getDefaultInstanceForType

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

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

        public Event.ExternalResourceInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Event.ExternalResourceInfo.Builder>
      • mergeFrom

        public Event.ExternalResourceInfo.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<Event.ExternalResourceInfo.Builder>
        Throws:
        IOException
      • getExternalId

        public String getExternalId()
         Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
         
        string external_id = 1;
        Specified by:
        getExternalId in interface Event.ExternalResourceInfoOrBuilder
        Returns:
        The externalId.
      • getExternalIdBytes

        public com.google.protobuf.ByteString getExternalIdBytes()
         Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
         
        string external_id = 1;
        Specified by:
        getExternalIdBytes in interface Event.ExternalResourceInfoOrBuilder
        Returns:
        The bytes for externalId.
      • setExternalId

        public Event.ExternalResourceInfo.Builder setExternalId​(String value)
         Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
         
        string external_id = 1;
        Parameters:
        value - The externalId to set.
        Returns:
        This builder for chaining.
      • clearExternalId

        public Event.ExternalResourceInfo.Builder clearExternalId()
         Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
         
        string external_id = 1;
        Returns:
        This builder for chaining.
      • setExternalIdBytes

        public Event.ExternalResourceInfo.Builder setExternalIdBytes​(com.google.protobuf.ByteString value)
         Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
         
        string external_id = 1;
        Parameters:
        value - The bytes for externalId to set.
        Returns:
        This builder for chaining.
      • getIndex

        public int getIndex()
         A unique index for the external resource with respect to all external resources for this task. Although the
         identifier may change between task reporting events or retries, this will remain the same to enable aggregating
         information from multiple reports.
         
        uint32 index = 2;
        Specified by:
        getIndex in interface Event.ExternalResourceInfoOrBuilder
        Returns:
        The index.
      • setIndex

        public Event.ExternalResourceInfo.Builder setIndex​(int value)
         A unique index for the external resource with respect to all external resources for this task. Although the
         identifier may change between task reporting events or retries, this will remain the same to enable aggregating
         information from multiple reports.
         
        uint32 index = 2;
        Parameters:
        value - The index to set.
        Returns:
        This builder for chaining.
      • clearIndex

        public Event.ExternalResourceInfo.Builder clearIndex()
         A unique index for the external resource with respect to all external resources for this task. Although the
         identifier may change between task reporting events or retries, this will remain the same to enable aggregating
         information from multiple reports.
         
        uint32 index = 2;
        Returns:
        This builder for chaining.
      • getRetryAttempt

        public int getRetryAttempt()
         Retry attempt number for this external resource, ie., 2 for the second attempt
         
        uint32 retry_attempt = 3;
        Specified by:
        getRetryAttempt in interface Event.ExternalResourceInfoOrBuilder
        Returns:
        The retryAttempt.
      • setRetryAttempt

        public Event.ExternalResourceInfo.Builder setRetryAttempt​(int value)
         Retry attempt number for this external resource, ie., 2 for the second attempt
         
        uint32 retry_attempt = 3;
        Parameters:
        value - The retryAttempt to set.
        Returns:
        This builder for chaining.
      • clearRetryAttempt

        public Event.ExternalResourceInfo.Builder clearRetryAttempt()
         Retry attempt number for this external resource, ie., 2 for the second attempt
         
        uint32 retry_attempt = 3;
        Returns:
        This builder for chaining.
      • getPhaseValue

        public int getPhaseValue()
         Phase associated with the external resource
         
        .flyteidl.core.TaskExecution.Phase phase = 4;
        Specified by:
        getPhaseValue in interface Event.ExternalResourceInfoOrBuilder
        Returns:
        The enum numeric value on the wire for phase.
      • setPhaseValue

        public Event.ExternalResourceInfo.Builder setPhaseValue​(int value)
         Phase associated with the external resource
         
        .flyteidl.core.TaskExecution.Phase phase = 4;
        Parameters:
        value - The enum numeric value on the wire for phase to set.
        Returns:
        This builder for chaining.
      • clearPhase

        public Event.ExternalResourceInfo.Builder clearPhase()
         Phase associated with the external resource
         
        .flyteidl.core.TaskExecution.Phase phase = 4;
        Returns:
        This builder for chaining.
      • getCacheStatusValue

        public int getCacheStatusValue()
         Captures the status of caching for this external resource execution.
         
        .flyteidl.core.CatalogCacheStatus cache_status = 5;
        Specified by:
        getCacheStatusValue in interface Event.ExternalResourceInfoOrBuilder
        Returns:
        The enum numeric value on the wire for cacheStatus.
      • setCacheStatusValue

        public Event.ExternalResourceInfo.Builder setCacheStatusValue​(int value)
         Captures the status of caching for this external resource execution.
         
        .flyteidl.core.CatalogCacheStatus cache_status = 5;
        Parameters:
        value - The enum numeric value on the wire for cacheStatus to set.
        Returns:
        This builder for chaining.
      • setCacheStatus

        public Event.ExternalResourceInfo.Builder setCacheStatus​(Catalog.CatalogCacheStatus value)
         Captures the status of caching for this external resource execution.
         
        .flyteidl.core.CatalogCacheStatus cache_status = 5;
        Parameters:
        value - The cacheStatus to set.
        Returns:
        This builder for chaining.
      • clearCacheStatus

        public Event.ExternalResourceInfo.Builder clearCacheStatus()
         Captures the status of caching for this external resource execution.
         
        .flyteidl.core.CatalogCacheStatus cache_status = 5;
        Returns:
        This builder for chaining.
      • ensureLogsIsMutable

        private void ensureLogsIsMutable()
      • removeLogs

        public Event.ExternalResourceInfo.Builder removeLogs​(int index)
         log information for the external resource execution
         
        repeated .flyteidl.core.TaskLog logs = 6;
      • getLogsBuilder

        public Execution.TaskLog.Builder getLogsBuilder​(int index)
         log information for the external resource execution
         
        repeated .flyteidl.core.TaskLog logs = 6;
      • addLogsBuilder

        public Execution.TaskLog.Builder addLogsBuilder()
         log information for the external resource execution
         
        repeated .flyteidl.core.TaskLog logs = 6;
      • addLogsBuilder

        public Execution.TaskLog.Builder addLogsBuilder​(int index)
         log information for the external resource execution
         
        repeated .flyteidl.core.TaskLog logs = 6;
      • getLogsBuilderList

        public List<Execution.TaskLog.Builder> getLogsBuilderList()
         log information for the external resource execution
         
        repeated .flyteidl.core.TaskLog logs = 6;
      • setUnknownFields

        public final Event.ExternalResourceInfo.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<Event.ExternalResourceInfo.Builder>
      • mergeUnknownFields

        public final Event.ExternalResourceInfo.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<Event.ExternalResourceInfo.Builder>