Class User.Builder

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

public static final class User.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<User.Builder> implements UserOrBuilder
Protobuf type temporal.api.cloud.identity.v1.User
  • 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<User.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public User.Builder mergeFrom(User other)
    • isInitialized

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

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

      public String getId()
       The id of the user
       
      string id = 1;
      Specified by:
      getId in interface UserOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The id of the user
       
      string id = 1;
      Specified by:
      getIdBytes in interface UserOrBuilder
      Returns:
      The bytes for id.
    • setId

      public User.Builder setId(String value)
       The id of the user
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public User.Builder clearId()
       The id of the user
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public User.Builder setIdBytes(com.google.protobuf.ByteString value)
       The id of the user
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getResourceVersion

      public String getResourceVersion()
       The current version of the user specification
       The next update operation will have to include this version
       
      string resource_version = 2;
      Specified by:
      getResourceVersion in interface UserOrBuilder
      Returns:
      The resourceVersion.
    • getResourceVersionBytes

      public com.google.protobuf.ByteString getResourceVersionBytes()
       The current version of the user specification
       The next update operation will have to include this version
       
      string resource_version = 2;
      Specified by:
      getResourceVersionBytes in interface UserOrBuilder
      Returns:
      The bytes for resourceVersion.
    • setResourceVersion

      public User.Builder setResourceVersion(String value)
       The current version of the user specification
       The next update operation will have to include this version
       
      string resource_version = 2;
      Parameters:
      value - The resourceVersion to set.
      Returns:
      This builder for chaining.
    • clearResourceVersion

      public User.Builder clearResourceVersion()
       The current version of the user specification
       The next update operation will have to include this version
       
      string resource_version = 2;
      Returns:
      This builder for chaining.
    • setResourceVersionBytes

      public User.Builder setResourceVersionBytes(com.google.protobuf.ByteString value)
       The current version of the user specification
       The next update operation will have to include this version
       
      string resource_version = 2;
      Parameters:
      value - The bytes for resourceVersion to set.
      Returns:
      This builder for chaining.
    • hasSpec

      public boolean hasSpec()
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
      Specified by:
      hasSpec in interface UserOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public UserSpec getSpec()
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
      Specified by:
      getSpec in interface UserOrBuilder
      Returns:
      The spec.
    • setSpec

      public User.Builder setSpec(UserSpec value)
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
    • setSpec

      public User.Builder setSpec(UserSpec.Builder builderForValue)
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
    • mergeSpec

      public User.Builder mergeSpec(UserSpec value)
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
    • clearSpec

      public User.Builder clearSpec()
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
    • getSpecBuilder

      public UserSpec.Builder getSpecBuilder()
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
    • getSpecOrBuilder

      public UserSpecOrBuilder getSpecOrBuilder()
       The user specification
       
      .temporal.api.cloud.identity.v1.UserSpec spec = 3;
      Specified by:
      getSpecOrBuilder in interface UserOrBuilder
    • getStateDeprecated

      @Deprecated public String getStateDeprecated()
      Deprecated.
      temporal.api.cloud.identity.v1.User.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=117
       The current state of the user
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 4 [deprecated = true];
      Specified by:
      getStateDeprecated in interface UserOrBuilder
      Returns:
      The stateDeprecated.
    • getStateDeprecatedBytes

      @Deprecated public com.google.protobuf.ByteString getStateDeprecatedBytes()
      Deprecated.
      temporal.api.cloud.identity.v1.User.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=117
       The current state of the user
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 4 [deprecated = true];
      Specified by:
      getStateDeprecatedBytes in interface UserOrBuilder
      Returns:
      The bytes for stateDeprecated.
    • setStateDeprecated

      @Deprecated public User.Builder setStateDeprecated(String value)
      Deprecated.
      temporal.api.cloud.identity.v1.User.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=117
       The current state of the user
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 4 [deprecated = true];
      Parameters:
      value - The stateDeprecated to set.
      Returns:
      This builder for chaining.
    • clearStateDeprecated

      @Deprecated public User.Builder clearStateDeprecated()
      Deprecated.
      temporal.api.cloud.identity.v1.User.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=117
       The current state of the user
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 4 [deprecated = true];
      Returns:
      This builder for chaining.
    • setStateDeprecatedBytes

      @Deprecated public User.Builder setStateDeprecatedBytes(com.google.protobuf.ByteString value)
      Deprecated.
      temporal.api.cloud.identity.v1.User.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=117
       The current state of the user
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 4 [deprecated = true];
      Parameters:
      value - The bytes for stateDeprecated to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The current state of the user.
       For any failed state, reach out to Temporal Cloud support for remediation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.resource.v1.ResourceState state = 9;
      Specified by:
      getStateValue in interface UserOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public User.Builder setStateValue(int value)
       The current state of the user.
       For any failed state, reach out to Temporal Cloud support for remediation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.resource.v1.ResourceState state = 9;
      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 user.
       For any failed state, reach out to Temporal Cloud support for remediation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.resource.v1.ResourceState state = 9;
      Specified by:
      getState in interface UserOrBuilder
      Returns:
      The state.
    • setState

      public User.Builder setState(ResourceState value)
       The current state of the user.
       For any failed state, reach out to Temporal Cloud support for remediation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.resource.v1.ResourceState state = 9;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public User.Builder clearState()
       The current state of the user.
       For any failed state, reach out to Temporal Cloud support for remediation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.resource.v1.ResourceState state = 9;
      Returns:
      This builder for chaining.
    • getAsyncOperationId

      public String getAsyncOperationId()
       The id of the async operation that is creating/updating/deleting the user, if any
       
      string async_operation_id = 5;
      Specified by:
      getAsyncOperationId in interface UserOrBuilder
      Returns:
      The asyncOperationId.
    • getAsyncOperationIdBytes

      public com.google.protobuf.ByteString getAsyncOperationIdBytes()
       The id of the async operation that is creating/updating/deleting the user, if any
       
      string async_operation_id = 5;
      Specified by:
      getAsyncOperationIdBytes in interface UserOrBuilder
      Returns:
      The bytes for asyncOperationId.
    • setAsyncOperationId

      public User.Builder setAsyncOperationId(String value)
       The id of the async operation that is creating/updating/deleting the user, if any
       
      string async_operation_id = 5;
      Parameters:
      value - The asyncOperationId to set.
      Returns:
      This builder for chaining.
    • clearAsyncOperationId

      public User.Builder clearAsyncOperationId()
       The id of the async operation that is creating/updating/deleting the user, if any
       
      string async_operation_id = 5;
      Returns:
      This builder for chaining.
    • setAsyncOperationIdBytes

      public User.Builder setAsyncOperationIdBytes(com.google.protobuf.ByteString value)
       The id of the async operation that is creating/updating/deleting the user, if any
       
      string async_operation_id = 5;
      Parameters:
      value - The bytes for asyncOperationId to set.
      Returns:
      This builder for chaining.
    • hasInvitation

      public boolean hasInvitation()
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
      Specified by:
      hasInvitation in interface UserOrBuilder
      Returns:
      Whether the invitation field is set.
    • getInvitation

      public Invitation getInvitation()
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
      Specified by:
      getInvitation in interface UserOrBuilder
      Returns:
      The invitation.
    • setInvitation

      public User.Builder setInvitation(Invitation value)
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
    • setInvitation

      public User.Builder setInvitation(Invitation.Builder builderForValue)
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
    • mergeInvitation

      public User.Builder mergeInvitation(Invitation value)
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
    • clearInvitation

      public User.Builder clearInvitation()
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
    • getInvitationBuilder

      public Invitation.Builder getInvitationBuilder()
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
    • getInvitationOrBuilder

      public InvitationOrBuilder getInvitationOrBuilder()
       The details of the open invitation sent to the user, if any
       
      .temporal.api.cloud.identity.v1.Invitation invitation = 6;
      Specified by:
      getInvitationOrBuilder in interface UserOrBuilder
    • hasCreatedTime

      public boolean hasCreatedTime()
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
      Specified by:
      hasCreatedTime in interface UserOrBuilder
      Returns:
      Whether the createdTime field is set.
    • getCreatedTime

      public com.google.protobuf.Timestamp getCreatedTime()
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
      Specified by:
      getCreatedTime in interface UserOrBuilder
      Returns:
      The createdTime.
    • setCreatedTime

      public User.Builder setCreatedTime(com.google.protobuf.Timestamp value)
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
    • setCreatedTime

      public User.Builder setCreatedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
    • mergeCreatedTime

      public User.Builder mergeCreatedTime(com.google.protobuf.Timestamp value)
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
    • clearCreatedTime

      public User.Builder clearCreatedTime()
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
    • getCreatedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreatedTimeBuilder()
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
    • getCreatedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedTimeOrBuilder()
       The date and time when the user was created
       
      .google.protobuf.Timestamp created_time = 7;
      Specified by:
      getCreatedTimeOrBuilder in interface UserOrBuilder
    • hasLastModifiedTime

      public boolean hasLastModifiedTime()
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
      Specified by:
      hasLastModifiedTime in interface UserOrBuilder
      Returns:
      Whether the lastModifiedTime field is set.
    • getLastModifiedTime

      public com.google.protobuf.Timestamp getLastModifiedTime()
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
      Specified by:
      getLastModifiedTime in interface UserOrBuilder
      Returns:
      The lastModifiedTime.
    • setLastModifiedTime

      public User.Builder setLastModifiedTime(com.google.protobuf.Timestamp value)
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
    • setLastModifiedTime

      public User.Builder setLastModifiedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
    • mergeLastModifiedTime

      public User.Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value)
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
    • clearLastModifiedTime

      public User.Builder clearLastModifiedTime()
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
    • getLastModifiedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastModifiedTimeBuilder()
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
    • getLastModifiedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder()
       The date and time when the user was last modified
       Will not be set if the user has never been modified
       
      .google.protobuf.Timestamp last_modified_time = 8;
      Specified by:
      getLastModifiedTimeOrBuilder in interface UserOrBuilder
    • setUnknownFields

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

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