Class DotnetSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<DotnetSettings,DotnetSettings.Builder>
com.google.api.DotnetSettings.Builder
All Implemented Interfaces:
DotnetSettingsOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
DotnetSettings

public static final class DotnetSettings.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<DotnetSettings,DotnetSettings.Builder> implements DotnetSettingsOrBuilder
 Settings for Dotnet client libraries.
 
Protobuf type google.api.DotnetSettings
  • Method Details

    • hasCommon

      public boolean hasCommon()
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
      Specified by:
      hasCommon in interface DotnetSettingsOrBuilder
      Returns:
      Whether the common field is set.
    • getCommon

      public CommonLanguageSettings getCommon()
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
      Specified by:
      getCommon in interface DotnetSettingsOrBuilder
      Returns:
      The common.
    • setCommon

       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • setCommon

      public DotnetSettings.Builder setCommon(CommonLanguageSettings.Builder builderForValue)
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • mergeCommon

      public DotnetSettings.Builder mergeCommon(CommonLanguageSettings value)
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • clearCommon

      public DotnetSettings.Builder clearCommon()
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • getRenamedServicesCount

      public int getRenamedServicesCount()
      Description copied from interface: DotnetSettingsOrBuilder
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
      Specified by:
      getRenamedServicesCount in interface DotnetSettingsOrBuilder
    • containsRenamedServices

      public boolean containsRenamedServices(String key)
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
      Specified by:
      containsRenamedServices in interface DotnetSettingsOrBuilder
    • clearRenamedServices

      public DotnetSettings.Builder clearRenamedServices()
    • removeRenamedServices

      public DotnetSettings.Builder removeRenamedServices(String key)
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
    • getRenamedServices

      @Deprecated public Map<String,String> getRenamedServices()
      Deprecated.
      Specified by:
      getRenamedServices in interface DotnetSettingsOrBuilder
    • getRenamedServicesMap

      public Map<String,String> getRenamedServicesMap()
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
      Specified by:
      getRenamedServicesMap in interface DotnetSettingsOrBuilder
    • getRenamedServicesOrDefault

      public String getRenamedServicesOrDefault(String key, String defaultValue)
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
      Specified by:
      getRenamedServicesOrDefault in interface DotnetSettingsOrBuilder
    • getRenamedServicesOrThrow

      public String getRenamedServicesOrThrow(String key)
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
      Specified by:
      getRenamedServicesOrThrow in interface DotnetSettingsOrBuilder
    • putRenamedServices

      public DotnetSettings.Builder putRenamedServices(String key, String value)
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
    • putAllRenamedServices

      public DotnetSettings.Builder putAllRenamedServices(Map<String,String> values)
       Map from original service names to renamed versions.
       This is used when the default generated types
       would cause a naming conflict. (Neither name is
       fully-qualified.)
       Example: Subscriber to SubscriberServiceApi.
       
      map<string, string> renamed_services = 2 [json_name = "renamedServices"];
    • getRenamedResourcesCount

      public int getRenamedResourcesCount()
      Description copied from interface: DotnetSettingsOrBuilder
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
      Specified by:
      getRenamedResourcesCount in interface DotnetSettingsOrBuilder
    • containsRenamedResources

      public boolean containsRenamedResources(String key)
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
      Specified by:
      containsRenamedResources in interface DotnetSettingsOrBuilder
    • clearRenamedResources

      public DotnetSettings.Builder clearRenamedResources()
    • removeRenamedResources

      public DotnetSettings.Builder removeRenamedResources(String key)
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
    • getRenamedResources

      @Deprecated public Map<String,String> getRenamedResources()
      Deprecated.
      Specified by:
      getRenamedResources in interface DotnetSettingsOrBuilder
    • getRenamedResourcesMap

      public Map<String,String> getRenamedResourcesMap()
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
      Specified by:
      getRenamedResourcesMap in interface DotnetSettingsOrBuilder
    • getRenamedResourcesOrDefault

      public String getRenamedResourcesOrDefault(String key, String defaultValue)
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
      Specified by:
      getRenamedResourcesOrDefault in interface DotnetSettingsOrBuilder
    • getRenamedResourcesOrThrow

      public String getRenamedResourcesOrThrow(String key)
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
      Specified by:
      getRenamedResourcesOrThrow in interface DotnetSettingsOrBuilder
    • putRenamedResources

      public DotnetSettings.Builder putRenamedResources(String key, String value)
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
    • putAllRenamedResources

      public DotnetSettings.Builder putAllRenamedResources(Map<String,String> values)
       Map from full resource types to the effective short name
       for the resource. This is used when otherwise resource
       named from different services would cause naming collisions.
       Example entry:
       "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
       
      map<string, string> renamed_resources = 3 [json_name = "renamedResources"];
    • getIgnoredResourcesList

      public List<String> getIgnoredResourcesList()
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Specified by:
      getIgnoredResourcesList in interface DotnetSettingsOrBuilder
      Returns:
      A list containing the ignoredResources.
    • getIgnoredResourcesCount

      public int getIgnoredResourcesCount()
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Specified by:
      getIgnoredResourcesCount in interface DotnetSettingsOrBuilder
      Returns:
      The count of ignoredResources.
    • getIgnoredResources

      public String getIgnoredResources(int index)
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Specified by:
      getIgnoredResources in interface DotnetSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ignoredResources at the given index.
    • getIgnoredResourcesBytes

      public com.google.protobuf.ByteString getIgnoredResourcesBytes(int index)
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Specified by:
      getIgnoredResourcesBytes in interface DotnetSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ignoredResources at the given index.
    • setIgnoredResources

      public DotnetSettings.Builder setIgnoredResources(int index, String value)
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Parameters:
      index - The index to set the value at.
      value - The ignoredResources to set.
      Returns:
      This builder for chaining.
    • addIgnoredResources

      public DotnetSettings.Builder addIgnoredResources(String value)
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Parameters:
      value - The ignoredResources to add.
      Returns:
      This builder for chaining.
    • addAllIgnoredResources

      public DotnetSettings.Builder addAllIgnoredResources(Iterable<String> values)
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Parameters:
      values - The ignoredResources to add.
      Returns:
      This builder for chaining.
    • clearIgnoredResources

      public DotnetSettings.Builder clearIgnoredResources()
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Returns:
      This builder for chaining.
    • addIgnoredResourcesBytes

      public DotnetSettings.Builder addIgnoredResourcesBytes(com.google.protobuf.ByteString value)
       List of full resource types to ignore during generation.
       This is typically used for API-specific Location resources,
       which should be handled by the generator as if they were actually
       the common Location resources.
       Example entry: "documentai.googleapis.com/Location"
       
      repeated string ignored_resources = 4 [json_name = "ignoredResources"];
      Parameters:
      value - The bytes of the ignoredResources to add.
      Returns:
      This builder for chaining.
    • getForcedNamespaceAliasesList

      public List<String> getForcedNamespaceAliasesList()
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Specified by:
      getForcedNamespaceAliasesList in interface DotnetSettingsOrBuilder
      Returns:
      A list containing the forcedNamespaceAliases.
    • getForcedNamespaceAliasesCount

      public int getForcedNamespaceAliasesCount()
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Specified by:
      getForcedNamespaceAliasesCount in interface DotnetSettingsOrBuilder
      Returns:
      The count of forcedNamespaceAliases.
    • getForcedNamespaceAliases

      public String getForcedNamespaceAliases(int index)
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Specified by:
      getForcedNamespaceAliases in interface DotnetSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The forcedNamespaceAliases at the given index.
    • getForcedNamespaceAliasesBytes

      public com.google.protobuf.ByteString getForcedNamespaceAliasesBytes(int index)
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Specified by:
      getForcedNamespaceAliasesBytes in interface DotnetSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the forcedNamespaceAliases at the given index.
    • setForcedNamespaceAliases

      public DotnetSettings.Builder setForcedNamespaceAliases(int index, String value)
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Parameters:
      index - The index to set the value at.
      value - The forcedNamespaceAliases to set.
      Returns:
      This builder for chaining.
    • addForcedNamespaceAliases

      public DotnetSettings.Builder addForcedNamespaceAliases(String value)
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Parameters:
      value - The forcedNamespaceAliases to add.
      Returns:
      This builder for chaining.
    • addAllForcedNamespaceAliases

      public DotnetSettings.Builder addAllForcedNamespaceAliases(Iterable<String> values)
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Parameters:
      values - The forcedNamespaceAliases to add.
      Returns:
      This builder for chaining.
    • clearForcedNamespaceAliases

      public DotnetSettings.Builder clearForcedNamespaceAliases()
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Returns:
      This builder for chaining.
    • addForcedNamespaceAliasesBytes

      public DotnetSettings.Builder addForcedNamespaceAliasesBytes(com.google.protobuf.ByteString value)
       Namespaces which must be aliased in snippets due to
       a known (but non-generator-predictable) naming collision
       
      repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"];
      Parameters:
      value - The bytes of the forcedNamespaceAliases to add.
      Returns:
      This builder for chaining.
    • getHandwrittenSignaturesList

      public List<String> getHandwrittenSignaturesList()
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Specified by:
      getHandwrittenSignaturesList in interface DotnetSettingsOrBuilder
      Returns:
      A list containing the handwrittenSignatures.
    • getHandwrittenSignaturesCount

      public int getHandwrittenSignaturesCount()
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Specified by:
      getHandwrittenSignaturesCount in interface DotnetSettingsOrBuilder
      Returns:
      The count of handwrittenSignatures.
    • getHandwrittenSignatures

      public String getHandwrittenSignatures(int index)
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Specified by:
      getHandwrittenSignatures in interface DotnetSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The handwrittenSignatures at the given index.
    • getHandwrittenSignaturesBytes

      public com.google.protobuf.ByteString getHandwrittenSignaturesBytes(int index)
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Specified by:
      getHandwrittenSignaturesBytes in interface DotnetSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the handwrittenSignatures at the given index.
    • setHandwrittenSignatures

      public DotnetSettings.Builder setHandwrittenSignatures(int index, String value)
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Parameters:
      index - The index to set the value at.
      value - The handwrittenSignatures to set.
      Returns:
      This builder for chaining.
    • addHandwrittenSignatures

      public DotnetSettings.Builder addHandwrittenSignatures(String value)
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Parameters:
      value - The handwrittenSignatures to add.
      Returns:
      This builder for chaining.
    • addAllHandwrittenSignatures

      public DotnetSettings.Builder addAllHandwrittenSignatures(Iterable<String> values)
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Parameters:
      values - The handwrittenSignatures to add.
      Returns:
      This builder for chaining.
    • clearHandwrittenSignatures

      public DotnetSettings.Builder clearHandwrittenSignatures()
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Returns:
      This builder for chaining.
    • addHandwrittenSignaturesBytes

      public DotnetSettings.Builder addHandwrittenSignaturesBytes(com.google.protobuf.ByteString value)
       Method signatures (in the form "service.method(signature)")
       which are provided separately, so shouldn't be generated.
       Snippets *calling* these methods are still generated, however.
       
      repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"];
      Parameters:
      value - The bytes of the handwrittenSignatures to add.
      Returns:
      This builder for chaining.