public static final class Protos.DataSource extends com.google.protobuf.GeneratedMessage implements Protos.DataSourceOrBuilder
DataSource
A DataSource represents either a database in MySQL or an instance of Redis.
Datasources are used by Tenants for accessing data; an exmaple of a MySQL
datasource is the datasource used by TenantService for storing and retrieving
tenant data:
{
"name": "echo",
"storage_type": "mysql",
"is_readonly": false,
"metadata": {
"entries": [
{ "name": "username", "value": "echo" },
{ "name": "password", "value": "echo" },
{ "name": "host_and_port", "value": "localhost:3307" },
{ "name": "database", "value": "echo" },
{ "name": "connection_properties", "value": "useUnicode=true&characterEncoding=UTF-8" },
{ "name": "test_connection_on_checkout", "value": "true" },
],
}
}
| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.DataSource.Builder
Protobuf type
DataSource |
static class |
Protos.DataSource.MetaData
Protobuf type
DataSource.MetaData |
static interface |
Protos.DataSource.MetaDataOrBuilder |
static class |
Protos.DataSource.StorageType
Protobuf enum
DataSource.StorageType |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
METADATA_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.DataSource> |
PARSER |
static int |
READONLY_FIELD_NUMBER |
static int |
STORAGE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static Protos.DataSource |
getDefaultInstance() |
Protos.DataSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.DataSource.MetaData |
getMetadata(int index)
repeated .DataSource.MetaData metadata = 2; |
int |
getMetadataCount()
repeated .DataSource.MetaData metadata = 2; |
List<Protos.DataSource.MetaData> |
getMetadataList()
repeated .DataSource.MetaData metadata = 2; |
Protos.DataSource.MetaDataOrBuilder |
getMetadataOrBuilder(int index)
repeated .DataSource.MetaData metadata = 2; |
List<? extends Protos.DataSource.MetaDataOrBuilder> |
getMetadataOrBuilderList()
repeated .DataSource.MetaData metadata = 2; |
String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
com.google.protobuf.Parser<Protos.DataSource> |
getParserForType() |
boolean |
getReadonly()
required bool readonly = 3; |
int |
getSerializedSize() |
Protos.DataSource.StorageType |
getStorageType()
required .DataSource.StorageType storage_type = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasName()
required string name = 1; |
boolean |
hasReadonly()
required bool readonly = 3; |
boolean |
hasStorageType()
required .DataSource.StorageType storage_type = 4; |
boolean |
isInitialized() |
static Protos.DataSource.Builder |
newBuilder() |
static Protos.DataSource.Builder |
newBuilder(Protos.DataSource prototype) |
Protos.DataSource.Builder |
newBuilderForType() |
static Protos.DataSource |
parseDelimitedFrom(InputStream input) |
static Protos.DataSource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DataSource |
parseFrom(byte[] data) |
static Protos.DataSource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DataSource |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.DataSource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DataSource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.DataSource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DataSource |
parseFrom(InputStream input) |
static Protos.DataSource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.DataSource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static com.google.protobuf.Parser<Protos.DataSource> PARSER
public static final int NAME_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int READONLY_FIELD_NUMBER
public static final int STORAGE_TYPE_FIELD_NUMBER
public static Protos.DataSource getDefaultInstance()
public Protos.DataSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public com.google.protobuf.Parser<Protos.DataSource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasName()
required string name = 1;
a unique name associated to this datasource
hasName in interface Protos.DataSourceOrBuilderpublic String getName()
required string name = 1;
a unique name associated to this datasource
getName in interface Protos.DataSourceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
required string name = 1;
a unique name associated to this datasource
getNameBytes in interface Protos.DataSourceOrBuilderpublic List<Protos.DataSource.MetaData> getMetadataList()
repeated .DataSource.MetaData metadata = 2;getMetadataList in interface Protos.DataSourceOrBuilderpublic List<? extends Protos.DataSource.MetaDataOrBuilder> getMetadataOrBuilderList()
repeated .DataSource.MetaData metadata = 2;getMetadataOrBuilderList in interface Protos.DataSourceOrBuilderpublic int getMetadataCount()
repeated .DataSource.MetaData metadata = 2;getMetadataCount in interface Protos.DataSourceOrBuilderpublic Protos.DataSource.MetaData getMetadata(int index)
repeated .DataSource.MetaData metadata = 2;getMetadata in interface Protos.DataSourceOrBuilderpublic Protos.DataSource.MetaDataOrBuilder getMetadataOrBuilder(int index)
repeated .DataSource.MetaData metadata = 2;getMetadataOrBuilder in interface Protos.DataSourceOrBuilderpublic boolean hasReadonly()
required bool readonly = 3;
whether or not the datasource allows write/archive operations
hasReadonly in interface Protos.DataSourceOrBuilderpublic boolean getReadonly()
required bool readonly = 3;
whether or not the datasource allows write/archive operations
getReadonly in interface Protos.DataSourceOrBuilderpublic boolean hasStorageType()
required .DataSource.StorageType storage_type = 4;hasStorageType in interface Protos.DataSourceOrBuilderpublic Protos.DataSource.StorageType getStorageType()
required .DataSource.StorageType storage_type = 4;getStorageType in interface Protos.DataSourceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessagepublic static Protos.DataSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DataSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DataSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DataSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DataSource parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.DataSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.DataSource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.DataSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.DataSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.DataSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.DataSource.Builder newBuilder()
public Protos.DataSource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.DataSource.Builder newBuilder(Protos.DataSource prototype)
public Protos.DataSource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteCopyright © 2015. All rights reserved.