com.google.api.services.analyticsadmin.v1beta.model.GoogleAnalyticsAdminV1betaAccessQuota 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.analyticsadmin.v1beta.model;
/**
* Current state of all quotas for this Analytics property. If any quota for a property is
* exhausted, all requests to that property will return Resource Exhausted errors.
*
* 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 Google Analytics Admin 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 GoogleAnalyticsAdminV1betaAccessQuota extends com.google.api.client.json.GenericJson {
/**
* Properties can use up to 50 concurrent requests.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleAnalyticsAdminV1betaAccessQuotaStatus concurrentRequests;
/**
* Properties and cloud project pairs can have up to 50 server errors per hour.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleAnalyticsAdminV1betaAccessQuotaStatus serverErrorsPerProjectPerHour;
/**
* Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleAnalyticsAdminV1betaAccessQuotaStatus tokensPerDay;
/**
* Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens,
* and that number is deducted from all of the hourly, daily, and per project hourly quotas.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleAnalyticsAdminV1betaAccessQuotaStatus tokensPerHour;
/**
* Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics
* 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single
* number of tokens, and that number is deducted from all of the hourly, daily, and per project
* hourly quotas.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleAnalyticsAdminV1betaAccessQuotaStatus tokensPerProjectPerHour;
/**
* Properties can use up to 50 concurrent requests.
* @return value or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuotaStatus getConcurrentRequests() {
return concurrentRequests;
}
/**
* Properties can use up to 50 concurrent requests.
* @param concurrentRequests concurrentRequests or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuota setConcurrentRequests(GoogleAnalyticsAdminV1betaAccessQuotaStatus concurrentRequests) {
this.concurrentRequests = concurrentRequests;
return this;
}
/**
* Properties and cloud project pairs can have up to 50 server errors per hour.
* @return value or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuotaStatus getServerErrorsPerProjectPerHour() {
return serverErrorsPerProjectPerHour;
}
/**
* Properties and cloud project pairs can have up to 50 server errors per hour.
* @param serverErrorsPerProjectPerHour serverErrorsPerProjectPerHour or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuota setServerErrorsPerProjectPerHour(GoogleAnalyticsAdminV1betaAccessQuotaStatus serverErrorsPerProjectPerHour) {
this.serverErrorsPerProjectPerHour = serverErrorsPerProjectPerHour;
return this;
}
/**
* Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
* @return value or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuotaStatus getTokensPerDay() {
return tokensPerDay;
}
/**
* Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
* @param tokensPerDay tokensPerDay or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuota setTokensPerDay(GoogleAnalyticsAdminV1betaAccessQuotaStatus tokensPerDay) {
this.tokensPerDay = tokensPerDay;
return this;
}
/**
* Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens,
* and that number is deducted from all of the hourly, daily, and per project hourly quotas.
* @return value or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuotaStatus getTokensPerHour() {
return tokensPerHour;
}
/**
* Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens,
* and that number is deducted from all of the hourly, daily, and per project hourly quotas.
* @param tokensPerHour tokensPerHour or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuota setTokensPerHour(GoogleAnalyticsAdminV1betaAccessQuotaStatus tokensPerHour) {
this.tokensPerHour = tokensPerHour;
return this;
}
/**
* Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics
* 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single
* number of tokens, and that number is deducted from all of the hourly, daily, and per project
* hourly quotas.
* @return value or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuotaStatus getTokensPerProjectPerHour() {
return tokensPerProjectPerHour;
}
/**
* Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics
* 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single
* number of tokens, and that number is deducted from all of the hourly, daily, and per project
* hourly quotas.
* @param tokensPerProjectPerHour tokensPerProjectPerHour or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessQuota setTokensPerProjectPerHour(GoogleAnalyticsAdminV1betaAccessQuotaStatus tokensPerProjectPerHour) {
this.tokensPerProjectPerHour = tokensPerProjectPerHour;
return this;
}
@Override
public GoogleAnalyticsAdminV1betaAccessQuota set(String fieldName, Object value) {
return (GoogleAnalyticsAdminV1betaAccessQuota) super.set(fieldName, value);
}
@Override
public GoogleAnalyticsAdminV1betaAccessQuota clone() {
return (GoogleAnalyticsAdminV1betaAccessQuota) super.clone();
}
}