Class FieldType.Builder (1.59.0)

public static final class FieldType.Builder extends GeneratedMessageV3.Builder<FieldType.Builder> implements FieldTypeOrBuilder

Protobuf type google.cloud.datacatalog.v1.FieldType

Implements

FieldTypeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FieldType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FieldType.Builder
Overrides

build()

public FieldType build()
Returns
Type Description
FieldType

buildPartial()

public FieldType buildPartial()
Returns
Type Description
FieldType

clear()

public FieldType.Builder clear()
Returns
Type Description
FieldType.Builder
Overrides

clearEnumType()

public FieldType.Builder clearEnumType()

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Returns
Type Description
FieldType.Builder

clearField(Descriptors.FieldDescriptor field)

public FieldType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FieldType.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FieldType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FieldType.Builder
Overrides

clearPrimitiveType()

public FieldType.Builder clearPrimitiveType()

Primitive types, such as string, boolean, etc.

.google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1;

Returns
Type Description
FieldType.Builder

This builder for chaining.

clearTypeDecl()

public FieldType.Builder clearTypeDecl()
Returns
Type Description
FieldType.Builder

clone()

public FieldType.Builder clone()
Returns
Type Description
FieldType.Builder
Overrides

getDefaultInstanceForType()

public FieldType getDefaultInstanceForType()
Returns
Type Description
FieldType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnumType()

public FieldType.EnumType getEnumType()

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Returns
Type Description
FieldType.EnumType

The enumType.

getEnumTypeBuilder()

public FieldType.EnumType.Builder getEnumTypeBuilder()

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Returns
Type Description
FieldType.EnumType.Builder

getEnumTypeOrBuilder()

public FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder()

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Returns
Type Description
FieldType.EnumTypeOrBuilder

getPrimitiveType()

public FieldType.PrimitiveType getPrimitiveType()

Primitive types, such as string, boolean, etc.

.google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1;

Returns
Type Description
FieldType.PrimitiveType

The primitiveType.

getPrimitiveTypeValue()

public int getPrimitiveTypeValue()

Primitive types, such as string, boolean, etc.

.google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for primitiveType.

getTypeDeclCase()

public FieldType.TypeDeclCase getTypeDeclCase()
Returns
Type Description
FieldType.TypeDeclCase

hasEnumType()

public boolean hasEnumType()

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Returns
Type Description
boolean

Whether the enumType field is set.

hasPrimitiveType()

public boolean hasPrimitiveType()

Primitive types, such as string, boolean, etc.

.google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1;

Returns
Type Description
boolean

Whether the primitiveType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEnumType(FieldType.EnumType value)

public FieldType.Builder mergeEnumType(FieldType.EnumType value)

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Parameter
Name Description
value FieldType.EnumType
Returns
Type Description
FieldType.Builder

mergeFrom(FieldType other)

public FieldType.Builder mergeFrom(FieldType other)
Parameter
Name Description
other FieldType
Returns
Type Description
FieldType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FieldType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldType.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FieldType.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FieldType.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FieldType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FieldType.Builder
Overrides

setEnumType(FieldType.EnumType value)

public FieldType.Builder setEnumType(FieldType.EnumType value)

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Parameter
Name Description
value FieldType.EnumType
Returns
Type Description
FieldType.Builder

setEnumType(FieldType.EnumType.Builder builderForValue)

public FieldType.Builder setEnumType(FieldType.EnumType.Builder builderForValue)

An enum type.

.google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2;

Parameter
Name Description
builderForValue FieldType.EnumType.Builder
Returns
Type Description
FieldType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FieldType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FieldType.Builder
Overrides

setPrimitiveType(FieldType.PrimitiveType value)

public FieldType.Builder setPrimitiveType(FieldType.PrimitiveType value)

Primitive types, such as string, boolean, etc.

.google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1;

Parameter
Name Description
value FieldType.PrimitiveType

The primitiveType to set.

Returns
Type Description
FieldType.Builder

This builder for chaining.

setPrimitiveTypeValue(int value)

public FieldType.Builder setPrimitiveTypeValue(int value)

Primitive types, such as string, boolean, etc.

.google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for primitiveType to set.

Returns
Type Description
FieldType.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FieldType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FieldType.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FieldType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FieldType.Builder
Overrides