Class StructType (2.2.2)

public final class StructType extends GeneratedMessageV3 implements StructTypeOrBuilder

StructType defines the DataType-s of a STRUCT type.

Protobuf type google.cloud.automl.v1beta1.StructType

Implements

StructTypeOrBuilder

Static Fields

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StructType getDefaultInstance()
Returns
TypeDescription
StructType

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StructType.Builder newBuilder()
Returns
TypeDescription
StructType.Builder

newBuilder(StructType prototype)

public static StructType.Builder newBuilder(StructType prototype)
Parameter
NameDescription
prototypeStructType
Returns
TypeDescription
StructType.Builder

parseDelimitedFrom(InputStream input)

public static StructType parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StructType
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StructType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StructType parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StructType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StructType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StructType parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StructType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StructType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StructType parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StructType
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StructType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StructType parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StructType
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StructType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StructType parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StructType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StructType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StructType> parser()
Returns
TypeDescription
Parser<StructType>

Methods

containsFields(String key)

public boolean containsFields(String key)

Unordered map of struct field names to their data types. Fields cannot be added or removed via Update. Their names and data types are still mutable.

map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public StructType getDefaultInstanceForType()
Returns
TypeDescription
StructType

getFields()

public Map<String,DataType> getFields()

Use #getFieldsMap() instead.

Returns
TypeDescription
Map<String,DataType>

getFieldsCount()

public int getFieldsCount()

Unordered map of struct field names to their data types. Fields cannot be added or removed via Update. Their names and data types are still mutable.

map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;

Returns
TypeDescription
int

getFieldsMap()

public Map<String,DataType> getFieldsMap()

Unordered map of struct field names to their data types. Fields cannot be added or removed via Update. Their names and data types are still mutable.

map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;

Returns
TypeDescription
Map<String,DataType>

getFieldsOrDefault(String key, DataType defaultValue)

public DataType getFieldsOrDefault(String key, DataType defaultValue)

Unordered map of struct field names to their data types. Fields cannot be added or removed via Update. Their names and data types are still mutable.

map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;

Parameters
NameDescription
keyString
defaultValueDataType
Returns
TypeDescription
DataType

getFieldsOrThrow(String key)

public DataType getFieldsOrThrow(String key)

Unordered map of struct field names to their data types. Fields cannot be added or removed via Update. Their names and data types are still mutable.

map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
DataType

getParserForType()

public Parser<StructType> getParserForType()
Returns
TypeDescription
Parser<StructType>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StructType.Builder newBuilderForType()
Returns
TypeDescription
StructType.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StructType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StructType.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StructType.Builder toBuilder()
Returns
TypeDescription
StructType.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException