com.google.api.services.serviceusage.v1.model.GoogleApiServiceusageV1ServiceConfig Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.serviceusage.v1.model;
/**
* The configuration of the service.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Service Usage API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleApiServiceusageV1ServiceConfig extends com.google.api.client.json.GenericJson {
/**
* A list of API interfaces exported by this service. Contains only the names, versions, and
* method names of the interfaces.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List apis;
static {
// hack to force ProGuard to consider Api used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(Api.class);
}
/**
* Auth configuration. Contains only the OAuth rules.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Authentication authentication;
/**
* Additional API documentation. Contains only the summary and the documentation URL.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Documentation documentation;
/**
* Configuration for network endpoints. Contains only the names and aliases of the endpoints.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List endpoints;
static {
// hack to force ProGuard to consider Endpoint used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(Endpoint.class);
}
/**
* Defines the monitored resources used by this service. This is required by the
* Service.monitoring and Service.logging configurations.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List monitoredResources;
/**
* Monitoring configuration. This should not include the 'producer_destinations' field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Monitoring monitoring;
/**
* The DNS address at which this service is available. An example DNS address would be:
* `calendar.googleapis.com`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Quota configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Quota quota;
/**
* The product title for this service.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;
/**
* Configuration controlling usage of this service.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Usage usage;
/**
* A list of API interfaces exported by this service. Contains only the names, versions, and
* method names of the interfaces.
* @return value or {@code null} for none
*/
public java.util.List getApis() {
return apis;
}
/**
* A list of API interfaces exported by this service. Contains only the names, versions, and
* method names of the interfaces.
* @param apis apis or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setApis(java.util.List apis) {
this.apis = apis;
return this;
}
/**
* Auth configuration. Contains only the OAuth rules.
* @return value or {@code null} for none
*/
public Authentication getAuthentication() {
return authentication;
}
/**
* Auth configuration. Contains only the OAuth rules.
* @param authentication authentication or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setAuthentication(Authentication authentication) {
this.authentication = authentication;
return this;
}
/**
* Additional API documentation. Contains only the summary and the documentation URL.
* @return value or {@code null} for none
*/
public Documentation getDocumentation() {
return documentation;
}
/**
* Additional API documentation. Contains only the summary and the documentation URL.
* @param documentation documentation or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setDocumentation(Documentation documentation) {
this.documentation = documentation;
return this;
}
/**
* Configuration for network endpoints. Contains only the names and aliases of the endpoints.
* @return value or {@code null} for none
*/
public java.util.List getEndpoints() {
return endpoints;
}
/**
* Configuration for network endpoints. Contains only the names and aliases of the endpoints.
* @param endpoints endpoints or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setEndpoints(java.util.List endpoints) {
this.endpoints = endpoints;
return this;
}
/**
* Defines the monitored resources used by this service. This is required by the
* Service.monitoring and Service.logging configurations.
* @return value or {@code null} for none
*/
public java.util.List getMonitoredResources() {
return monitoredResources;
}
/**
* Defines the monitored resources used by this service. This is required by the
* Service.monitoring and Service.logging configurations.
* @param monitoredResources monitoredResources or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setMonitoredResources(java.util.List monitoredResources) {
this.monitoredResources = monitoredResources;
return this;
}
/**
* Monitoring configuration. This should not include the 'producer_destinations' field.
* @return value or {@code null} for none
*/
public Monitoring getMonitoring() {
return monitoring;
}
/**
* Monitoring configuration. This should not include the 'producer_destinations' field.
* @param monitoring monitoring or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setMonitoring(Monitoring monitoring) {
this.monitoring = monitoring;
return this;
}
/**
* The DNS address at which this service is available. An example DNS address would be:
* `calendar.googleapis.com`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The DNS address at which this service is available. An example DNS address would be:
* `calendar.googleapis.com`.
* @param name name or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Quota configuration.
* @return value or {@code null} for none
*/
public Quota getQuota() {
return quota;
}
/**
* Quota configuration.
* @param quota quota or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setQuota(Quota quota) {
this.quota = quota;
return this;
}
/**
* The product title for this service.
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}
/**
* The product title for this service.
* @param title title or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setTitle(java.lang.String title) {
this.title = title;
return this;
}
/**
* Configuration controlling usage of this service.
* @return value or {@code null} for none
*/
public Usage getUsage() {
return usage;
}
/**
* Configuration controlling usage of this service.
* @param usage usage or {@code null} for none
*/
public GoogleApiServiceusageV1ServiceConfig setUsage(Usage usage) {
this.usage = usage;
return this;
}
@Override
public GoogleApiServiceusageV1ServiceConfig set(String fieldName, Object value) {
return (GoogleApiServiceusageV1ServiceConfig) super.set(fieldName, value);
}
@Override
public GoogleApiServiceusageV1ServiceConfig clone() {
return (GoogleApiServiceusageV1ServiceConfig) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy