Class ExportDataMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportDataMetadata.Builder>
com.google.cloud.translate.v3.ExportDataMetadata.Builder
All Implemented Interfaces:
ExportDataMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExportDataMetadata

public static final class ExportDataMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportDataMetadata.Builder> implements ExportDataMetadataOrBuilder
 Metadata of export data operation.
 
Protobuf type google.cloud.translation.v3.ExportDataMetadata
  • 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<ExportDataMetadata.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<ExportDataMetadata.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<ExportDataMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getStateValue()
       The current state of the operation.
       
      .google.cloud.translation.v3.OperationState state = 1;
      Specified by:
      getStateValue in interface ExportDataMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ExportDataMetadata.Builder setStateValue(int value)
       The current state of the operation.
       
      .google.cloud.translation.v3.OperationState state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public OperationState getState()
       The current state of the operation.
       
      .google.cloud.translation.v3.OperationState state = 1;
      Specified by:
      getState in interface ExportDataMetadataOrBuilder
      Returns:
      The state.
    • setState

      public ExportDataMetadata.Builder setState(OperationState value)
       The current state of the operation.
       
      .google.cloud.translation.v3.OperationState state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ExportDataMetadata.Builder clearState()
       The current state of the operation.
       
      .google.cloud.translation.v3.OperationState state = 1;
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      hasCreateTime in interface ExportDataMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      getCreateTime in interface ExportDataMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ExportDataMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
    • setCreateTime

      public ExportDataMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
    • mergeCreateTime

      public ExportDataMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
    • clearCreateTime

      public ExportDataMetadata.Builder clearCreateTime()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      getCreateTimeOrBuilder in interface ExportDataMetadataOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
      Specified by:
      hasUpdateTime in interface ExportDataMetadataOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
      Specified by:
      getUpdateTime in interface ExportDataMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public ExportDataMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
    • setUpdateTime

      public ExportDataMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
    • mergeUpdateTime

      public ExportDataMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
    • clearUpdateTime

      public ExportDataMetadata.Builder clearUpdateTime()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 3;
      Specified by:
      getUpdateTimeOrBuilder in interface ExportDataMetadataOrBuilder
    • hasError

      public boolean hasError()
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
      Specified by:
      hasError in interface ExportDataMetadataOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
      Specified by:
      getError in interface ExportDataMetadataOrBuilder
      Returns:
      The error.
    • setError

      public ExportDataMetadata.Builder setError(Status value)
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
    • setError

      public ExportDataMetadata.Builder setError(Status.Builder builderForValue)
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
    • mergeError

      public ExportDataMetadata.Builder mergeError(Status value)
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
    • clearError

      public ExportDataMetadata.Builder clearError()
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
    • getErrorBuilder

      public Status.Builder getErrorBuilder()
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Only populated when operation doesn't succeed.
       
      .google.rpc.Status error = 4;
      Specified by:
      getErrorOrBuilder in interface ExportDataMetadataOrBuilder