Package com.google.api.apikeys.v2
Class Key.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
- com.google.api.apikeys.v2.Key.Builder
-
- All Implemented Interfaces:
KeyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Key
public static final class Key.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Key.Builder> implements KeyOrBuilder
The representation of a key managed by the API Keys API.
Protobuf typegoogle.api.apikeys.v2.Key
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Key.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Key
build()
Key
buildPartial()
Key.Builder
clear()
Key.Builder
clearAnnotations()
Key.Builder
clearCreateTime()
Output only.Key.Builder
clearDeleteTime()
Output only.Key.Builder
clearDisplayName()
Human-readable display name of this key that you can modify.Key.Builder
clearEtag()
Output only.Key.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Key.Builder
clearKeyString()
Output only.Key.Builder
clearName()
Output only.Key.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Key.Builder
clearRestrictions()
Key restrictions.Key.Builder
clearUid()
Output only.Key.Builder
clearUpdateTime()
Output only.Key.Builder
clone()
boolean
containsAnnotations(String key)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.Map<String,String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.Map<String,String>
getAnnotationsMap()
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.String
getAnnotationsOrDefault(String key, String defaultValue)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.String
getAnnotationsOrThrow(String key)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Key
getDefaultInstanceForType()
com.google.protobuf.Timestamp
getDeleteTime()
Output only.com.google.protobuf.Timestamp.Builder
getDeleteTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getDeleteTimeOrBuilder()
Output only.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Human-readable display name of this key that you can modify.com.google.protobuf.ByteString
getDisplayNameBytes()
Human-readable display name of this key that you can modify.String
getEtag()
Output only.com.google.protobuf.ByteString
getEtagBytes()
Output only.String
getKeyString()
Output only.com.google.protobuf.ByteString
getKeyStringBytes()
Output only.Map<String,String>
getMutableAnnotations()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.Restrictions
getRestrictions()
Key restrictions.Restrictions.Builder
getRestrictionsBuilder()
Key restrictions.RestrictionsOrBuilder
getRestrictionsOrBuilder()
Key restrictions.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasDeleteTime()
Output only.boolean
hasRestrictions()
Key restrictions.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Key.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Key.Builder
mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only.Key.Builder
mergeFrom(Key other)
Key.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Key.Builder
mergeFrom(com.google.protobuf.Message other)
Key.Builder
mergeRestrictions(Restrictions value)
Key restrictions.Key.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Key.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Key.Builder
putAllAnnotations(Map<String,String> values)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.Key.Builder
putAnnotations(String key, String value)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.Key.Builder
removeAnnotations(String key)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata.Key.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Key.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Key.Builder
setDeleteTime(com.google.protobuf.Timestamp value)
Output only.Key.Builder
setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Key.Builder
setDisplayName(String value)
Human-readable display name of this key that you can modify.Key.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Human-readable display name of this key that you can modify.Key.Builder
setEtag(String value)
Output only.Key.Builder
setEtagBytes(com.google.protobuf.ByteString value)
Output only.Key.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Key.Builder
setKeyString(String value)
Output only.Key.Builder
setKeyStringBytes(com.google.protobuf.ByteString value)
Output only.Key.Builder
setName(String value)
Output only.Key.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Key.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Key.Builder
setRestrictions(Restrictions value)
Key restrictions.Key.Builder
setRestrictions(Restrictions.Builder builderForValue)
Key restrictions.Key.Builder
setUid(String value)
Output only.Key.Builder
setUidBytes(com.google.protobuf.ByteString value)
Output only.Key.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Key.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Key.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
clear
public Key.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
getDefaultInstanceForType
public Key getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Key build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Key buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Key.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
setField
public Key.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
clearField
public Key.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
clearOneof
public Key.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
setRepeatedField
public Key.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
addRepeatedField
public Key.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
mergeFrom
public Key.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Key.Builder>
-
mergeFrom
public Key.Builder mergeFrom(Key other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
mergeFrom
public Key.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Key.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The resource name of the key. The `name` has the form: `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceKeyOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the key. The `name` has the form: `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for name.
-
setName
public Key.Builder setName(String value)
Output only. The resource name of the key. The `name` has the form: `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Key.Builder clearName()
Output only. The resource name of the key. The `name` has the form: `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public Key.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the key. The `name` has the form: `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUid
public String getUid()
Output only. Unique id in UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUid
in interfaceKeyOrBuilder
- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. Unique id in UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUidBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for uid.
-
setUid
public Key.Builder setUid(String value)
Output only. Unique id in UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public Key.Builder clearUid()
Output only. Unique id in UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUidBytes
public Key.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. Unique id in UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for uid to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Human-readable display name of this key that you can modify. The maximum length is 63 characters.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceKeyOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Human-readable display name of this key that you can modify. The maximum length is 63 characters.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public Key.Builder setDisplayName(String value)
Human-readable display name of this key that you can modify. The maximum length is 63 characters.
string display_name = 2;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Key.Builder clearDisplayName()
Human-readable display name of this key that you can modify. The maximum length is 63 characters.
string display_name = 2;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Key.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Human-readable display name of this key that you can modify. The maximum length is 63 characters.
string display_name = 2;
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getKeyString
public String getKeyString()
Output only. An encrypted and signed value held by this key. This field can be accessed only through the `GetKeyString` method.
string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getKeyString
in interfaceKeyOrBuilder
- Returns:
- The keyString.
-
getKeyStringBytes
public com.google.protobuf.ByteString getKeyStringBytes()
Output only. An encrypted and signed value held by this key. This field can be accessed only through the `GetKeyString` method.
string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getKeyStringBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for keyString.
-
setKeyString
public Key.Builder setKeyString(String value)
Output only. An encrypted and signed value held by this key. This field can be accessed only through the `GetKeyString` method.
string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The keyString to set.- Returns:
- This builder for chaining.
-
clearKeyString
public Key.Builder clearKeyString()
Output only. An encrypted and signed value held by this key. This field can be accessed only through the `GetKeyString` method.
string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setKeyStringBytes
public Key.Builder setKeyStringBytes(com.google.protobuf.ByteString value)
Output only. An encrypted and signed value held by this key. This field can be accessed only through the `GetKeyString` method.
string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for keyString to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceKeyOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceKeyOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Key.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Key.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Key.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Key.Builder clearCreateTime()
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. A timestamp identifying the time this key was originally created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceKeyOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in interfaceKeyOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceKeyOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public Key.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Key.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public Key.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public Key.Builder clearUpdateTime()
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. A timestamp identifying the time this key was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceKeyOrBuilder
-
hasDeleteTime
public boolean hasDeleteTime()
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDeleteTime
in interfaceKeyOrBuilder
- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteTime
in interfaceKeyOrBuilder
- Returns:
- The deleteTime.
-
setDeleteTime
public Key.Builder setDeleteTime(com.google.protobuf.Timestamp value)
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setDeleteTime
public Key.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeDeleteTime
public Key.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearDeleteTime
public Key.Builder clearDeleteTime()
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteTimeOrBuilder
in interfaceKeyOrBuilder
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:KeyOrBuilder
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
- Specified by:
getAnnotationsCount
in interfaceKeyOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
- Specified by:
containsAnnotations
in interfaceKeyOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceKeyOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
- Specified by:
getAnnotationsMap
in interfaceKeyOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
- Specified by:
getAnnotationsOrDefault
in interfaceKeyOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
- Specified by:
getAnnotationsOrThrow
in interfaceKeyOrBuilder
-
clearAnnotations
public Key.Builder clearAnnotations()
-
removeAnnotations
public Key.Builder removeAnnotations(String key)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public Key.Builder putAnnotations(String key, String value)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
-
putAllAnnotations
public Key.Builder putAllAnnotations(Map<String,String> values)
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
map<string, string> annotations = 8;
-
hasRestrictions
public boolean hasRestrictions()
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
- Specified by:
hasRestrictions
in interfaceKeyOrBuilder
- Returns:
- Whether the restrictions field is set.
-
getRestrictions
public Restrictions getRestrictions()
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
- Specified by:
getRestrictions
in interfaceKeyOrBuilder
- Returns:
- The restrictions.
-
setRestrictions
public Key.Builder setRestrictions(Restrictions value)
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
-
setRestrictions
public Key.Builder setRestrictions(Restrictions.Builder builderForValue)
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
-
mergeRestrictions
public Key.Builder mergeRestrictions(Restrictions value)
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
-
clearRestrictions
public Key.Builder clearRestrictions()
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
-
getRestrictionsBuilder
public Restrictions.Builder getRestrictionsBuilder()
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
-
getRestrictionsOrBuilder
public RestrictionsOrBuilder getRestrictionsOrBuilder()
Key restrictions.
.google.api.apikeys.v2.Restrictions restrictions = 9;
- Specified by:
getRestrictionsOrBuilder
in interfaceKeyOrBuilder
-
getEtag
public String getEtag()
Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEtag
in interfaceKeyOrBuilder
- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEtagBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for etag.
-
setEtag
public Key.Builder setEtag(String value)
Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public Key.Builder clearEtag()
Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setEtagBytes
public Key.Builder setEtagBytes(com.google.protobuf.ByteString value)
Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for etag to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Key.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
mergeUnknownFields
public final Key.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
-