Package com.google.cloud.automl.v1beta1
Interface DataTypeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DataType
,DataType.Builder
public interface DataTypeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataType.DetailsCase
getDetailsCase()
DataType
getListElementType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.DataTypeOrBuilder
getListElementTypeOrBuilder()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.boolean
getNullable()
If true, this DataType can also be `NULL`.StructType
getStructType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.StructTypeOrBuilder
getStructTypeOrBuilder()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.String
getTimeFormat()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed.com.google.protobuf.ByteString
getTimeFormatBytes()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed.TypeCode
getTypeCode()
Required.int
getTypeCodeValue()
Required.boolean
hasListElementType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.boolean
hasStructType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.boolean
hasTimeFormat()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasListElementType
boolean hasListElementType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
.google.cloud.automl.v1beta1.DataType list_element_type = 2;
- Returns:
- Whether the listElementType field is set.
-
getListElementType
DataType getListElementType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
.google.cloud.automl.v1beta1.DataType list_element_type = 2;
- Returns:
- The listElementType.
-
getListElementTypeOrBuilder
DataTypeOrBuilder getListElementTypeOrBuilder()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
.google.cloud.automl.v1beta1.DataType list_element_type = 2;
-
hasStructType
boolean hasStructType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.cloud.automl.v1beta1.StructType struct_type = 3;
- Returns:
- Whether the structType field is set.
-
getStructType
StructType getStructType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.cloud.automl.v1beta1.StructType struct_type = 3;
- Returns:
- The structType.
-
getStructTypeOrBuilder
StructTypeOrBuilder getStructTypeOrBuilder()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.cloud.automl.v1beta1.StructType struct_type = 3;
-
hasTimeFormat
boolean hasTimeFormat()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
string time_format = 5;
- Returns:
- Whether the timeFormat field is set.
-
getTimeFormat
String getTimeFormat()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
string time_format = 5;
- Returns:
- The timeFormat.
-
getTimeFormatBytes
com.google.protobuf.ByteString getTimeFormatBytes()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
string time_format = 5;
- Returns:
- The bytes for timeFormat.
-
getTypeCodeValue
int getTypeCodeValue()
Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
.google.cloud.automl.v1beta1.TypeCode type_code = 1;
- Returns:
- The enum numeric value on the wire for typeCode.
-
getTypeCode
TypeCode getTypeCode()
Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
.google.cloud.automl.v1beta1.TypeCode type_code = 1;
- Returns:
- The typeCode.
-
getNullable
boolean getNullable()
If true, this DataType can also be `NULL`. In .CSV files `NULL` value is expressed as an empty string.
bool nullable = 4;
- Returns:
- The nullable.
-
getDetailsCase
DataType.DetailsCase getDetailsCase()
-
-