Class JavaSettings.Builder

  • All Implemented Interfaces:
    JavaSettingsOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    JavaSettings

    public static final class JavaSettings.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
    implements JavaSettingsOrBuilder
     Settings for Java client libraries.
     
    Protobuf type google.api.JavaSettings
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<JavaSettings.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<JavaSettings.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • clear

        public JavaSettings.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.GeneratedMessageV3.Builder<JavaSettings.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<JavaSettings.Builder>
      • getDefaultInstanceForType

        public JavaSettings getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public JavaSettings build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public JavaSettings buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public JavaSettings.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • setField

        public JavaSettings.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • clearField

        public JavaSettings.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • clearOneof

        public JavaSettings.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • setRepeatedField

        public JavaSettings.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • addRepeatedField

        public JavaSettings.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • mergeFrom

        public JavaSettings.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<JavaSettings.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,​JavaSettings.Builder>
      • mergeFrom

        public JavaSettings.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.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<JavaSettings.Builder>
        Throws:
        java.io.IOException
      • getLibraryPackage

        public java.lang.String getLibraryPackage()
         The package name to use in Java. Clobbers the java_package option
         set in the protobuf. This should be used **only** by APIs
         who have already set the language_settings.java.package_name" field
         in gapic.yaml. API teams should use the protobuf java_package option
         where possible.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              library_package: com.google.cloud.pubsub.v1
         
        string library_package = 1;
        Specified by:
        getLibraryPackage in interface JavaSettingsOrBuilder
        Returns:
        The libraryPackage.
      • getLibraryPackageBytes

        public com.google.protobuf.ByteString getLibraryPackageBytes()
         The package name to use in Java. Clobbers the java_package option
         set in the protobuf. This should be used **only** by APIs
         who have already set the language_settings.java.package_name" field
         in gapic.yaml. API teams should use the protobuf java_package option
         where possible.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              library_package: com.google.cloud.pubsub.v1
         
        string library_package = 1;
        Specified by:
        getLibraryPackageBytes in interface JavaSettingsOrBuilder
        Returns:
        The bytes for libraryPackage.
      • setLibraryPackage

        public JavaSettings.Builder setLibraryPackage​(java.lang.String value)
         The package name to use in Java. Clobbers the java_package option
         set in the protobuf. This should be used **only** by APIs
         who have already set the language_settings.java.package_name" field
         in gapic.yaml. API teams should use the protobuf java_package option
         where possible.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              library_package: com.google.cloud.pubsub.v1
         
        string library_package = 1;
        Parameters:
        value - The libraryPackage to set.
        Returns:
        This builder for chaining.
      • clearLibraryPackage

        public JavaSettings.Builder clearLibraryPackage()
         The package name to use in Java. Clobbers the java_package option
         set in the protobuf. This should be used **only** by APIs
         who have already set the language_settings.java.package_name" field
         in gapic.yaml. API teams should use the protobuf java_package option
         where possible.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              library_package: com.google.cloud.pubsub.v1
         
        string library_package = 1;
        Returns:
        This builder for chaining.
      • setLibraryPackageBytes

        public JavaSettings.Builder setLibraryPackageBytes​(com.google.protobuf.ByteString value)
         The package name to use in Java. Clobbers the java_package option
         set in the protobuf. This should be used **only** by APIs
         who have already set the language_settings.java.package_name" field
         in gapic.yaml. API teams should use the protobuf java_package option
         where possible.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              library_package: com.google.cloud.pubsub.v1
         
        string library_package = 1;
        Parameters:
        value - The bytes for libraryPackage to set.
        Returns:
        This builder for chaining.
      • getServiceClassNamesCount

        public int getServiceClassNamesCount()
        Description copied from interface: JavaSettingsOrBuilder
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
        Specified by:
        getServiceClassNamesCount in interface JavaSettingsOrBuilder
      • containsServiceClassNames

        public boolean containsServiceClassNames​(java.lang.String key)
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
        Specified by:
        containsServiceClassNames in interface JavaSettingsOrBuilder
      • getServiceClassNamesMap

        public java.util.Map<java.lang.String,​java.lang.String> getServiceClassNamesMap()
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
        Specified by:
        getServiceClassNamesMap in interface JavaSettingsOrBuilder
      • getServiceClassNamesOrDefault

        public java.lang.String getServiceClassNamesOrDefault​(java.lang.String key,
                                                              java.lang.String defaultValue)
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
        Specified by:
        getServiceClassNamesOrDefault in interface JavaSettingsOrBuilder
      • getServiceClassNamesOrThrow

        public java.lang.String getServiceClassNamesOrThrow​(java.lang.String key)
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
        Specified by:
        getServiceClassNamesOrThrow in interface JavaSettingsOrBuilder
      • removeServiceClassNames

        public JavaSettings.Builder removeServiceClassNames​(java.lang.String key)
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
      • getMutableServiceClassNames

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableServiceClassNames()
        Deprecated.
        Use alternate mutation accessors instead.
      • putServiceClassNames

        public JavaSettings.Builder putServiceClassNames​(java.lang.String key,
                                                         java.lang.String value)
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
      • putAllServiceClassNames

        public JavaSettings.Builder putAllServiceClassNames​(java.util.Map<java.lang.String,​java.lang.String> values)
         Configure the Java class name to use instead of the service's for its
         corresponding generated GAPIC client. Keys are fully-qualified
         service names as they appear in the protobuf (including the full
         the language_settings.java.interface_names" field in gapic.yaml. API
         teams should otherwise use the service name as it appears in the
         protobuf.
        
         Example of a YAML configuration::
        
          publishing:
            java_settings:
              service_class_names:
                - google.pubsub.v1.Publisher: TopicAdmin
                - google.pubsub.v1.Subscriber: SubscriptionAdmin
         
        map<string, string> service_class_names = 2;
      • hasCommon

        public boolean hasCommon()
         Some settings.
         
        .google.api.CommonLanguageSettings common = 3;
        Specified by:
        hasCommon in interface JavaSettingsOrBuilder
        Returns:
        Whether the common field is set.
      • clearCommon

        public JavaSettings.Builder clearCommon()
         Some settings.
         
        .google.api.CommonLanguageSettings common = 3;
      • setUnknownFields

        public final JavaSettings.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>
      • mergeUnknownFields

        public final JavaSettings.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JavaSettings.Builder>