Class ServiceAccount.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

      public ServiceAccount.Builder mergeFrom(ServiceAccount other)
    • isInitialized

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

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

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

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

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

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

      public ServiceAccount.Builder setIdBytes(com.google.protobuf.ByteString value)
       The id of the service account.
       
      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 service account specification.
       The next update operation will have to include this version.
       
      string resource_version = 2;
      Specified by:
      getResourceVersion in interface ServiceAccountOrBuilder
      Returns:
      The resourceVersion.
    • getResourceVersionBytes

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

      public ServiceAccount.Builder setResourceVersion(String value)
       The current version of the service account 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 ServiceAccount.Builder clearResourceVersion()
       The current version of the service account specification.
       The next update operation will have to include this version.
       
      string resource_version = 2;
      Returns:
      This builder for chaining.
    • setResourceVersionBytes

      public ServiceAccount.Builder setResourceVersionBytes(com.google.protobuf.ByteString value)
       The current version of the service account 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 service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
      Specified by:
      hasSpec in interface ServiceAccountOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public ServiceAccountSpec getSpec()
       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
      Specified by:
      getSpec in interface ServiceAccountOrBuilder
      Returns:
      The spec.
    • setSpec

       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
    • setSpec

      public ServiceAccount.Builder setSpec(ServiceAccountSpec.Builder builderForValue)
       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
    • mergeSpec

      public ServiceAccount.Builder mergeSpec(ServiceAccountSpec value)
       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
    • clearSpec

      public ServiceAccount.Builder clearSpec()
       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
    • getSpecBuilder

      public ServiceAccountSpec.Builder getSpecBuilder()
       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
    • getSpecOrBuilder

      public ServiceAccountSpecOrBuilder getSpecOrBuilder()
       The service account specification.
       
      .temporal.api.cloud.identity.v1.ServiceAccountSpec spec = 3;
      Specified by:
      getSpecOrBuilder in interface ServiceAccountOrBuilder
    • getStateDeprecated

      @Deprecated public String getStateDeprecated()
      Deprecated.
      temporal.api.cloud.identity.v1.ServiceAccount.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=215
       The current state of the service account.
       Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
       For any failed state, reach out to Temporal Cloud support for remediation.
       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 ServiceAccountOrBuilder
      Returns:
      The stateDeprecated.
    • getStateDeprecatedBytes

      @Deprecated public com.google.protobuf.ByteString getStateDeprecatedBytes()
      Deprecated.
      temporal.api.cloud.identity.v1.ServiceAccount.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=215
       The current state of the service account.
       Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
       For any failed state, reach out to Temporal Cloud support for remediation.
       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 ServiceAccountOrBuilder
      Returns:
      The bytes for stateDeprecated.
    • setStateDeprecated

      @Deprecated public ServiceAccount.Builder setStateDeprecated(String value)
      Deprecated.
      temporal.api.cloud.identity.v1.ServiceAccount.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=215
       The current state of the service account.
       Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
       For any failed state, reach out to Temporal Cloud support for remediation.
       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 ServiceAccount.Builder clearStateDeprecated()
      Deprecated.
      temporal.api.cloud.identity.v1.ServiceAccount.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=215
       The current state of the service account.
       Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
       For any failed state, reach out to Temporal Cloud support for remediation.
       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 ServiceAccount.Builder setStateDeprecatedBytes(com.google.protobuf.ByteString value)
      Deprecated.
      temporal.api.cloud.identity.v1.ServiceAccount.state_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=215
       The current state of the service account.
       Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
       For any failed state, reach out to Temporal Cloud support for remediation.
       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 service account.
       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 = 8;
      Specified by:
      getStateValue in interface ServiceAccountOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ServiceAccount.Builder setStateValue(int value)
       The current state of the service account.
       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 = 8;
      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 service account.
       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 = 8;
      Specified by:
      getState in interface ServiceAccountOrBuilder
      Returns:
      The state.
    • setState

      public ServiceAccount.Builder setState(ResourceState value)
       The current state of the service account.
       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 = 8;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ServiceAccount.Builder clearState()
       The current state of the service account.
       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 = 8;
      Returns:
      This builder for chaining.
    • getAsyncOperationId

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

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

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

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

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

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

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

      public ServiceAccount.Builder setCreatedTime(com.google.protobuf.Timestamp value)
       The date and time when the service account was created.
       
      .google.protobuf.Timestamp created_time = 6;
    • setCreatedTime

      public ServiceAccount.Builder setCreatedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the service account was created.
       
      .google.protobuf.Timestamp created_time = 6;
    • mergeCreatedTime

      public ServiceAccount.Builder mergeCreatedTime(com.google.protobuf.Timestamp value)
       The date and time when the service account was created.
       
      .google.protobuf.Timestamp created_time = 6;
    • clearCreatedTime

      public ServiceAccount.Builder clearCreatedTime()
       The date and time when the service account was created.
       
      .google.protobuf.Timestamp created_time = 6;
    • getCreatedTimeBuilder

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

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

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

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

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

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

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

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

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

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

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

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