Class ApiKeySpec.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

      public ApiKeySpec.Builder mergeFrom(ApiKeySpec other)
    • isInitialized

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

      public ApiKeySpec.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<ApiKeySpec.Builder>
      Throws:
      IOException
    • getOwnerId

      public String getOwnerId()
       The id of the owner to create the API key for.
       The owner id is immutable. Once set during creation, it cannot be changed.
       The owner id is the id of the user when the owner type is user.
       The owner id is the id of the service account when the owner type is service account.
       
      string owner_id = 1;
      Specified by:
      getOwnerId in interface ApiKeySpecOrBuilder
      Returns:
      The ownerId.
    • getOwnerIdBytes

      public com.google.protobuf.ByteString getOwnerIdBytes()
       The id of the owner to create the API key for.
       The owner id is immutable. Once set during creation, it cannot be changed.
       The owner id is the id of the user when the owner type is user.
       The owner id is the id of the service account when the owner type is service account.
       
      string owner_id = 1;
      Specified by:
      getOwnerIdBytes in interface ApiKeySpecOrBuilder
      Returns:
      The bytes for ownerId.
    • setOwnerId

      public ApiKeySpec.Builder setOwnerId(String value)
       The id of the owner to create the API key for.
       The owner id is immutable. Once set during creation, it cannot be changed.
       The owner id is the id of the user when the owner type is user.
       The owner id is the id of the service account when the owner type is service account.
       
      string owner_id = 1;
      Parameters:
      value - The ownerId to set.
      Returns:
      This builder for chaining.
    • clearOwnerId

      public ApiKeySpec.Builder clearOwnerId()
       The id of the owner to create the API key for.
       The owner id is immutable. Once set during creation, it cannot be changed.
       The owner id is the id of the user when the owner type is user.
       The owner id is the id of the service account when the owner type is service account.
       
      string owner_id = 1;
      Returns:
      This builder for chaining.
    • setOwnerIdBytes

      public ApiKeySpec.Builder setOwnerIdBytes(com.google.protobuf.ByteString value)
       The id of the owner to create the API key for.
       The owner id is immutable. Once set during creation, it cannot be changed.
       The owner id is the id of the user when the owner type is user.
       The owner id is the id of the service account when the owner type is service account.
       
      string owner_id = 1;
      Parameters:
      value - The bytes for ownerId to set.
      Returns:
      This builder for chaining.
    • getOwnerTypeDeprecated

      @Deprecated public String getOwnerTypeDeprecated()
      Deprecated.
      temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290
       The type of the owner to create the API key for.
       The owner type is immutable. Once set during creation, it cannot be changed.
       Possible values: user, service-account.
       Deprecated: Not supported after v0.3.0 api version. Use owner_type instead.
       temporal:versioning:max_version=v0.3.0
       
      string owner_type_deprecated = 2 [deprecated = true];
      Specified by:
      getOwnerTypeDeprecated in interface ApiKeySpecOrBuilder
      Returns:
      The ownerTypeDeprecated.
    • getOwnerTypeDeprecatedBytes

      @Deprecated public com.google.protobuf.ByteString getOwnerTypeDeprecatedBytes()
      Deprecated.
      temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290
       The type of the owner to create the API key for.
       The owner type is immutable. Once set during creation, it cannot be changed.
       Possible values: user, service-account.
       Deprecated: Not supported after v0.3.0 api version. Use owner_type instead.
       temporal:versioning:max_version=v0.3.0
       
      string owner_type_deprecated = 2 [deprecated = true];
      Specified by:
      getOwnerTypeDeprecatedBytes in interface ApiKeySpecOrBuilder
      Returns:
      The bytes for ownerTypeDeprecated.
    • setOwnerTypeDeprecated

      @Deprecated public ApiKeySpec.Builder setOwnerTypeDeprecated(String value)
      Deprecated.
      temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290
       The type of the owner to create the API key for.
       The owner type is immutable. Once set during creation, it cannot be changed.
       Possible values: user, service-account.
       Deprecated: Not supported after v0.3.0 api version. Use owner_type instead.
       temporal:versioning:max_version=v0.3.0
       
      string owner_type_deprecated = 2 [deprecated = true];
      Parameters:
      value - The ownerTypeDeprecated to set.
      Returns:
      This builder for chaining.
    • clearOwnerTypeDeprecated

      @Deprecated public ApiKeySpec.Builder clearOwnerTypeDeprecated()
      Deprecated.
      temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290
       The type of the owner to create the API key for.
       The owner type is immutable. Once set during creation, it cannot be changed.
       Possible values: user, service-account.
       Deprecated: Not supported after v0.3.0 api version. Use owner_type instead.
       temporal:versioning:max_version=v0.3.0
       
      string owner_type_deprecated = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setOwnerTypeDeprecatedBytes

      @Deprecated public ApiKeySpec.Builder setOwnerTypeDeprecatedBytes(com.google.protobuf.ByteString value)
      Deprecated.
      temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290
       The type of the owner to create the API key for.
       The owner type is immutable. Once set during creation, it cannot be changed.
       Possible values: user, service-account.
       Deprecated: Not supported after v0.3.0 api version. Use owner_type instead.
       temporal:versioning:max_version=v0.3.0
       
      string owner_type_deprecated = 2 [deprecated = true];
      Parameters:
      value - The bytes for ownerTypeDeprecated to set.
      Returns:
      This builder for chaining.
    • getOwnerTypeValue

      public int getOwnerTypeValue()
       The type of the owner to create the API key for.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=owner_type_deprecated
       
      .temporal.api.cloud.identity.v1.OwnerType owner_type = 7;
      Specified by:
      getOwnerTypeValue in interface ApiKeySpecOrBuilder
      Returns:
      The enum numeric value on the wire for ownerType.
    • setOwnerTypeValue

      public ApiKeySpec.Builder setOwnerTypeValue(int value)
       The type of the owner to create the API key for.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=owner_type_deprecated
       
      .temporal.api.cloud.identity.v1.OwnerType owner_type = 7;
      Parameters:
      value - The enum numeric value on the wire for ownerType to set.
      Returns:
      This builder for chaining.
    • getOwnerType

      public OwnerType getOwnerType()
       The type of the owner to create the API key for.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=owner_type_deprecated
       
      .temporal.api.cloud.identity.v1.OwnerType owner_type = 7;
      Specified by:
      getOwnerType in interface ApiKeySpecOrBuilder
      Returns:
      The ownerType.
    • setOwnerType

      public ApiKeySpec.Builder setOwnerType(OwnerType value)
       The type of the owner to create the API key for.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=owner_type_deprecated
       
      .temporal.api.cloud.identity.v1.OwnerType owner_type = 7;
      Parameters:
      value - The ownerType to set.
      Returns:
      This builder for chaining.
    • clearOwnerType

      public ApiKeySpec.Builder clearOwnerType()
       The type of the owner to create the API key for.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=owner_type_deprecated
       
      .temporal.api.cloud.identity.v1.OwnerType owner_type = 7;
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name of the API key.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface ApiKeySpecOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the API key.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface ApiKeySpecOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ApiKeySpec.Builder setDisplayName(String value)
       The display name of the API key.
       
      string display_name = 3;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ApiKeySpec.Builder clearDisplayName()
       The display name of the API key.
       
      string display_name = 3;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ApiKeySpec.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the API key.
       
      string display_name = 3;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The description of the API key.
       
      string description = 4;
      Specified by:
      getDescription in interface ApiKeySpecOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the API key.
       
      string description = 4;
      Specified by:
      getDescriptionBytes in interface ApiKeySpecOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ApiKeySpec.Builder setDescription(String value)
       The description of the API key.
       
      string description = 4;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ApiKeySpec.Builder clearDescription()
       The description of the API key.
       
      string description = 4;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ApiKeySpec.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description of the API key.
       
      string description = 4;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasExpiryTime

      public boolean hasExpiryTime()
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
      Specified by:
      hasExpiryTime in interface ApiKeySpecOrBuilder
      Returns:
      Whether the expiryTime field is set.
    • getExpiryTime

      public com.google.protobuf.Timestamp getExpiryTime()
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
      Specified by:
      getExpiryTime in interface ApiKeySpecOrBuilder
      Returns:
      The expiryTime.
    • setExpiryTime

      public ApiKeySpec.Builder setExpiryTime(com.google.protobuf.Timestamp value)
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
    • setExpiryTime

      public ApiKeySpec.Builder setExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
    • mergeExpiryTime

      public ApiKeySpec.Builder mergeExpiryTime(com.google.protobuf.Timestamp value)
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
    • clearExpiryTime

      public ApiKeySpec.Builder clearExpiryTime()
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
    • getExpiryTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpiryTimeBuilder()
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
    • getExpiryTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder()
       The expiry time of the API key.
       
      .google.protobuf.Timestamp expiry_time = 5;
      Specified by:
      getExpiryTimeOrBuilder in interface ApiKeySpecOrBuilder
    • getDisabled

      public boolean getDisabled()
       True if the API key is disabled.
       
      bool disabled = 6;
      Specified by:
      getDisabled in interface ApiKeySpecOrBuilder
      Returns:
      The disabled.
    • setDisabled

      public ApiKeySpec.Builder setDisabled(boolean value)
       True if the API key is disabled.
       
      bool disabled = 6;
      Parameters:
      value - The disabled to set.
      Returns:
      This builder for chaining.
    • clearDisabled

      public ApiKeySpec.Builder clearDisabled()
       True if the API key is disabled.
       
      bool disabled = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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