Class: Google::Apis::ServiceusageV1::JavaSettings
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ServiceusageV1::JavaSettings
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/serviceusage_v1/classes.rb,
lib/google/apis/serviceusage_v1/representations.rb,
lib/google/apis/serviceusage_v1/representations.rb 
Overview
Settings for Java client libraries.
Instance Attribute Summary collapse
- 
  
    
      #common  ⇒ Google::Apis::ServiceusageV1::CommonLanguageSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required information for every language.
 - 
  
    
      #library_package  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The package name to use in Java.
 - 
  
    
      #service_class_names  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ JavaSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of JavaSettings.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ JavaSettings
Returns a new instance of JavaSettings.
      2970 2971 2972  | 
    
      # File 'lib/google/apis/serviceusage_v1/classes.rb', line 2970 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#common ⇒ Google::Apis::ServiceusageV1::CommonLanguageSettings
Required information for every language.
Corresponds to the JSON property common
      2947 2948 2949  | 
    
      # File 'lib/google/apis/serviceusage_v1/classes.rb', line 2947 def common @common end  | 
  
#library_package ⇒ String
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
Corresponds to the JSON property libraryPackage
      2957 2958 2959  | 
    
      # File 'lib/google/apis/serviceusage_v1/classes.rb', line 2957 def library_package @library_package end  | 
  
#service_class_names ⇒ Hash<String,String>
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
Corresponds to the JSON property serviceClassNames
      2968 2969 2970  | 
    
      # File 'lib/google/apis/serviceusage_v1/classes.rb', line 2968 def service_class_names @service_class_names end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2975 2976 2977 2978 2979  | 
    
      # File 'lib/google/apis/serviceusage_v1/classes.rb', line 2975 def update!(**args) @common = args[:common] if args.key?(:common) @library_package = args[:library_package] if args.key?(:library_package) @service_class_names = args[:service_class_names] if args.key?(:service_class_names) end  |