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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The description of the API key.True if the API key is disabled.The display name of the API key.The expiry time of the API key.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The id of the owner to create the API key for.The type of the owner to create the API key for.Deprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated.clone()The description of the API key.com.google.protobuf.ByteStringThe description of the API key.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanTrue if the API key is disabled.The display name of the API key.com.google.protobuf.ByteStringThe display name of the API key.com.google.protobuf.TimestampThe expiry time of the API key.com.google.protobuf.Timestamp.BuilderThe expiry time of the API key.com.google.protobuf.TimestampOrBuilderThe expiry time of the API key.The id of the owner to create the API key for.com.google.protobuf.ByteStringThe id of the owner to create the API key for.The type of the owner to create the API key for.Deprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated.com.google.protobuf.ByteStringDeprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated.intThe type of the owner to create the API key for.booleanThe expiry time of the API key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeExpiryTime(com.google.protobuf.Timestamp value) The expiry time of the API key.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ApiKeySpec other) final ApiKeySpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDescription(String value) The description of the API key.setDescriptionBytes(com.google.protobuf.ByteString value) The description of the API key.setDisabled(boolean value) True if the API key is disabled.setDisplayName(String value) The display name of the API key.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the API key.setExpiryTime(com.google.protobuf.Timestamp value) The expiry time of the API key.setExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue) The expiry time of the API key.setOwnerId(String value) The id of the owner to create the API key for.setOwnerIdBytes(com.google.protobuf.ByteString value) The id of the owner to create the API key for.setOwnerType(OwnerType value) The type of the owner to create the API key for.setOwnerTypeDeprecated(String value) Deprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated.setOwnerTypeDeprecatedBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated.setOwnerTypeValue(int value) The type of the owner to create the API key for.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final ApiKeySpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
setField
public ApiKeySpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
setRepeatedField
public ApiKeySpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
addRepeatedField
public ApiKeySpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiKeySpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiKeySpec.Builder>- Throws:
IOException
-
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:
getOwnerIdin interfaceApiKeySpecOrBuilder- 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:
getOwnerIdBytesin interfaceApiKeySpecOrBuilder- Returns:
- The bytes for ownerId.
-
setOwnerId
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
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
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.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290The 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:
getOwnerTypeDeprecatedin interfaceApiKeySpecOrBuilder- Returns:
- The ownerTypeDeprecated.
-
getOwnerTypeDeprecatedBytes
Deprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290The 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:
getOwnerTypeDeprecatedBytesin interfaceApiKeySpecOrBuilder- Returns:
- The bytes for ownerTypeDeprecated.
-
setOwnerTypeDeprecated
Deprecated.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290The 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.temporal.api.cloud.identity.v1.ApiKeySpec.owner_type_deprecated is deprecated. See temporal/api/cloud/identity/v1/message.proto;l=290The 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=290The 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:
getOwnerTypeValuein interfaceApiKeySpecOrBuilder- Returns:
- The enum numeric value on the wire for ownerType.
-
setOwnerTypeValue
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
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:
getOwnerTypein interfaceApiKeySpecOrBuilder- Returns:
- The ownerType.
-
setOwnerType
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
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
The display name of the API key.
string display_name = 3;- Specified by:
getDisplayNamein interfaceApiKeySpecOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the API key.
string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceApiKeySpecOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The display name of the API key.
string display_name = 3;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The display name of the API key.
string display_name = 3;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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
The description of the API key.
string description = 4;- Specified by:
getDescriptionin interfaceApiKeySpecOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The description of the API key.
string description = 4;- Specified by:
getDescriptionBytesin interfaceApiKeySpecOrBuilder- Returns:
- The bytes for description.
-
setDescription
The description of the API key.
string description = 4;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The description of the API key.
string description = 4;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
hasExpiryTimein interfaceApiKeySpecOrBuilder- 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:
getExpiryTimein interfaceApiKeySpecOrBuilder- Returns:
- The expiryTime.
-
setExpiryTime
The expiry time of the API key.
.google.protobuf.Timestamp expiry_time = 5; -
setExpiryTime
The expiry time of the API key.
.google.protobuf.Timestamp expiry_time = 5; -
mergeExpiryTime
The expiry time of the API key.
.google.protobuf.Timestamp expiry_time = 5; -
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:
getExpiryTimeOrBuilderin interfaceApiKeySpecOrBuilder
-
getDisabled
public boolean getDisabled()True if the API key is disabled.
bool disabled = 6;- Specified by:
getDisabledin interfaceApiKeySpecOrBuilder- Returns:
- The disabled.
-
setDisabled
True if the API key is disabled.
bool disabled = 6;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
True if the API key is disabled.
bool disabled = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
mergeUnknownFields
public final ApiKeySpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-