Class DataSourceParameter (2.29.0)

public final class DataSourceParameter extends GeneratedMessageV3 implements DataSourceParameterOrBuilder

A parameter used to define custom fields in a data source definition.

Protobuf type google.cloud.bigquery.datatransfer.v1.DataSourceParameter

Static Fields

ALLOWED_VALUES_FIELD_NUMBER

public static final int ALLOWED_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

DEPRECATED_FIELD_NUMBER

public static final int DEPRECATED_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

IMMUTABLE_FIELD_NUMBER

public static final int IMMUTABLE_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_VALUE_FIELD_NUMBER

public static final int MAX_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_VALUE_FIELD_NUMBER

public static final int MIN_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

PARAM_ID_FIELD_NUMBER

public static final int PARAM_ID_FIELD_NUMBER
Field Value
TypeDescription
int

RECURSE_FIELD_NUMBER

public static final int RECURSE_FIELD_NUMBER
Field Value
TypeDescription
int

REPEATED_FIELD_NUMBER

public static final int REPEATED_FIELD_NUMBER
Field Value
TypeDescription
int

REQUIRED_FIELD_NUMBER

public static final int REQUIRED_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATION_DESCRIPTION_FIELD_NUMBER

public static final int VALIDATION_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATION_HELP_URL_FIELD_NUMBER

public static final int VALIDATION_HELP_URL_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATION_REGEX_FIELD_NUMBER

public static final int VALIDATION_REGEX_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataSourceParameter getDefaultInstance()
Returns
TypeDescription
DataSourceParameter

getDescriptor()

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

newBuilder()

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

newBuilder(DataSourceParameter prototype)

public static DataSourceParameter.Builder newBuilder(DataSourceParameter prototype)
Parameter
NameDescription
prototypeDataSourceParameter
Returns
TypeDescription
DataSourceParameter.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAllowedValues(int index)

public String getAllowedValues(int index)

All possible values for the parameter.

repeated string allowed_values = 8;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedValues at the given index.

getAllowedValuesBytes(int index)

public ByteString getAllowedValuesBytes(int index)

All possible values for the parameter.

repeated string allowed_values = 8;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedValues at the given index.

getAllowedValuesCount()

public int getAllowedValuesCount()

All possible values for the parameter.

repeated string allowed_values = 8;

Returns
TypeDescription
int

The count of allowedValues.

getAllowedValuesList()

public ProtocolStringList getAllowedValuesList()

All possible values for the parameter.

repeated string allowed_values = 8;

Returns
TypeDescription
ProtocolStringList

A list containing the allowedValues.

getDefaultInstanceForType()

public DataSourceParameter getDefaultInstanceForType()
Returns
TypeDescription
DataSourceParameter

getDeprecated()

public boolean getDeprecated()

If true, it should not be used in new transfers, and it should not be visible to users.

bool deprecated = 20;

Returns
TypeDescription
boolean

The deprecated.

getDescription()

public String getDescription()

Parameter description.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Parameter description.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

Parameter display name in the user interface.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Parameter display name in the user interface.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getFields(int index)

public DataSourceParameter getFields(int index)

Deprecated. This field has no effect.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSourceParameter

getFieldsCount()

public int getFieldsCount()

Deprecated. This field has no effect.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;

Returns
TypeDescription
int

getFieldsList()

public List<DataSourceParameter> getFieldsList()

Deprecated. This field has no effect.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;

Returns
TypeDescription
List<DataSourceParameter>

getFieldsOrBuilder(int index)

public DataSourceParameterOrBuilder getFieldsOrBuilder(int index)

Deprecated. This field has no effect.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSourceParameterOrBuilder

getFieldsOrBuilderList()

public List<? extends DataSourceParameterOrBuilder> getFieldsOrBuilderList()

Deprecated. This field has no effect.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>

getImmutable()

public boolean getImmutable()

Cannot be changed after initial creation.

bool immutable = 14;

Returns
TypeDescription
boolean

The immutable.

getMaxValue()

public DoubleValue getMaxValue()

For integer and double values specifies maximum allowed value.

.google.protobuf.DoubleValue max_value = 10;

Returns
TypeDescription
DoubleValue

The maxValue.

getMaxValueOrBuilder()

public DoubleValueOrBuilder getMaxValueOrBuilder()

For integer and double values specifies maximum allowed value.

.google.protobuf.DoubleValue max_value = 10;

Returns
TypeDescription
DoubleValueOrBuilder

getMinValue()

public DoubleValue getMinValue()

For integer and double values specifies minimum allowed value.

.google.protobuf.DoubleValue min_value = 9;

Returns
TypeDescription
DoubleValue

The minValue.

getMinValueOrBuilder()

public DoubleValueOrBuilder getMinValueOrBuilder()

For integer and double values specifies minimum allowed value.

.google.protobuf.DoubleValue min_value = 9;

Returns
TypeDescription
DoubleValueOrBuilder

getParamId()

public String getParamId()

Parameter identifier.

string param_id = 1;

Returns
TypeDescription
String

The paramId.

getParamIdBytes()

public ByteString getParamIdBytes()

Parameter identifier.

string param_id = 1;

Returns
TypeDescription
ByteString

The bytes for paramId.

getParserForType()

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

getRecurse()

public boolean getRecurse()

Deprecated. This field has no effect.

bool recurse = 15;

Returns
TypeDescription
boolean

The recurse.

getRepeated()

public boolean getRepeated()

Deprecated. This field has no effect.

bool repeated = 6;

Returns
TypeDescription
boolean

The repeated.

getRequired()

public boolean getRequired()

Is parameter required.

bool required = 5;

Returns
TypeDescription
boolean

The required.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public DataSourceParameter.Type getType()

Parameter type.

.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4;

Returns
TypeDescription
DataSourceParameter.Type

The type.

getTypeValue()

public int getTypeValue()

Parameter type.

.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getValidationDescription()

public String getValidationDescription()

Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values.

string validation_description = 12;

Returns
TypeDescription
String

The validationDescription.

getValidationDescriptionBytes()

public ByteString getValidationDescriptionBytes()

Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values.

string validation_description = 12;

Returns
TypeDescription
ByteString

The bytes for validationDescription.

getValidationHelpUrl()

public String getValidationHelpUrl()

URL to a help document to further explain the naming requirements.

string validation_help_url = 13;

Returns
TypeDescription
String

The validationHelpUrl.

getValidationHelpUrlBytes()

public ByteString getValidationHelpUrlBytes()

URL to a help document to further explain the naming requirements.

string validation_help_url = 13;

Returns
TypeDescription
ByteString

The bytes for validationHelpUrl.

getValidationRegex()

public String getValidationRegex()

Regular expression which can be used for parameter validation.

string validation_regex = 7;

Returns
TypeDescription
String

The validationRegex.

getValidationRegexBytes()

public ByteString getValidationRegexBytes()

Regular expression which can be used for parameter validation.

string validation_regex = 7;

Returns
TypeDescription
ByteString

The bytes for validationRegex.

hasMaxValue()

public boolean hasMaxValue()

For integer and double values specifies maximum allowed value.

.google.protobuf.DoubleValue max_value = 10;

Returns
TypeDescription
boolean

Whether the maxValue field is set.

hasMinValue()

public boolean hasMinValue()

For integer and double values specifies minimum allowed value.

.google.protobuf.DoubleValue min_value = 9;

Returns
TypeDescription
boolean

Whether the minValue field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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