Class BatchOperationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchOperationMetadata.Builder>
com.google.cloud.talent.v4.BatchOperationMetadata.Builder
All Implemented Interfaces:
BatchOperationMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchOperationMetadata

public static final class BatchOperationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchOperationMetadata.Builder> implements BatchOperationMetadataOrBuilder
 Metadata used for long running operations returned by CTS batch APIs.
 It's used to replace
 [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata].
 
Protobuf type google.cloud.talent.v4.BatchOperationMetadata
  • 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<BatchOperationMetadata.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<BatchOperationMetadata.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<BatchOperationMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public int getStateValue()
       The state of a long running operation.
       
      .google.cloud.talent.v4.BatchOperationMetadata.State state = 1;
      Specified by:
      getStateValue in interface BatchOperationMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public BatchOperationMetadata.Builder setStateValue(int value)
       The state of a long running operation.
       
      .google.cloud.talent.v4.BatchOperationMetadata.State state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public BatchOperationMetadata.State getState()
       The state of a long running operation.
       
      .google.cloud.talent.v4.BatchOperationMetadata.State state = 1;
      Specified by:
      getState in interface BatchOperationMetadataOrBuilder
      Returns:
      The state.
    • setState

       The state of a long running operation.
       
      .google.cloud.talent.v4.BatchOperationMetadata.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public BatchOperationMetadata.Builder clearState()
       The state of a long running operation.
       
      .google.cloud.talent.v4.BatchOperationMetadata.State state = 1;
      Returns:
      This builder for chaining.
    • getStateDescription

      public String getStateDescription()
       More detailed information about operation state.
       
      string state_description = 2;
      Specified by:
      getStateDescription in interface BatchOperationMetadataOrBuilder
      Returns:
      The stateDescription.
    • getStateDescriptionBytes

      public com.google.protobuf.ByteString getStateDescriptionBytes()
       More detailed information about operation state.
       
      string state_description = 2;
      Specified by:
      getStateDescriptionBytes in interface BatchOperationMetadataOrBuilder
      Returns:
      The bytes for stateDescription.
    • setStateDescription

      public BatchOperationMetadata.Builder setStateDescription(String value)
       More detailed information about operation state.
       
      string state_description = 2;
      Parameters:
      value - The stateDescription to set.
      Returns:
      This builder for chaining.
    • clearStateDescription

      public BatchOperationMetadata.Builder clearStateDescription()
       More detailed information about operation state.
       
      string state_description = 2;
      Returns:
      This builder for chaining.
    • setStateDescriptionBytes

      public BatchOperationMetadata.Builder setStateDescriptionBytes(com.google.protobuf.ByteString value)
       More detailed information about operation state.
       
      string state_description = 2;
      Parameters:
      value - The bytes for stateDescription to set.
      Returns:
      This builder for chaining.
    • getSuccessCount

      public int getSuccessCount()
       Count of successful item(s) inside an operation.
       
      int32 success_count = 3;
      Specified by:
      getSuccessCount in interface BatchOperationMetadataOrBuilder
      Returns:
      The successCount.
    • setSuccessCount

      public BatchOperationMetadata.Builder setSuccessCount(int value)
       Count of successful item(s) inside an operation.
       
      int32 success_count = 3;
      Parameters:
      value - The successCount to set.
      Returns:
      This builder for chaining.
    • clearSuccessCount

      public BatchOperationMetadata.Builder clearSuccessCount()
       Count of successful item(s) inside an operation.
       
      int32 success_count = 3;
      Returns:
      This builder for chaining.
    • getFailureCount

      public int getFailureCount()
       Count of failed item(s) inside an operation.
       
      int32 failure_count = 4;
      Specified by:
      getFailureCount in interface BatchOperationMetadataOrBuilder
      Returns:
      The failureCount.
    • setFailureCount

      public BatchOperationMetadata.Builder setFailureCount(int value)
       Count of failed item(s) inside an operation.
       
      int32 failure_count = 4;
      Parameters:
      value - The failureCount to set.
      Returns:
      This builder for chaining.
    • clearFailureCount

      public BatchOperationMetadata.Builder clearFailureCount()
       Count of failed item(s) inside an operation.
       
      int32 failure_count = 4;
      Returns:
      This builder for chaining.
    • getTotalCount

      public int getTotalCount()
       Count of total item(s) inside an operation.
       
      int32 total_count = 5;
      Specified by:
      getTotalCount in interface BatchOperationMetadataOrBuilder
      Returns:
      The totalCount.
    • setTotalCount

      public BatchOperationMetadata.Builder setTotalCount(int value)
       Count of total item(s) inside an operation.
       
      int32 total_count = 5;
      Parameters:
      value - The totalCount to set.
      Returns:
      This builder for chaining.
    • clearTotalCount

      public BatchOperationMetadata.Builder clearTotalCount()
       Count of total item(s) inside an operation.
       
      int32 total_count = 5;
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
      Specified by:
      hasCreateTime in interface BatchOperationMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
      Specified by:
      getCreateTime in interface BatchOperationMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public BatchOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
    • setCreateTime

      public BatchOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
    • mergeCreateTime

      public BatchOperationMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
    • clearCreateTime

      public BatchOperationMetadata.Builder clearCreateTime()
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       The time when the batch operation is created.
       
      .google.protobuf.Timestamp create_time = 6;
      Specified by:
      getCreateTimeOrBuilder in interface BatchOperationMetadataOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
      Specified by:
      hasUpdateTime in interface BatchOperationMetadataOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
      Specified by:
      getUpdateTime in interface BatchOperationMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public BatchOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
    • setUpdateTime

      public BatchOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
    • mergeUpdateTime

      public BatchOperationMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
    • clearUpdateTime

      public BatchOperationMetadata.Builder clearUpdateTime()
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The time when the batch operation status is updated. The metadata and the
       [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is
       refreshed every minute otherwise cached data is returned.
       
      .google.protobuf.Timestamp update_time = 7;
      Specified by:
      getUpdateTimeOrBuilder in interface BatchOperationMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
      Specified by:
      hasEndTime in interface BatchOperationMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
      Specified by:
      getEndTime in interface BatchOperationMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public BatchOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
    • setEndTime

      public BatchOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
    • mergeEndTime

      public BatchOperationMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
    • clearEndTime

      public BatchOperationMetadata.Builder clearEndTime()
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The time when the batch operation is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to `true`.
       
      .google.protobuf.Timestamp end_time = 8;
      Specified by:
      getEndTimeOrBuilder in interface BatchOperationMetadataOrBuilder