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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
    • getDefaultInstanceForType

      public Plugin.ConfigTemplate.AuthConfigTemplate getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Plugin.ConfigTemplate.AuthConfigTemplate.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Plugin.ConfigTemplate.AuthConfigTemplate.Builder>
      Throws:
      IOException
    • getSupportedAuthTypesList

      public List<AuthType> 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:
      getSupportedAuthTypesList in interface Plugin.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:
      getSupportedAuthTypesCount in interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder
      Returns:
      The count of supportedAuthTypes.
    • getSupportedAuthTypes

      public AuthType getSupportedAuthTypes(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:
      getSupportedAuthTypes in interface Plugin.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

      public Plugin.ConfigTemplate.AuthConfigTemplate.Builder addSupportedAuthTypes(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:
      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

      public Plugin.ConfigTemplate.AuthConfigTemplate.Builder 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

      public List<Integer> 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:
      getSupportedAuthTypesValueList in interface Plugin.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:
      getSupportedAuthTypesValue in interface Plugin.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

      public Plugin.ConfigTemplate.AuthConfigTemplate.Builder addSupportedAuthTypesValue(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:
      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:
      hasServiceAccount in interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder
      Returns:
      Whether the serviceAccount field is set.
    • getServiceAccount

      public GoogleServiceAccountConfig 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:
      getServiceAccount in interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder
      Returns:
      The serviceAccount.
    • setServiceAccount

       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

       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

       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

      public GoogleServiceAccountConfig.Builder 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

      public GoogleServiceAccountConfigOrBuilder 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:
      getServiceAccountOrBuilder in interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder