Package com.google.cloud.apihub.v1
Class Plugin.ConfigTemplate.AuthConfigTemplate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
com.google.cloud.apihub.v1.Plugin.ConfigTemplate.AuthConfigTemplate.Builder
- All Implemented Interfaces:
Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Plugin.ConfigTemplate.AuthConfigTemplate
public static final class Plugin.ConfigTemplate.AuthConfigTemplate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
implements Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder
AuthConfigTemplate represents the authentication template for a plugin.Protobuf type
google.cloud.apihub.v1.Plugin.ConfigTemplate.AuthConfigTemplate-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedAuthTypes(Iterable<? extends AuthType> values) Required.addAllSupportedAuthTypesValue(Iterable<Integer> values) Required.addSupportedAuthTypes(AuthType value) Required.addSupportedAuthTypesValue(int value) Required.build()clear()Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.getSupportedAuthTypes(int index) Required.intRequired.Required.intgetSupportedAuthTypesValue(int index) Required.Required.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.setServiceAccount(GoogleServiceAccountConfig.Builder builderForValue) Optional.setSupportedAuthTypes(int index, AuthType value) Required.setSupportedAuthTypesValue(int index, int 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<Plugin.ConfigTemplate.AuthConfigTemplate.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<Plugin.ConfigTemplate.AuthConfigTemplate.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<Plugin.ConfigTemplate.AuthConfigTemplate.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
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
-
mergeFrom
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder mergeFrom(Plugin.ConfigTemplate.AuthConfigTemplate other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
-
mergeFrom
public Plugin.ConfigTemplate.AuthConfigTemplate.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<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>- Throws:
IOException
-
getSupportedAuthTypesList
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSupportedAuthTypesListin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Returns:
- A list containing the supportedAuthTypes.
-
getSupportedAuthTypesCount
public int getSupportedAuthTypesCount()Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSupportedAuthTypesCountin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Returns:
- The count of supportedAuthTypes.
-
getSupportedAuthTypes
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSupportedAuthTypesin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportedAuthTypes at the given index.
-
setSupportedAuthTypes
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder setSupportedAuthTypes(int index, AuthType value) Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The supportedAuthTypes to set.- Returns:
- This builder for chaining.
-
addSupportedAuthTypes
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The supportedAuthTypes to add.- Returns:
- This builder for chaining.
-
addAllSupportedAuthTypes
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder addAllSupportedAuthTypes(Iterable<? extends AuthType> values) Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The supportedAuthTypes to add.- Returns:
- This builder for chaining.
-
clearSupportedAuthTypes
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getSupportedAuthTypesValueList
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSupportedAuthTypesValueListin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Returns:
- A list containing the enum numeric values on the wire for supportedAuthTypes.
-
getSupportedAuthTypesValue
public int getSupportedAuthTypesValue(int index) Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSupportedAuthTypesValuein interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of supportedAuthTypes at the given index.
-
setSupportedAuthTypesValue
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder setSupportedAuthTypesValue(int index, int value) Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for supportedAuthTypes to set.- Returns:
- This builder for chaining.
-
addSupportedAuthTypesValue
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for supportedAuthTypes to add.- Returns:
- This builder for chaining.
-
addAllSupportedAuthTypesValue
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder addAllSupportedAuthTypesValue(Iterable<Integer> values) Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The enum numeric values on the wire for supportedAuthTypes to add.- Returns:
- This builder for chaining.
-
hasServiceAccount
public boolean hasServiceAccount()Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasServiceAccountin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder- Returns:
- The serviceAccount.
-
setServiceAccount
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder setServiceAccount(GoogleServiceAccountConfig value) Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setServiceAccount
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder setServiceAccount(GoogleServiceAccountConfig.Builder builderForValue) Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeServiceAccount
public Plugin.ConfigTemplate.AuthConfigTemplate.Builder mergeServiceAccount(GoogleServiceAccountConfig value) Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearServiceAccount
Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getServiceAccountBuilder
Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getServiceAccountOrBuilder
Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountOrBuilderin interfacePlugin.ConfigTemplate.AuthConfigTemplateOrBuilder
-