Class FieldType.Builder (1.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FieldType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldType.Builder
Overrides

build()

public FieldType build()
Returns
TypeDescription
FieldType

buildPartial()

public FieldType buildPartial()
Returns
TypeDescription
FieldType

clear()

public FieldType.Builder clear()
Returns
TypeDescription
FieldType.Builder
Overrides

clearEnumType()

public FieldType.Builder clearEnumType()

An enum type.

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

Returns
TypeDescription
FieldType.Builder

clearField(Descriptors.FieldDescriptor field)

public FieldType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FieldType.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FieldType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
FieldType.Builder

This builder for chaining.

clearTypeDecl()

public FieldType.Builder clearTypeDecl()
Returns
TypeDescription
FieldType.Builder

clone()

public FieldType.Builder clone()
Returns
TypeDescription
FieldType.Builder
Overrides

getDefaultInstanceForType()

public FieldType getDefaultInstanceForType()
Returns
TypeDescription
FieldType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnumType()

public FieldType.EnumType getEnumType()

An enum type.

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

Returns
TypeDescription
FieldType.EnumType

The enumType.

getEnumTypeBuilder()

public FieldType.EnumType.Builder getEnumTypeBuilder()

An enum type.

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

Returns
TypeDescription
FieldType.EnumType.Builder

getEnumTypeOrBuilder()

public FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder()

An enum type.

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

Returns
TypeDescription
FieldType.EnumTypeOrBuilder

getPrimitiveType()

public FieldType.PrimitiveType getPrimitiveType()

Primitive types, such as string, boolean, etc.

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

Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for primitiveType.

getTypeDeclCase()

public FieldType.TypeDeclCase getTypeDeclCase()
Returns
TypeDescription
FieldType.TypeDeclCase

hasEnumType()

public boolean hasEnumType()

An enum type.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the primitiveType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFieldType.EnumType
Returns
TypeDescription
FieldType.Builder

mergeFrom(FieldType other)

public FieldType.Builder mergeFrom(FieldType other)
Parameter
NameDescription
otherFieldType
Returns
TypeDescription
FieldType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FieldType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FieldType.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FieldType.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FieldType.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FieldType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldType.EnumType
Returns
TypeDescription
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
NameDescription
builderForValueFieldType.EnumType.Builder
Returns
TypeDescription
FieldType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FieldType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFieldType.PrimitiveType

The primitiveType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FieldType.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FieldType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldType.Builder
Overrides