com.google.api.services.bigquery.model.RangePartitioning 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.bigquery.model;
/**
* Model definition for RangePartitioning.
*
* 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 BigQuery 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 RangePartitioning extends com.google.api.client.json.GenericJson {
/**
* Required. The name of the column to partition the table on. It must be a top-level, INT64
* column whose mode is NULLABLE or REQUIRED.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String field;
/**
* [Experimental] Defines the ranges for range partitioning.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Range range;
/**
* Required. The name of the column to partition the table on. It must be a top-level, INT64
* column whose mode is NULLABLE or REQUIRED.
* @return value or {@code null} for none
*/
public java.lang.String getField() {
return field;
}
/**
* Required. The name of the column to partition the table on. It must be a top-level, INT64
* column whose mode is NULLABLE or REQUIRED.
* @param field field or {@code null} for none
*/
public RangePartitioning setField(java.lang.String field) {
this.field = field;
return this;
}
/**
* [Experimental] Defines the ranges for range partitioning.
* @return value or {@code null} for none
*/
public Range getRange() {
return range;
}
/**
* [Experimental] Defines the ranges for range partitioning.
* @param range range or {@code null} for none
*/
public RangePartitioning setRange(Range range) {
this.range = range;
return this;
}
@Override
public RangePartitioning set(String fieldName, Object value) {
return (RangePartitioning) super.set(fieldName, value);
}
@Override
public RangePartitioning clone() {
return (RangePartitioning) super.clone();
}
/**
* [Experimental] Defines the ranges for range partitioning.
*/
public static final class Range extends com.google.api.client.json.GenericJson {
/**
* [Experimental] The end of range partitioning, exclusive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long end;
/**
* [Experimental] The width of each interval.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long interval;
/**
* [Experimental] The start of range partitioning, inclusive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long start;
/**
* [Experimental] The end of range partitioning, exclusive.
* @return value or {@code null} for none
*/
public java.lang.Long getEnd() {
return end;
}
/**
* [Experimental] The end of range partitioning, exclusive.
* @param end end or {@code null} for none
*/
public Range setEnd(java.lang.Long end) {
this.end = end;
return this;
}
/**
* [Experimental] The width of each interval.
* @return value or {@code null} for none
*/
public java.lang.Long getInterval() {
return interval;
}
/**
* [Experimental] The width of each interval.
* @param interval interval or {@code null} for none
*/
public Range setInterval(java.lang.Long interval) {
this.interval = interval;
return this;
}
/**
* [Experimental] The start of range partitioning, inclusive.
* @return value or {@code null} for none
*/
public java.lang.Long getStart() {
return start;
}
/**
* [Experimental] The start of range partitioning, inclusive.
* @param start start or {@code null} for none
*/
public Range setStart(java.lang.Long start) {
this.start = start;
return this;
}
@Override
public Range set(String fieldName, Object value) {
return (Range) super.set(fieldName, value);
}
@Override
public Range clone() {
return (Range) super.clone();
}
}
}