Class ApiKeySpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.Cloneable
- Enclosing class:
- ApiKeySpec
public static final class ApiKeySpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder> implements ApiKeySpecOrBuilder
Protobuf typetemporal.api.cloud.identity.v1.ApiKeySpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiKeySpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ApiKeySpecbuild()ApiKeySpecbuildPartial()ApiKeySpec.Builderclear()ApiKeySpec.BuilderclearDescription()The description of the API key.ApiKeySpec.BuilderclearDisabled()True if the API key is disabled.ApiKeySpec.BuilderclearDisplayName()The display name of the API key.ApiKeySpec.BuilderclearExpiryTime()The expiry time of the API key.ApiKeySpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ApiKeySpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ApiKeySpec.BuilderclearOwnerId()The id of the owner to create the API key for.ApiKeySpec.BuilderclearOwnerType()The type of the owner to create the API key for.ApiKeySpec.Builderclone()ApiKeySpecgetDefaultInstanceForType()java.lang.StringgetDescription()The description of the API key.com.google.protobuf.ByteStringgetDescriptionBytes()The description of the API key.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetDisabled()True if the API key is disabled.java.lang.StringgetDisplayName()The display name of the API key.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name of the API key.com.google.protobuf.TimestampgetExpiryTime()The expiry time of the API key.com.google.protobuf.Timestamp.BuildergetExpiryTimeBuilder()The expiry time of the API key.com.google.protobuf.TimestampOrBuildergetExpiryTimeOrBuilder()The expiry time of the API key.java.lang.StringgetOwnerId()The id of the owner to create the API key for.com.google.protobuf.ByteStringgetOwnerIdBytes()The id of the owner to create the API key for.java.lang.StringgetOwnerType()The type of the owner to create the API key for.com.google.protobuf.ByteStringgetOwnerTypeBytes()The type of the owner to create the API key for.booleanhasExpiryTime()The expiry time of the API key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ApiKeySpec.BuildermergeExpiryTime(com.google.protobuf.Timestamp value)The expiry time of the API key.ApiKeySpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ApiKeySpec.BuildermergeFrom(com.google.protobuf.Message other)ApiKeySpec.BuildermergeFrom(ApiKeySpec other)ApiKeySpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ApiKeySpec.BuildersetDescription(java.lang.String value)The description of the API key.ApiKeySpec.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The description of the API key.ApiKeySpec.BuildersetDisabled(boolean value)True if the API key is disabled.ApiKeySpec.BuildersetDisplayName(java.lang.String value)The display name of the API key.ApiKeySpec.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The display name of the API key.ApiKeySpec.BuildersetExpiryTime(com.google.protobuf.Timestamp value)The expiry time of the API key.ApiKeySpec.BuildersetExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue)The expiry time of the API key.ApiKeySpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ApiKeySpec.BuildersetOwnerId(java.lang.String value)The id of the owner to create the API key for.ApiKeySpec.BuildersetOwnerIdBytes(com.google.protobuf.ByteString value)The id of the owner to create the API key for.ApiKeySpec.BuildersetOwnerType(java.lang.String value)The type of the owner to create the API key for.ApiKeySpec.BuildersetOwnerTypeBytes(com.google.protobuf.ByteString value)The type of the owner to create the API key for.ApiKeySpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public ApiKeySpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApiKeySpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApiKeySpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApiKeySpec.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, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
clearField
public ApiKeySpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
clearOneof
public ApiKeySpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeySpec.Builder>
-
mergeFrom
public ApiKeySpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiKeySpec.Builder>
-
mergeFrom
public ApiKeySpec.Builder mergeFrom(ApiKeySpec other)
-
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 java.io.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:
java.io.IOException
-
getOwnerId
public java.lang.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:
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
public ApiKeySpec.Builder setOwnerId(java.lang.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.
-
getOwnerType
public java.lang.String getOwnerType()
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.
string owner_type = 2;- Specified by:
getOwnerTypein interfaceApiKeySpecOrBuilder- Returns:
- The ownerType.
-
getOwnerTypeBytes
public com.google.protobuf.ByteString getOwnerTypeBytes()
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.
string owner_type = 2;- Specified by:
getOwnerTypeBytesin interfaceApiKeySpecOrBuilder- Returns:
- The bytes for ownerType.
-
setOwnerType
public ApiKeySpec.Builder setOwnerType(java.lang.String value)
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.
string owner_type = 2;- 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. The owner type is immutable. Once set during creation, it cannot be changed. Possible values: user, service-account.
string owner_type = 2;- Returns:
- This builder for chaining.
-
setOwnerTypeBytes
public ApiKeySpec.Builder setOwnerTypeBytes(com.google.protobuf.ByteString value)
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.
string owner_type = 2;- Parameters:
value- The bytes for ownerType to set.- Returns:
- This builder for chaining.
-
getDisplayName
public java.lang.String 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
public ApiKeySpec.Builder setDisplayName(java.lang.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 java.lang.String 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
public ApiKeySpec.Builder setDescription(java.lang.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:
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
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:
getExpiryTimeOrBuilderin interfaceApiKeySpecOrBuilder
-
getDisabled
public boolean getDisabled()
True if the API key is disabled.
bool disabled = 6;- Specified by:
getDisabledin interfaceApiKeySpecOrBuilder- 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:
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>
-
-