Class ExportSink.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ExportSink.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ExportSink.Builder>
io.temporal.api.cloud.namespace.v1.ExportSink.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExportSinkOrBuilder, Cloneable
Enclosing class:
ExportSink

public static final class ExportSink.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportSink.Builder> implements ExportSinkOrBuilder
Protobuf type temporal.api.cloud.namespace.v1.ExportSink
  • Method Details

    • 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<ExportSink.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ExportSink.Builder mergeFrom(ExportSink other)
    • isInitialized

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

      public ExportSink.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<ExportSink.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The unique name of the export sink, once set it can't be changed
       
      string name = 1;
      Specified by:
      getName in interface ExportSinkOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique name of the export sink, once set it can't be changed
       
      string name = 1;
      Specified by:
      getNameBytes in interface ExportSinkOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExportSink.Builder setName(String value)
       The unique name of the export sink, once set it can't be changed
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExportSink.Builder clearName()
       The unique name of the export sink, once set it can't be changed
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExportSink.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique name of the export sink, once set it can't be changed
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getResourceVersion

      public String getResourceVersion()
       The version of the export sink resource.
       
      string resource_version = 2;
      Specified by:
      getResourceVersion in interface ExportSinkOrBuilder
      Returns:
      The resourceVersion.
    • getResourceVersionBytes

      public com.google.protobuf.ByteString getResourceVersionBytes()
       The version of the export sink resource.
       
      string resource_version = 2;
      Specified by:
      getResourceVersionBytes in interface ExportSinkOrBuilder
      Returns:
      The bytes for resourceVersion.
    • setResourceVersion

      public ExportSink.Builder setResourceVersion(String value)
       The version of the export sink resource.
       
      string resource_version = 2;
      Parameters:
      value - The resourceVersion to set.
      Returns:
      This builder for chaining.
    • clearResourceVersion

      public ExportSink.Builder clearResourceVersion()
       The version of the export sink resource.
       
      string resource_version = 2;
      Returns:
      This builder for chaining.
    • setResourceVersionBytes

      public ExportSink.Builder setResourceVersionBytes(com.google.protobuf.ByteString value)
       The version of the export sink resource.
       
      string resource_version = 2;
      Parameters:
      value - The bytes for resourceVersion to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The current state of the export sink.
       
      .temporal.api.cloud.resource.v1.ResourceState state = 3;
      Specified by:
      getStateValue in interface ExportSinkOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ExportSink.Builder setStateValue(int value)
       The current state of the export sink.
       
      .temporal.api.cloud.resource.v1.ResourceState state = 3;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ResourceState getState()
       The current state of the export sink.
       
      .temporal.api.cloud.resource.v1.ResourceState state = 3;
      Specified by:
      getState in interface ExportSinkOrBuilder
      Returns:
      The state.
    • setState

      public ExportSink.Builder setState(ResourceState value)
       The current state of the export sink.
       
      .temporal.api.cloud.resource.v1.ResourceState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ExportSink.Builder clearState()
       The current state of the export sink.
       
      .temporal.api.cloud.resource.v1.ResourceState state = 3;
      Returns:
      This builder for chaining.
    • hasSpec

      public boolean hasSpec()
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
      Specified by:
      hasSpec in interface ExportSinkOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public ExportSinkSpec getSpec()
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
      Specified by:
      getSpec in interface ExportSinkOrBuilder
      Returns:
      The spec.
    • setSpec

      public ExportSink.Builder setSpec(ExportSinkSpec value)
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
    • setSpec

      public ExportSink.Builder setSpec(ExportSinkSpec.Builder builderForValue)
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
    • mergeSpec

      public ExportSink.Builder mergeSpec(ExportSinkSpec value)
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
    • clearSpec

      public ExportSink.Builder clearSpec()
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
    • getSpecBuilder

      public ExportSinkSpec.Builder getSpecBuilder()
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
    • getSpecOrBuilder

      public ExportSinkSpecOrBuilder getSpecOrBuilder()
       The specification details of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSinkSpec spec = 4;
      Specified by:
      getSpecOrBuilder in interface ExportSinkOrBuilder
    • getHealthValue

      public int getHealthValue()
       The health status of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSink.Health health = 5;
      Specified by:
      getHealthValue in interface ExportSinkOrBuilder
      Returns:
      The enum numeric value on the wire for health.
    • setHealthValue

      public ExportSink.Builder setHealthValue(int value)
       The health status of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSink.Health health = 5;
      Parameters:
      value - The enum numeric value on the wire for health to set.
      Returns:
      This builder for chaining.
    • getHealth

      public ExportSink.Health getHealth()
       The health status of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSink.Health health = 5;
      Specified by:
      getHealth in interface ExportSinkOrBuilder
      Returns:
      The health.
    • setHealth

      public ExportSink.Builder setHealth(ExportSink.Health value)
       The health status of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSink.Health health = 5;
      Parameters:
      value - The health to set.
      Returns:
      This builder for chaining.
    • clearHealth

      public ExportSink.Builder clearHealth()
       The health status of the export sink.
       
      .temporal.api.cloud.namespace.v1.ExportSink.Health health = 5;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       An error message describing any issues with the export sink, if applicable.
       
      string error_message = 6;
      Specified by:
      getErrorMessage in interface ExportSinkOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       An error message describing any issues with the export sink, if applicable.
       
      string error_message = 6;
      Specified by:
      getErrorMessageBytes in interface ExportSinkOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public ExportSink.Builder setErrorMessage(String value)
       An error message describing any issues with the export sink, if applicable.
       
      string error_message = 6;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public ExportSink.Builder clearErrorMessage()
       An error message describing any issues with the export sink, if applicable.
       
      string error_message = 6;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public ExportSink.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       An error message describing any issues with the export sink, if applicable.
       
      string error_message = 6;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • hasLatestDataExportTime

      public boolean hasLatestDataExportTime()
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
      Specified by:
      hasLatestDataExportTime in interface ExportSinkOrBuilder
      Returns:
      Whether the latestDataExportTime field is set.
    • getLatestDataExportTime

      public com.google.protobuf.Timestamp getLatestDataExportTime()
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
      Specified by:
      getLatestDataExportTime in interface ExportSinkOrBuilder
      Returns:
      The latestDataExportTime.
    • setLatestDataExportTime

      public ExportSink.Builder setLatestDataExportTime(com.google.protobuf.Timestamp value)
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
    • setLatestDataExportTime

      public ExportSink.Builder setLatestDataExportTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
    • mergeLatestDataExportTime

      public ExportSink.Builder mergeLatestDataExportTime(com.google.protobuf.Timestamp value)
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
    • clearLatestDataExportTime

      public ExportSink.Builder clearLatestDataExportTime()
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
    • getLatestDataExportTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLatestDataExportTimeBuilder()
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
    • getLatestDataExportTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLatestDataExportTimeOrBuilder()
       The timestamp of the latest successful data export.
       
      .google.protobuf.Timestamp latest_data_export_time = 7;
      Specified by:
      getLatestDataExportTimeOrBuilder in interface ExportSinkOrBuilder
    • hasLastHealthCheckTime

      public boolean hasLastHealthCheckTime()
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
      Specified by:
      hasLastHealthCheckTime in interface ExportSinkOrBuilder
      Returns:
      Whether the lastHealthCheckTime field is set.
    • getLastHealthCheckTime

      public com.google.protobuf.Timestamp getLastHealthCheckTime()
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
      Specified by:
      getLastHealthCheckTime in interface ExportSinkOrBuilder
      Returns:
      The lastHealthCheckTime.
    • setLastHealthCheckTime

      public ExportSink.Builder setLastHealthCheckTime(com.google.protobuf.Timestamp value)
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
    • setLastHealthCheckTime

      public ExportSink.Builder setLastHealthCheckTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
    • mergeLastHealthCheckTime

      public ExportSink.Builder mergeLastHealthCheckTime(com.google.protobuf.Timestamp value)
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
    • clearLastHealthCheckTime

      public ExportSink.Builder clearLastHealthCheckTime()
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
    • getLastHealthCheckTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastHealthCheckTimeBuilder()
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
    • getLastHealthCheckTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastHealthCheckTimeOrBuilder()
       The timestamp of the last health check performed on the export sink.
       
      .google.protobuf.Timestamp last_health_check_time = 8;
      Specified by:
      getLastHealthCheckTimeOrBuilder in interface ExportSinkOrBuilder
    • setUnknownFields

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

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