Package org.yamcs.protobuf
Class DatabaseInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
org.yamcs.protobuf.DatabaseInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,DatabaseInfoOrBuilder
- Enclosing class:
- DatabaseInfo
public static final class DatabaseInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
implements DatabaseInfoOrBuilder
Protobuf type
yamcs.protobuf.archive.DatabaseInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllStreams
(Iterable<String> values) Names of the streams in this databaseaddAllTables
(Iterable<String> values) Names of the tables in this databaseaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addStreams
(String value) Names of the streams in this databaseaddStreamsBytes
(com.google.protobuf.ByteString value) Names of the streams in this databaseNames of the tables in this databaseaddTablesBytes
(com.google.protobuf.ByteString value) Names of the tables in this databasebuild()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Database nameclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Path on serverNames of the streams in this databaseNames of the tables in this databaseoptional string tablespace = 3;
clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
Database namecom.google.protobuf.ByteString
Database namegetPath()
Path on servercom.google.protobuf.ByteString
Path on servergetStreams
(int index) Names of the streams in this databasecom.google.protobuf.ByteString
getStreamsBytes
(int index) Names of the streams in this databaseint
Names of the streams in this databasecom.google.protobuf.ProtocolStringList
Names of the streams in this databasegetTables
(int index) Names of the tables in this databasecom.google.protobuf.ByteString
getTablesBytes
(int index) Names of the tables in this databaseint
Names of the tables in this databasecom.google.protobuf.ProtocolStringList
Names of the tables in this databaseoptional string tablespace = 3;
com.google.protobuf.ByteString
optional string tablespace = 3;
boolean
hasName()
Database nameboolean
hasPath()
Path on serverboolean
optional string tablespace = 3;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(DatabaseInfo other) final DatabaseInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Database namesetNameBytes
(com.google.protobuf.ByteString value) Database namePath on serversetPathBytes
(com.google.protobuf.ByteString value) Path on serversetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStreams
(int index, String value) Names of the streams in this databaseNames of the tables in this databasesetTablespace
(String value) optional string tablespace = 3;
setTablespaceBytes
(com.google.protobuf.ByteString value) optional string tablespace = 3;
final DatabaseInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
setField
public DatabaseInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
setRepeatedField
public DatabaseInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
addRepeatedField
public DatabaseInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DatabaseInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
mergeFrom
public DatabaseInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DatabaseInfo.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()Database name
optional string name = 1;
- Specified by:
hasName
in interfaceDatabaseInfoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Database name
optional string name = 1;
- Specified by:
getName
in interfaceDatabaseInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Database name
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDatabaseInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
Database name
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Database name
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
Database name
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPath
public boolean hasPath()Path on server
optional string path = 2;
- Specified by:
hasPath
in interfaceDatabaseInfoOrBuilder
- Returns:
- Whether the path field is set.
-
getPath
Path on server
optional string path = 2;
- Specified by:
getPath
in interfaceDatabaseInfoOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Path on server
optional string path = 2;
- Specified by:
getPathBytes
in interfaceDatabaseInfoOrBuilder
- Returns:
- The bytes for path.
-
setPath
Path on server
optional string path = 2;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Path on server
optional string path = 2;
- Returns:
- This builder for chaining.
-
setPathBytes
Path on server
optional string path = 2;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
hasTablespace
public boolean hasTablespace()optional string tablespace = 3;
- Specified by:
hasTablespace
in interfaceDatabaseInfoOrBuilder
- Returns:
- Whether the tablespace field is set.
-
getTablespace
optional string tablespace = 3;
- Specified by:
getTablespace
in interfaceDatabaseInfoOrBuilder
- Returns:
- The tablespace.
-
getTablespaceBytes
public com.google.protobuf.ByteString getTablespaceBytes()optional string tablespace = 3;
- Specified by:
getTablespaceBytes
in interfaceDatabaseInfoOrBuilder
- Returns:
- The bytes for tablespace.
-
setTablespace
optional string tablespace = 3;
- Parameters:
value
- The tablespace to set.- Returns:
- This builder for chaining.
-
clearTablespace
optional string tablespace = 3;
- Returns:
- This builder for chaining.
-
setTablespaceBytes
optional string tablespace = 3;
- Parameters:
value
- The bytes for tablespace to set.- Returns:
- This builder for chaining.
-
getTablesList
public com.google.protobuf.ProtocolStringList getTablesList()Names of the tables in this database
repeated string tables = 4;
- Specified by:
getTablesList
in interfaceDatabaseInfoOrBuilder
- Returns:
- A list containing the tables.
-
getTablesCount
public int getTablesCount()Names of the tables in this database
repeated string tables = 4;
- Specified by:
getTablesCount
in interfaceDatabaseInfoOrBuilder
- Returns:
- The count of tables.
-
getTables
Names of the tables in this database
repeated string tables = 4;
- Specified by:
getTables
in interfaceDatabaseInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The tables at the given index.
-
getTablesBytes
public com.google.protobuf.ByteString getTablesBytes(int index) Names of the tables in this database
repeated string tables = 4;
- Specified by:
getTablesBytes
in interfaceDatabaseInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the tables at the given index.
-
setTables
Names of the tables in this database
repeated string tables = 4;
- Parameters:
index
- The index to set the value at.value
- The tables to set.- Returns:
- This builder for chaining.
-
addTables
Names of the tables in this database
repeated string tables = 4;
- Parameters:
value
- The tables to add.- Returns:
- This builder for chaining.
-
addAllTables
Names of the tables in this database
repeated string tables = 4;
- Parameters:
values
- The tables to add.- Returns:
- This builder for chaining.
-
clearTables
Names of the tables in this database
repeated string tables = 4;
- Returns:
- This builder for chaining.
-
addTablesBytes
Names of the tables in this database
repeated string tables = 4;
- Parameters:
value
- The bytes of the tables to add.- Returns:
- This builder for chaining.
-
getStreamsList
public com.google.protobuf.ProtocolStringList getStreamsList()Names of the streams in this database
repeated string streams = 5;
- Specified by:
getStreamsList
in interfaceDatabaseInfoOrBuilder
- Returns:
- A list containing the streams.
-
getStreamsCount
public int getStreamsCount()Names of the streams in this database
repeated string streams = 5;
- Specified by:
getStreamsCount
in interfaceDatabaseInfoOrBuilder
- Returns:
- The count of streams.
-
getStreams
Names of the streams in this database
repeated string streams = 5;
- Specified by:
getStreams
in interfaceDatabaseInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The streams at the given index.
-
getStreamsBytes
public com.google.protobuf.ByteString getStreamsBytes(int index) Names of the streams in this database
repeated string streams = 5;
- Specified by:
getStreamsBytes
in interfaceDatabaseInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the streams at the given index.
-
setStreams
Names of the streams in this database
repeated string streams = 5;
- Parameters:
index
- The index to set the value at.value
- The streams to set.- Returns:
- This builder for chaining.
-
addStreams
Names of the streams in this database
repeated string streams = 5;
- Parameters:
value
- The streams to add.- Returns:
- This builder for chaining.
-
addAllStreams
Names of the streams in this database
repeated string streams = 5;
- Parameters:
values
- The streams to add.- Returns:
- This builder for chaining.
-
clearStreams
Names of the streams in this database
repeated string streams = 5;
- Returns:
- This builder for chaining.
-
addStreamsBytes
Names of the streams in this database
repeated string streams = 5;
- Parameters:
value
- The bytes of the streams to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DatabaseInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-
mergeUnknownFields
public final DatabaseInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
-