Class Metadata.Builder

  • All Implemented Interfaces:
    MetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Metadata

    public static final class Metadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
    implements MetadataOrBuilder
     Carries information about the pipeline execution that is returned
     in the long running operation's metadata field.
     
    Protobuf type google.cloud.lifesciences.v2beta.Metadata
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • internalGetFieldAccessorTable

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

        public Metadata.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<Metadata.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<Metadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public Metadata.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<Metadata.Builder>
      • setField

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

        public Metadata.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<Metadata.Builder>
      • clearOneof

        public Metadata.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<Metadata.Builder>
      • setRepeatedField

        public Metadata.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<Metadata.Builder>
      • addRepeatedField

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

        public Metadata.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<Metadata.Builder>
      • isInitialized

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

        public Metadata.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<Metadata.Builder>
        Throws:
        IOException
      • hasPipeline

        public boolean hasPipeline()
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
        Specified by:
        hasPipeline in interface MetadataOrBuilder
        Returns:
        Whether the pipeline field is set.
      • getPipeline

        public Pipeline getPipeline()
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
        Specified by:
        getPipeline in interface MetadataOrBuilder
        Returns:
        The pipeline.
      • setPipeline

        public Metadata.Builder setPipeline​(Pipeline value)
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
      • setPipeline

        public Metadata.Builder setPipeline​(Pipeline.Builder builderForValue)
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
      • mergePipeline

        public Metadata.Builder mergePipeline​(Pipeline value)
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
      • clearPipeline

        public Metadata.Builder clearPipeline()
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
      • getPipelineBuilder

        public Pipeline.Builder getPipelineBuilder()
         The pipeline this operation represents.
         
        .google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: MetadataOrBuilder
         The user-defined labels associated with this operation.
         
        map<string, string> labels = 2;
        Specified by:
        getLabelsCount in interface MetadataOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         The user-defined labels associated with this operation.
         
        map<string, string> labels = 2;
        Specified by:
        containsLabels in interface MetadataOrBuilder
      • removeLabels

        public Metadata.Builder removeLabels​(String key)
         The user-defined labels associated with this operation.
         
        map<string, string> labels = 2;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Metadata.Builder putLabels​(String key,
                                          String value)
         The user-defined labels associated with this operation.
         
        map<string, string> labels = 2;
      • putAllLabels

        public Metadata.Builder putAllLabels​(Map<String,​String> values)
         The user-defined labels associated with this operation.
         
        map<string, string> labels = 2;
      • getEventsList

        public List<Event> getEventsList()
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
        Specified by:
        getEventsList in interface MetadataOrBuilder
      • getEventsCount

        public int getEventsCount()
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
        Specified by:
        getEventsCount in interface MetadataOrBuilder
      • getEvents

        public Event getEvents​(int index)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
        Specified by:
        getEvents in interface MetadataOrBuilder
      • setEvents

        public Metadata.Builder setEvents​(int index,
                                          Event value)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • setEvents

        public Metadata.Builder setEvents​(int index,
                                          Event.Builder builderForValue)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • addEvents

        public Metadata.Builder addEvents​(Event value)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • addEvents

        public Metadata.Builder addEvents​(int index,
                                          Event value)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • addEvents

        public Metadata.Builder addEvents​(Event.Builder builderForValue)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • addEvents

        public Metadata.Builder addEvents​(int index,
                                          Event.Builder builderForValue)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • addAllEvents

        public Metadata.Builder addAllEvents​(Iterable<? extends Event> values)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • clearEvents

        public Metadata.Builder clearEvents()
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • removeEvents

        public Metadata.Builder removeEvents​(int index)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • getEventsBuilder

        public Event.Builder getEventsBuilder​(int index)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • getEventsOrBuilder

        public EventOrBuilder getEventsOrBuilder​(int index)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
        Specified by:
        getEventsOrBuilder in interface MetadataOrBuilder
      • getEventsOrBuilderList

        public List<? extends EventOrBuilder> getEventsOrBuilderList()
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
        Specified by:
        getEventsOrBuilderList in interface MetadataOrBuilder
      • addEventsBuilder

        public Event.Builder addEventsBuilder()
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • addEventsBuilder

        public Event.Builder addEventsBuilder​(int index)
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • getEventsBuilderList

        public List<Event.Builder> getEventsBuilderList()
         The list of events that have happened so far during the execution of this
         operation.
         
        repeated .google.cloud.lifesciences.v2beta.Event events = 3;
      • hasCreateTime

        public boolean hasCreateTime()
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
        Specified by:
        hasCreateTime in interface MetadataOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
        Specified by:
        getCreateTime in interface MetadataOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Metadata.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
      • setCreateTime

        public Metadata.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
      • mergeCreateTime

        public Metadata.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
      • clearCreateTime

        public Metadata.Builder clearCreateTime()
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The time at which the operation was created by the API.
         
        .google.protobuf.Timestamp create_time = 4;
        Specified by:
        getCreateTimeOrBuilder in interface MetadataOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
        Specified by:
        hasStartTime in interface MetadataOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
        Specified by:
        getStartTime in interface MetadataOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public Metadata.Builder setStartTime​(com.google.protobuf.Timestamp value)
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
      • setStartTime

        public Metadata.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
      • mergeStartTime

        public Metadata.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
      • clearStartTime

        public Metadata.Builder clearStartTime()
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         The first time at which resources were allocated to execute the pipeline.
         
        .google.protobuf.Timestamp start_time = 5;
        Specified by:
        getStartTimeOrBuilder in interface MetadataOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        hasEndTime in interface MetadataOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        getEndTime in interface MetadataOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public Metadata.Builder setEndTime​(com.google.protobuf.Timestamp value)
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
      • setEndTime

        public Metadata.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
      • mergeEndTime

        public Metadata.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
      • clearEndTime

        public Metadata.Builder clearEndTime()
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         The time at which execution was completed and resources were cleaned up.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        getEndTimeOrBuilder in interface MetadataOrBuilder
      • getPubSubTopic

        public String getPubSubTopic()
         The name of the Cloud Pub/Sub topic where notifications of operation status
         changes are sent.
         
        string pub_sub_topic = 7;
        Specified by:
        getPubSubTopic in interface MetadataOrBuilder
        Returns:
        The pubSubTopic.
      • getPubSubTopicBytes

        public com.google.protobuf.ByteString getPubSubTopicBytes()
         The name of the Cloud Pub/Sub topic where notifications of operation status
         changes are sent.
         
        string pub_sub_topic = 7;
        Specified by:
        getPubSubTopicBytes in interface MetadataOrBuilder
        Returns:
        The bytes for pubSubTopic.
      • setPubSubTopic

        public Metadata.Builder setPubSubTopic​(String value)
         The name of the Cloud Pub/Sub topic where notifications of operation status
         changes are sent.
         
        string pub_sub_topic = 7;
        Parameters:
        value - The pubSubTopic to set.
        Returns:
        This builder for chaining.
      • clearPubSubTopic

        public Metadata.Builder clearPubSubTopic()
         The name of the Cloud Pub/Sub topic where notifications of operation status
         changes are sent.
         
        string pub_sub_topic = 7;
        Returns:
        This builder for chaining.
      • setPubSubTopicBytes

        public Metadata.Builder setPubSubTopicBytes​(com.google.protobuf.ByteString value)
         The name of the Cloud Pub/Sub topic where notifications of operation status
         changes are sent.
         
        string pub_sub_topic = 7;
        Parameters:
        value - The bytes for pubSubTopic to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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