Class OperationMetadata.Builder

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

    public static final class OperationMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
    implements OperationMetadataOrBuilder
     Metadata describing an operation.
     
    Protobuf type google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata
    • 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<OperationMetadata.Builder>
      • clear

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

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

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

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

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

        public OperationMetadata.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<OperationMetadata.Builder>
      • clearField

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

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

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

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

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

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

        public OperationMetadata.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<OperationMetadata.Builder>
        Throws:
        IOException
      • getStateValue

        public int getStateValue()
         Output only. The current operation state.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State state = 1;
        Specified by:
        getStateValue in interface OperationMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public OperationMetadata.Builder setStateValue​(int value)
         Output only. The current operation state.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State state = 1;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • setState

        public OperationMetadata.Builder setState​(OperationMetadata.State value)
         Output only. The current operation state.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State state = 1;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public OperationMetadata.Builder clearState()
         Output only. The current operation state.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State state = 1;
        Returns:
        This builder for chaining.
      • getOperationTypeValue

        public int getOperationTypeValue()
         Output only. The type of operation being performed.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type operation_type = 2;
        Specified by:
        getOperationTypeValue in interface OperationMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for operationType.
      • setOperationTypeValue

        public OperationMetadata.Builder setOperationTypeValue​(int value)
         Output only. The type of operation being performed.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type operation_type = 2;
        Parameters:
        value - The enum numeric value on the wire for operationType to set.
        Returns:
        This builder for chaining.
      • setOperationType

        public OperationMetadata.Builder setOperationType​(OperationMetadata.Type value)
         Output only. The type of operation being performed.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type operation_type = 2;
        Parameters:
        value - The operationType to set.
        Returns:
        This builder for chaining.
      • clearOperationType

        public OperationMetadata.Builder clearOperationType()
         Output only. The type of operation being performed.
         
        .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type operation_type = 2;
        Returns:
        This builder for chaining.
      • getResource

        public String getResource()
         Output only. The resource being operated on, as a [relative resource name](
         /apis/design/resource_names#relative_resource_name).
         
        string resource = 3;
        Specified by:
        getResource in interface OperationMetadataOrBuilder
        Returns:
        The resource.
      • getResourceBytes

        public com.google.protobuf.ByteString getResourceBytes()
         Output only. The resource being operated on, as a [relative resource name](
         /apis/design/resource_names#relative_resource_name).
         
        string resource = 3;
        Specified by:
        getResourceBytes in interface OperationMetadataOrBuilder
        Returns:
        The bytes for resource.
      • setResource

        public OperationMetadata.Builder setResource​(String value)
         Output only. The resource being operated on, as a [relative resource name](
         /apis/design/resource_names#relative_resource_name).
         
        string resource = 3;
        Parameters:
        value - The resource to set.
        Returns:
        This builder for chaining.
      • clearResource

        public OperationMetadata.Builder clearResource()
         Output only. The resource being operated on, as a [relative resource name](
         /apis/design/resource_names#relative_resource_name).
         
        string resource = 3;
        Returns:
        This builder for chaining.
      • setResourceBytes

        public OperationMetadata.Builder setResourceBytes​(com.google.protobuf.ByteString value)
         Output only. The resource being operated on, as a [relative resource name](
         /apis/design/resource_names#relative_resource_name).
         
        string resource = 3;
        Parameters:
        value - The bytes for resource to set.
        Returns:
        This builder for chaining.
      • getResourceUuidBytes

        public com.google.protobuf.ByteString getResourceUuidBytes()
         Output only. The UUID of the resource being operated on.
         
        string resource_uuid = 4;
        Specified by:
        getResourceUuidBytes in interface OperationMetadataOrBuilder
        Returns:
        The bytes for resourceUuid.
      • setResourceUuid

        public OperationMetadata.Builder setResourceUuid​(String value)
         Output only. The UUID of the resource being operated on.
         
        string resource_uuid = 4;
        Parameters:
        value - The resourceUuid to set.
        Returns:
        This builder for chaining.
      • clearResourceUuid

        public OperationMetadata.Builder clearResourceUuid()
         Output only. The UUID of the resource being operated on.
         
        string resource_uuid = 4;
        Returns:
        This builder for chaining.
      • setResourceUuidBytes

        public OperationMetadata.Builder setResourceUuidBytes​(com.google.protobuf.ByteString value)
         Output only. The UUID of the resource being operated on.
         
        string resource_uuid = 4;
        Parameters:
        value - The bytes for resourceUuid to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        hasCreateTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        getCreateTime in interface OperationMetadataOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public OperationMetadata.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
      • setCreateTime

        public OperationMetadata.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
      • mergeCreateTime

        public OperationMetadata.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
      • clearCreateTime

        public OperationMetadata.Builder clearCreateTime()
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time the operation was submitted to the server.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        getCreateTimeOrBuilder in interface OperationMetadataOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        hasEndTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        getEndTime in interface OperationMetadataOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public OperationMetadata.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
      • setEndTime

        public OperationMetadata.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
      • mergeEndTime

        public OperationMetadata.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
      • clearEndTime

        public OperationMetadata.Builder clearEndTime()
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Output only. The time when the operation terminated, regardless of its
         success. This field is unset if the operation is still ongoing.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        getEndTimeOrBuilder in interface OperationMetadataOrBuilder
      • setUnknownFields

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

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