Class OperationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.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.GeneratedMessage.Builder<OperationMetadata.Builder> implements OperationMetadataOrBuilder
 Metadata describing an operation.
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public OperationMetadata.Builder mergeFrom(OperationMetadata other)
    • isInitialized

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

      public OperationMetadata.State getState()
       Output only. The current operation state.
       
      .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State state = 1;
      Specified by:
      getState in interface OperationMetadataOrBuilder
      Returns:
      The state.
    • setState

       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.
    • getOperationType

      public OperationMetadata.Type getOperationType()
       Output only. The type of operation being performed.
       
      .google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type operation_type = 2;
      Specified by:
      getOperationType in interface OperationMetadataOrBuilder
      Returns:
      The operationType.
    • 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.
    • getResourceUuid

      public String getResourceUuid()
       Output only. The UUID of the resource being operated on.
       
      string resource_uuid = 4;
      Specified by:
      getResourceUuid in interface OperationMetadataOrBuilder
      Returns:
      The resourceUuid.
    • 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