public final class DataSourceParameter extends GeneratedMessageV3 implements DataSourceParameterOrBuilder
Represents a data source parameter with validation rules, so that parameters can be rendered in the UI. These parameters are given to us by supported data sources, and include all needed information for rendering and validation. Thus, whoever uses this api can decide to generate either generic ui, or custom data source specific forms.Protobuf type
google.cloud.bigquery.datatransfer.v1.DataSourceParameter
Modifier and Type | Class and Description |
---|---|
static class |
DataSourceParameter.Builder
Represents a data source parameter with validation rules, so that
parameters can be rendered in the UI.
|
static class |
DataSourceParameter.Type
Parameter type.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ALLOWED_VALUES_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
FIELDS_FIELD_NUMBER |
static int |
IMMUTABLE_FIELD_NUMBER |
static int |
MAX_VALUE_FIELD_NUMBER |
static int |
MIN_VALUE_FIELD_NUMBER |
static int |
PARAM_ID_FIELD_NUMBER |
static int |
RECURSE_FIELD_NUMBER |
static int |
REPEATED_FIELD_NUMBER |
static int |
REQUIRED_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
VALIDATION_DESCRIPTION_FIELD_NUMBER |
static int |
VALIDATION_HELP_URL_FIELD_NUMBER |
static int |
VALIDATION_REGEX_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAllowedValues(int index)
All possible values for the parameter.
|
ByteString |
getAllowedValuesBytes(int index)
All possible values for the parameter.
|
int |
getAllowedValuesCount()
All possible values for the parameter.
|
ProtocolStringList |
getAllowedValuesList()
All possible values for the parameter.
|
static DataSourceParameter |
getDefaultInstance() |
DataSourceParameter |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
Parameter description.
|
ByteString |
getDescriptionBytes()
Parameter description.
|
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getDisplayName()
Parameter display name in the user interface.
|
ByteString |
getDisplayNameBytes()
Parameter display name in the user interface.
|
DataSourceParameter |
getFields(int index)
When parameter is a record, describes child fields.
|
int |
getFieldsCount()
When parameter is a record, describes child fields.
|
java.util.List<DataSourceParameter> |
getFieldsList()
When parameter is a record, describes child fields.
|
DataSourceParameterOrBuilder |
getFieldsOrBuilder(int index)
When parameter is a record, describes child fields.
|
java.util.List<? extends DataSourceParameterOrBuilder> |
getFieldsOrBuilderList()
When parameter is a record, describes child fields.
|
boolean |
getImmutable()
Cannot be changed after initial creation.
|
DoubleValue |
getMaxValue()
For integer and double values specifies maxminum allowed value.
|
DoubleValueOrBuilder |
getMaxValueOrBuilder()
For integer and double values specifies maxminum allowed value.
|
DoubleValue |
getMinValue()
For integer and double values specifies minimum allowed value.
|
DoubleValueOrBuilder |
getMinValueOrBuilder()
For integer and double values specifies minimum allowed value.
|
java.lang.String |
getParamId()
Parameter identifier.
|
ByteString |
getParamIdBytes()
Parameter identifier.
|
Parser<DataSourceParameter> |
getParserForType() |
boolean |
getRecurse()
If set to true, schema should be taken from the parent with the same
parameter_id.
|
boolean |
getRepeated()
Can parameter have multiple values.
|
boolean |
getRequired()
Is parameter required.
|
int |
getSerializedSize() |
DataSourceParameter.Type |
getType()
Parameter type.
|
int |
getTypeValue()
Parameter type.
|
UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getValidationDescription()
Description of the requirements for this field, in case the user input does
not fulfill the regex pattern or min/max values.
|
ByteString |
getValidationDescriptionBytes()
Description of the requirements for this field, in case the user input does
not fulfill the regex pattern or min/max values.
|
java.lang.String |
getValidationHelpUrl()
URL to a help document to further explain the naming requirements.
|
ByteString |
getValidationHelpUrlBytes()
URL to a help document to further explain the naming requirements.
|
java.lang.String |
getValidationRegex()
Regular expression which can be used for parameter validation.
|
ByteString |
getValidationRegexBytes()
Regular expression which can be used for parameter validation.
|
int |
hashCode() |
boolean |
hasMaxValue()
For integer and double values specifies maxminum allowed value.
|
boolean |
hasMinValue()
For integer and double values specifies minimum allowed value.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DataSourceParameter.Builder |
newBuilder() |
static DataSourceParameter.Builder |
newBuilder(DataSourceParameter prototype) |
DataSourceParameter.Builder |
newBuilderForType() |
protected DataSourceParameter.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static DataSourceParameter |
parseDelimitedFrom(java.io.InputStream input) |
static DataSourceParameter |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DataSourceParameter |
parseFrom(byte[] data) |
static DataSourceParameter |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DataSourceParameter |
parseFrom(java.nio.ByteBuffer data) |
static DataSourceParameter |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DataSourceParameter |
parseFrom(ByteString data) |
static DataSourceParameter |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DataSourceParameter |
parseFrom(CodedInputStream input) |
static DataSourceParameter |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DataSourceParameter |
parseFrom(java.io.InputStream input) |
static DataSourceParameter |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DataSourceParameter> |
parser() |
DataSourceParameter.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PARAM_ID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER
public static final int VALIDATION_REGEX_FIELD_NUMBER
public static final int ALLOWED_VALUES_FIELD_NUMBER
public static final int MIN_VALUE_FIELD_NUMBER
public static final int MAX_VALUE_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
public static final int VALIDATION_DESCRIPTION_FIELD_NUMBER
public static final int VALIDATION_HELP_URL_FIELD_NUMBER
public static final int IMMUTABLE_FIELD_NUMBER
public static final int RECURSE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getParamId()
Parameter identifier.
string param_id = 1;
getParamId
in interface DataSourceParameterOrBuilder
public ByteString getParamIdBytes()
Parameter identifier.
string param_id = 1;
getParamIdBytes
in interface DataSourceParameterOrBuilder
public java.lang.String getDisplayName()
Parameter display name in the user interface.
string display_name = 2;
getDisplayName
in interface DataSourceParameterOrBuilder
public ByteString getDisplayNameBytes()
Parameter display name in the user interface.
string display_name = 2;
getDisplayNameBytes
in interface DataSourceParameterOrBuilder
public java.lang.String getDescription()
Parameter description.
string description = 3;
getDescription
in interface DataSourceParameterOrBuilder
public ByteString getDescriptionBytes()
Parameter description.
string description = 3;
getDescriptionBytes
in interface DataSourceParameterOrBuilder
public int getTypeValue()
Parameter type.
.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4;
getTypeValue
in interface DataSourceParameterOrBuilder
public DataSourceParameter.Type getType()
Parameter type.
.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4;
getType
in interface DataSourceParameterOrBuilder
public boolean getRequired()
Is parameter required.
bool required = 5;
getRequired
in interface DataSourceParameterOrBuilder
public boolean getRepeated()
Can parameter have multiple values.
bool repeated = 6;
getRepeated
in interface DataSourceParameterOrBuilder
public java.lang.String getValidationRegex()
Regular expression which can be used for parameter validation.
string validation_regex = 7;
getValidationRegex
in interface DataSourceParameterOrBuilder
public ByteString getValidationRegexBytes()
Regular expression which can be used for parameter validation.
string validation_regex = 7;
getValidationRegexBytes
in interface DataSourceParameterOrBuilder
public ProtocolStringList getAllowedValuesList()
All possible values for the parameter.
repeated string allowed_values = 8;
getAllowedValuesList
in interface DataSourceParameterOrBuilder
public int getAllowedValuesCount()
All possible values for the parameter.
repeated string allowed_values = 8;
getAllowedValuesCount
in interface DataSourceParameterOrBuilder
public java.lang.String getAllowedValues(int index)
All possible values for the parameter.
repeated string allowed_values = 8;
getAllowedValues
in interface DataSourceParameterOrBuilder
public ByteString getAllowedValuesBytes(int index)
All possible values for the parameter.
repeated string allowed_values = 8;
getAllowedValuesBytes
in interface DataSourceParameterOrBuilder
public boolean hasMinValue()
For integer and double values specifies minimum allowed value.
.google.protobuf.DoubleValue min_value = 9;
hasMinValue
in interface DataSourceParameterOrBuilder
public DoubleValue getMinValue()
For integer and double values specifies minimum allowed value.
.google.protobuf.DoubleValue min_value = 9;
getMinValue
in interface DataSourceParameterOrBuilder
public DoubleValueOrBuilder getMinValueOrBuilder()
For integer and double values specifies minimum allowed value.
.google.protobuf.DoubleValue min_value = 9;
getMinValueOrBuilder
in interface DataSourceParameterOrBuilder
public boolean hasMaxValue()
For integer and double values specifies maxminum allowed value.
.google.protobuf.DoubleValue max_value = 10;
hasMaxValue
in interface DataSourceParameterOrBuilder
public DoubleValue getMaxValue()
For integer and double values specifies maxminum allowed value.
.google.protobuf.DoubleValue max_value = 10;
getMaxValue
in interface DataSourceParameterOrBuilder
public DoubleValueOrBuilder getMaxValueOrBuilder()
For integer and double values specifies maxminum allowed value.
.google.protobuf.DoubleValue max_value = 10;
getMaxValueOrBuilder
in interface DataSourceParameterOrBuilder
public java.util.List<DataSourceParameter> getFieldsList()
When parameter is a record, describes child fields.
repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;
getFieldsList
in interface DataSourceParameterOrBuilder
public java.util.List<? extends DataSourceParameterOrBuilder> getFieldsOrBuilderList()
When parameter is a record, describes child fields.
repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;
getFieldsOrBuilderList
in interface DataSourceParameterOrBuilder
public int getFieldsCount()
When parameter is a record, describes child fields.
repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;
getFieldsCount
in interface DataSourceParameterOrBuilder
public DataSourceParameter getFields(int index)
When parameter is a record, describes child fields.
repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;
getFields
in interface DataSourceParameterOrBuilder
public DataSourceParameterOrBuilder getFieldsOrBuilder(int index)
When parameter is a record, describes child fields.
repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter fields = 11;
getFieldsOrBuilder
in interface DataSourceParameterOrBuilder
public java.lang.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;
getValidationDescription
in interface DataSourceParameterOrBuilder
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;
getValidationDescriptionBytes
in interface DataSourceParameterOrBuilder
public java.lang.String getValidationHelpUrl()
URL to a help document to further explain the naming requirements.
string validation_help_url = 13;
getValidationHelpUrl
in interface DataSourceParameterOrBuilder
public ByteString getValidationHelpUrlBytes()
URL to a help document to further explain the naming requirements.
string validation_help_url = 13;
getValidationHelpUrlBytes
in interface DataSourceParameterOrBuilder
public boolean getImmutable()
Cannot be changed after initial creation.
bool immutable = 14;
getImmutable
in interface DataSourceParameterOrBuilder
public boolean getRecurse()
If set to true, schema should be taken from the parent with the same parameter_id. Only applicable when parameter type is RECORD.
bool recurse = 15;
getRecurse
in interface DataSourceParameterOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static DataSourceParameter parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DataSourceParameter parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DataSourceParameter parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DataSourceParameter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DataSourceParameter parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DataSourceParameter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DataSourceParameter parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DataSourceParameter parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DataSourceParameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DataSourceParameter parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DataSourceParameter parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static DataSourceParameter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public DataSourceParameter.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DataSourceParameter.Builder newBuilder()
public static DataSourceParameter.Builder newBuilder(DataSourceParameter prototype)
public DataSourceParameter.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DataSourceParameter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static DataSourceParameter getDefaultInstance()
public static Parser<DataSourceParameter> parser()
public Parser<DataSourceParameter> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public DataSourceParameter getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder