Class Action.IncompatibleDataSchema.Builder (1.39.0)

public static final class Action.IncompatibleDataSchema.Builder extends GeneratedMessageV3.Builder<Action.IncompatibleDataSchema.Builder> implements Action.IncompatibleDataSchemaOrBuilder

Action details for incompatible schemas detected by discovery.

Protobuf type google.cloud.dataplex.v1.Action.IncompatibleDataSchema

Static Methods

getDescriptor()

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

Methods

addAllSampledDataLocations(Iterable<String> values)

public Action.IncompatibleDataSchema.Builder addAllSampledDataLocations(Iterable<String> values)

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Parameter
NameDescription
valuesIterable<String>

The sampledDataLocations to add.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSampledDataLocations(String value)

public Action.IncompatibleDataSchema.Builder addSampledDataLocations(String value)

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Parameter
NameDescription
valueString

The sampledDataLocations to add.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

addSampledDataLocationsBytes(ByteString value)

public Action.IncompatibleDataSchema.Builder addSampledDataLocationsBytes(ByteString value)

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Parameter
NameDescription
valueByteString

The bytes of the sampledDataLocations to add.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

build()

public Action.IncompatibleDataSchema build()
Returns
TypeDescription
Action.IncompatibleDataSchema

buildPartial()

public Action.IncompatibleDataSchema buildPartial()
Returns
TypeDescription
Action.IncompatibleDataSchema

clear()

public Action.IncompatibleDataSchema.Builder clear()
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder
Overrides

clearExistingSchema()

public Action.IncompatibleDataSchema.Builder clearExistingSchema()

The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.

string existing_schema = 2;

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNewSchema()

public Action.IncompatibleDataSchema.Builder clearNewSchema()

The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.

string new_schema = 3;

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.IncompatibleDataSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder
Overrides

clearSampledDataLocations()

public Action.IncompatibleDataSchema.Builder clearSampledDataLocations()

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

clearSchemaChange()

public Action.IncompatibleDataSchema.Builder clearSchemaChange()

Whether the action relates to a schema that is incompatible or modified.

.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

clearTable()

public Action.IncompatibleDataSchema.Builder clearTable()

The name of the table containing invalid data.

string table = 1;

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

clone()

public Action.IncompatibleDataSchema.Builder clone()
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder
Overrides

getDefaultInstanceForType()

public Action.IncompatibleDataSchema getDefaultInstanceForType()
Returns
TypeDescription
Action.IncompatibleDataSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExistingSchema()

public String getExistingSchema()

The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.

string existing_schema = 2;

Returns
TypeDescription
String

The existingSchema.

getExistingSchemaBytes()

public ByteString getExistingSchemaBytes()

The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.

string existing_schema = 2;

Returns
TypeDescription
ByteString

The bytes for existingSchema.

getNewSchema()

public String getNewSchema()

The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.

string new_schema = 3;

Returns
TypeDescription
String

The newSchema.

getNewSchemaBytes()

public ByteString getNewSchemaBytes()

The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.

string new_schema = 3;

Returns
TypeDescription
ByteString

The bytes for newSchema.

getSampledDataLocations(int index)

public String getSampledDataLocations(int index)

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sampledDataLocations at the given index.

getSampledDataLocationsBytes(int index)

public ByteString getSampledDataLocationsBytes(int index)

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sampledDataLocations at the given index.

getSampledDataLocationsCount()

public int getSampledDataLocationsCount()

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Returns
TypeDescription
int

The count of sampledDataLocations.

getSampledDataLocationsList()

public ProtocolStringList getSampledDataLocationsList()

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the sampledDataLocations.

getSchemaChange()

public Action.IncompatibleDataSchema.SchemaChange getSchemaChange()

Whether the action relates to a schema that is incompatible or modified.

.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;

Returns
TypeDescription
Action.IncompatibleDataSchema.SchemaChange

The schemaChange.

getSchemaChangeValue()

public int getSchemaChangeValue()

Whether the action relates to a schema that is incompatible or modified.

.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for schemaChange.

getTable()

public String getTable()

The name of the table containing invalid data.

string table = 1;

Returns
TypeDescription
String

The table.

getTableBytes()

public ByteString getTableBytes()

The name of the table containing invalid data.

string table = 1;

Returns
TypeDescription
ByteString

The bytes for table.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Action.IncompatibleDataSchema other)

public Action.IncompatibleDataSchema.Builder mergeFrom(Action.IncompatibleDataSchema other)
Parameter
NameDescription
otherAction.IncompatibleDataSchema
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.IncompatibleDataSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder
Overrides

setExistingSchema(String value)

public Action.IncompatibleDataSchema.Builder setExistingSchema(String value)

The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.

string existing_schema = 2;

Parameter
NameDescription
valueString

The existingSchema to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setExistingSchemaBytes(ByteString value)

public Action.IncompatibleDataSchema.Builder setExistingSchemaBytes(ByteString value)

The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.

string existing_schema = 2;

Parameter
NameDescription
valueByteString

The bytes for existingSchema to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Action.IncompatibleDataSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder
Overrides

setNewSchema(String value)

public Action.IncompatibleDataSchema.Builder setNewSchema(String value)

The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.

string new_schema = 3;

Parameter
NameDescription
valueString

The newSchema to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setNewSchemaBytes(ByteString value)

public Action.IncompatibleDataSchema.Builder setNewSchemaBytes(ByteString value)

The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.

string new_schema = 3;

Parameter
NameDescription
valueByteString

The bytes for newSchema to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

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

public Action.IncompatibleDataSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Action.IncompatibleDataSchema.Builder
Overrides

setSampledDataLocations(int index, String value)

public Action.IncompatibleDataSchema.Builder setSampledDataLocations(int index, String value)

The list of data locations sampled and used for format/schema inference.

repeated string sampled_data_locations = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sampledDataLocations to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setSchemaChange(Action.IncompatibleDataSchema.SchemaChange value)

public Action.IncompatibleDataSchema.Builder setSchemaChange(Action.IncompatibleDataSchema.SchemaChange value)

Whether the action relates to a schema that is incompatible or modified.

.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;

Parameter
NameDescription
valueAction.IncompatibleDataSchema.SchemaChange

The schemaChange to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setSchemaChangeValue(int value)

public Action.IncompatibleDataSchema.Builder setSchemaChangeValue(int value)

Whether the action relates to a schema that is incompatible or modified.

.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setTable(String value)

public Action.IncompatibleDataSchema.Builder setTable(String value)

The name of the table containing invalid data.

string table = 1;

Parameter
NameDescription
valueString

The table to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setTableBytes(ByteString value)

public Action.IncompatibleDataSchema.Builder setTableBytes(ByteString value)

The name of the table containing invalid data.

string table = 1;

Parameter
NameDescription
valueByteString

The bytes for table to set.

Returns
TypeDescription
Action.IncompatibleDataSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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