Package com.google.api.apikeys.v2
Class CreateKeyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateKeyRequest.Builder>
com.google.api.apikeys.v2.CreateKeyRequest.Builder
- All Implemented Interfaces:
CreateKeyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CreateKeyRequest
public static final class CreateKeyRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CreateKeyRequest.Builder>
implements CreateKeyRequestOrBuilder
Request message for `CreateKey` method.Protobuf type
google.api.apikeys.v2.CreateKeyRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearKey()Required.User specified key id (optional).Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()Required.Required.getKeyId()User specified key id (optional).com.google.protobuf.ByteStringUser specified key id (optional).Required.Required.com.google.protobuf.ByteStringRequired.booleanhasKey()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CreateKeyRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Required.setKey(Key.Builder builderForValue) Required.User specified key id (optional).setKeyIdBytes(com.google.protobuf.ByteString value) User specified key id (optional).Required.setParentBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CreateKeyRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CreateKeyRequest.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.GeneratedMessage.Builder<CreateKeyRequest.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateKeyRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CreateKeyRequest.Builder>
-
mergeFrom
public CreateKeyRequest.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<CreateKeyRequest.Builder>- Throws:
IOException
-
getParent
Required. The project in which the API key is created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceCreateKeyRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The project in which the API key is created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceCreateKeyRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The project in which the API key is created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The project in which the API key is created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. The project in which the API key is created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasKey
public boolean hasKey()Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasKeyin interfaceCreateKeyRequestOrBuilder- Returns:
- Whether the key field is set.
-
getKey
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeyin interfaceCreateKeyRequestOrBuilder- Returns:
- The key.
-
setKey
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; -
setKey
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeKey
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearKey
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; -
getKeyBuilder
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; -
getKeyOrBuilder
Required. The API key fields to set at creation time. You can configure only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeyOrBuilderin interfaceCreateKeyRequestOrBuilder
-
getKeyId
User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. The id must NOT be a UUID-like string.string key_id = 3;- Specified by:
getKeyIdin interfaceCreateKeyRequestOrBuilder- Returns:
- The keyId.
-
getKeyIdBytes
public com.google.protobuf.ByteString getKeyIdBytes()User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. The id must NOT be a UUID-like string.string key_id = 3;- Specified by:
getKeyIdBytesin interfaceCreateKeyRequestOrBuilder- Returns:
- The bytes for keyId.
-
setKeyId
User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. The id must NOT be a UUID-like string.string key_id = 3;- Parameters:
value- The keyId to set.- Returns:
- This builder for chaining.
-
clearKeyId
User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. The id must NOT be a UUID-like string.string key_id = 3;- Returns:
- This builder for chaining.
-
setKeyIdBytes
User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. The id must NOT be a UUID-like string.string key_id = 3;- Parameters:
value- The bytes for keyId to set.- Returns:
- This builder for chaining.
-