public final class ConfigVariableTemplate extends GeneratedMessageV3 implements ConfigVariableTemplateOrBuilder
ConfigVariableTemplate represents a configuration variable template present
in a Plugin Config.
Protobuf type google.cloud.apihub.v1.ConfigVariableTemplate
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENUM_OPTIONS_FIELD_NUMBER
public static final int ENUM_OPTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MULTI_SELECT_OPTIONS_FIELD_NUMBER
public static final int MULTI_SELECT_OPTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VALIDATION_REGEX_FIELD_NUMBER
public static final int VALIDATION_REGEX_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VALUE_TYPE_FIELD_NUMBER
public static final int VALUE_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ConfigVariableTemplate getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ConfigVariableTemplate.Builder newBuilder()
newBuilder(ConfigVariableTemplate prototype)
public static ConfigVariableTemplate.Builder newBuilder(ConfigVariableTemplate prototype)
public static ConfigVariableTemplate parseDelimitedFrom(InputStream input)
public static ConfigVariableTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ConfigVariableTemplate parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConfigVariableTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ConfigVariableTemplate parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConfigVariableTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConfigVariableTemplate parseFrom(CodedInputStream input)
public static ConfigVariableTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ConfigVariableTemplate parseFrom(InputStream input)
public static ConfigVariableTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ConfigVariableTemplate parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConfigVariableTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ConfigVariableTemplate> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ConfigVariableTemplate getDefaultInstanceForType()
getDescription()
public String getDescription()
Optional. Description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. Description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for description.
|
getEnumOptions(int index)
public ConfigValueOption getEnumOptions(int index)
Optional. Enum options. To be populated if ValueType
is ENUM
.
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getEnumOptionsCount()
public int getEnumOptionsCount()
Optional. Enum options. To be populated if ValueType
is ENUM
.
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getEnumOptionsList()
public List<ConfigValueOption> getEnumOptionsList()
Optional. Enum options. To be populated if ValueType
is ENUM
.
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
getEnumOptionsOrBuilder(int index)
public ConfigValueOptionOrBuilder getEnumOptionsOrBuilder(int index)
Optional. Enum options. To be populated if ValueType
is ENUM
.
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getEnumOptionsOrBuilderList()
public List<? extends ConfigValueOptionOrBuilder> getEnumOptionsOrBuilderList()
Optional. Enum options. To be populated if ValueType
is ENUM
.
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.apihub.v1.ConfigValueOptionOrBuilder> |
|
getId()
Required. ID of the config variable. Must be unique within the
configuration.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The id.
|
getIdBytes()
public ByteString getIdBytes()
Required. ID of the config variable. Must be unique within the
configuration.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for id.
|
getMultiSelectOptions(int index)
public ConfigValueOption getMultiSelectOptions(int index)
Optional. Multi select options. To be populated if ValueType
is
MULTI_SELECT
.
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getMultiSelectOptionsCount()
public int getMultiSelectOptionsCount()
Optional. Multi select options. To be populated if ValueType
is
MULTI_SELECT
.
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getMultiSelectOptionsList()
public List<ConfigValueOption> getMultiSelectOptionsList()
Optional. Multi select options. To be populated if ValueType
is
MULTI_SELECT
.
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
getMultiSelectOptionsOrBuilder(int index)
public ConfigValueOptionOrBuilder getMultiSelectOptionsOrBuilder(int index)
Optional. Multi select options. To be populated if ValueType
is
MULTI_SELECT
.
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getMultiSelectOptionsOrBuilderList()
public List<? extends ConfigValueOptionOrBuilder> getMultiSelectOptionsOrBuilderList()
Optional. Multi select options. To be populated if ValueType
is
MULTI_SELECT
.
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.apihub.v1.ConfigValueOptionOrBuilder> |
|
getParserForType()
public Parser<ConfigVariableTemplate> getParserForType()
Overrides
getRequired()
public boolean getRequired()
Optional. Flag represents that this ConfigVariable
must be provided for a
PluginInstance.
bool required = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The required.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getValidationRegex()
public String getValidationRegex()
Optional. Regular expression in RE2 syntax used for validating the value
of a ConfigVariable
.
string validation_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The validationRegex.
|
getValidationRegexBytes()
public ByteString getValidationRegexBytes()
Optional. Regular expression in RE2 syntax used for validating the value
of a ConfigVariable
.
string validation_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for validationRegex.
|
getValueType()
public ConfigVariableTemplate.ValueType getValueType()
Required. Type of the parameter: string, int, bool etc.
.google.cloud.apihub.v1.ConfigVariableTemplate.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
getValueTypeValue()
public int getValueTypeValue()
Required. Type of the parameter: string, int, bool etc.
.google.cloud.apihub.v1.ConfigVariableTemplate.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for valueType.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ConfigVariableTemplate.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConfigVariableTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ConfigVariableTemplate.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides