Class Replica.Builder

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

public static final class Replica.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Replica.Builder> implements ReplicaOrBuilder
 temporal:versioning:min_version=v0.13.0
 
Protobuf type temporal.api.cloud.namespace.v1.Replica
  • 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<Replica.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Replica.Builder mergeFrom(Replica other)
    • isInitialized

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

      public Replica.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<Replica.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The id of the replica. This is generated by Temporal after a replica is created.
       
      string id = 1;
      Specified by:
      getId in interface ReplicaOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The id of the replica. This is generated by Temporal after a replica is created.
       
      string id = 1;
      Specified by:
      getIdBytes in interface ReplicaOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Replica.Builder setId(String value)
       The id of the replica. This is generated by Temporal after a replica is created.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Replica.Builder clearId()
       The id of the replica. This is generated by Temporal after a replica is created.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Replica.Builder setIdBytes(com.google.protobuf.ByteString value)
       The id of the replica. This is generated by Temporal after a replica is created.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getIsPrimary

      public boolean getIsPrimary()
       Whether this replica is currently the primary one.
       
      bool is_primary = 2;
      Specified by:
      getIsPrimary in interface ReplicaOrBuilder
      Returns:
      The isPrimary.
    • setIsPrimary

      public Replica.Builder setIsPrimary(boolean value)
       Whether this replica is currently the primary one.
       
      bool is_primary = 2;
      Parameters:
      value - The isPrimary to set.
      Returns:
      This builder for chaining.
    • clearIsPrimary

      public Replica.Builder clearIsPrimary()
       Whether this replica is currently the primary one.
       
      bool is_primary = 2;
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The current state of this replica.
       
      .temporal.api.cloud.namespace.v1.Replica.ReplicaState state = 3;
      Specified by:
      getStateValue in interface ReplicaOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Replica.Builder setStateValue(int value)
       The current state of this replica.
       
      .temporal.api.cloud.namespace.v1.Replica.ReplicaState state = 3;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Replica.ReplicaState getState()
       The current state of this replica.
       
      .temporal.api.cloud.namespace.v1.Replica.ReplicaState state = 3;
      Specified by:
      getState in interface ReplicaOrBuilder
      Returns:
      The state.
    • setState

      public Replica.Builder setState(Replica.ReplicaState value)
       The current state of this replica.
       
      .temporal.api.cloud.namespace.v1.Replica.ReplicaState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Replica.Builder clearState()
       The current state of this replica.
       
      .temporal.api.cloud.namespace.v1.Replica.ReplicaState state = 3;
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       The cloud provider and region of this replica.
       
      string region = 4;
      Specified by:
      getRegion in interface ReplicaOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       The cloud provider and region of this replica.
       
      string region = 4;
      Specified by:
      getRegionBytes in interface ReplicaOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public Replica.Builder setRegion(String value)
       The cloud provider and region of this replica.
       
      string region = 4;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public Replica.Builder clearRegion()
       The cloud provider and region of this replica.
       
      string region = 4;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public Replica.Builder setRegionBytes(com.google.protobuf.ByteString value)
       The cloud provider and region of this replica.
       
      string region = 4;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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