Package com.google.cloud.apihub.v1
Class ApiHubInstance.Config.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ApiHubInstance.Config.Builder>
com.google.cloud.apihub.v1.ApiHubInstance.Config.Builder
- All Implemented Interfaces:
ApiHubInstance.ConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ApiHubInstance.Config
public static final class ApiHubInstance.Config.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ApiHubInstance.Config.Builder>
implements ApiHubInstance.ConfigOrBuilder
Available configurations to provision an ApiHub Instance.Protobuf type
google.cloud.apihub.v1.ApiHubInstance.Config-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ApiHubInstance.Config other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCmekKeyName(String value) Optional.setCmekKeyNameBytes(com.google.protobuf.ByteString value) Optional.setDisableSearch(boolean value) Optional.Optional.setEncryptionTypeValue(int value) Optional.setVertexLocation(String value) Optional.setVertexLocationBytes(com.google.protobuf.ByteString value) Optional.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<ApiHubInstance.Config.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<ApiHubInstance.Config.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<ApiHubInstance.Config.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<ApiHubInstance.Config.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ApiHubInstance.Config.Builder>
-
mergeFrom
public ApiHubInstance.Config.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<ApiHubInstance.Config.Builder>- Throws:
IOException
-
getCmekKeyName
Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCmekKeyNamein interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The cmekKeyName.
-
getCmekKeyNameBytes
public com.google.protobuf.ByteString getCmekKeyNameBytes()Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCmekKeyNameBytesin interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The bytes for cmekKeyName.
-
setCmekKeyName
Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The cmekKeyName to set.- Returns:
- This builder for chaining.
-
clearCmekKeyName
Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCmekKeyNameBytes
Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for cmekKeyName to set.- Returns:
- This builder for chaining.
-
getDisableSearch
public boolean getDisableSearch()Optional. If true, the search will be disabled for the instance. The default value is false.
bool disable_search = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisableSearchin interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The disableSearch.
-
setDisableSearch
Optional. If true, the search will be disabled for the instance. The default value is false.
bool disable_search = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The disableSearch to set.- Returns:
- This builder for chaining.
-
clearDisableSearch
Optional. If true, the search will be disabled for the instance. The default value is false.
bool disable_search = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getVertexLocation
Optional. The name of the Vertex AI location where the data store is stored.
string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVertexLocationin interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The vertexLocation.
-
getVertexLocationBytes
public com.google.protobuf.ByteString getVertexLocationBytes()Optional. The name of the Vertex AI location where the data store is stored.
string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVertexLocationBytesin interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The bytes for vertexLocation.
-
setVertexLocation
Optional. The name of the Vertex AI location where the data store is stored.
string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The vertexLocation to set.- Returns:
- This builder for chaining.
-
clearVertexLocation
Optional. The name of the Vertex AI location where the data store is stored.
string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setVertexLocationBytes
Optional. The name of the Vertex AI location where the data store is stored.
string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for vertexLocation to set.- Returns:
- This builder for chaining.
-
getEncryptionTypeValue
public int getEncryptionTypeValue()Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
.google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionTypeValuein interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The enum numeric value on the wire for encryptionType.
-
setEncryptionTypeValue
Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
.google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for encryptionType to set.- Returns:
- This builder for chaining.
-
getEncryptionType
Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
.google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionTypein interfaceApiHubInstance.ConfigOrBuilder- Returns:
- The encryptionType.
-
setEncryptionType
Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
.google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The encryptionType to set.- Returns:
- This builder for chaining.
-
clearEncryptionType
Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
.google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-