
com.google.api.services.cloudasset.v1.model.TableFieldSchema 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.cloudasset.v1.model;
/**
* A field in TableSchema.
*
* 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 Cloud Asset 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 TableFieldSchema extends com.google.api.client.json.GenericJson {
/**
* The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores
* (_), and must start with a letter or underscore. The maximum length is 128 characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String field;
/**
* Describes the nested schema fields if the type property is set to RECORD.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List fields;
/**
* The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is
* NULLABLE.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String mode;
/**
* The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN *
* TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD
* indicates that the field contains a nested schema).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores
* (_), and must start with a letter or underscore. The maximum length is 128 characters.
* @return value or {@code null} for none
*/
public java.lang.String getField() {
return field;
}
/**
* The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores
* (_), and must start with a letter or underscore. The maximum length is 128 characters.
* @param field field or {@code null} for none
*/
public TableFieldSchema setField(java.lang.String field) {
this.field = field;
return this;
}
/**
* Describes the nested schema fields if the type property is set to RECORD.
* @return value or {@code null} for none
*/
public java.util.List getFields() {
return fields;
}
/**
* Describes the nested schema fields if the type property is set to RECORD.
* @param fields fields or {@code null} for none
*/
public TableFieldSchema setFields(java.util.List fields) {
this.fields = fields;
return this;
}
/**
* The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is
* NULLABLE.
* @return value or {@code null} for none
*/
public java.lang.String getMode() {
return mode;
}
/**
* The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is
* NULLABLE.
* @param mode mode or {@code null} for none
*/
public TableFieldSchema setMode(java.lang.String mode) {
this.mode = mode;
return this;
}
/**
* The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN *
* TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD
* indicates that the field contains a nested schema).
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN *
* TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD
* indicates that the field contains a nested schema).
* @param type type or {@code null} for none
*/
public TableFieldSchema setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public TableFieldSchema set(String fieldName, Object value) {
return (TableFieldSchema) super.set(fieldName, value);
}
@Override
public TableFieldSchema clone() {
return (TableFieldSchema) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy