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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • clear

      public DatabaseInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • getDefaultInstanceForType

      public DatabaseInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DatabaseInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DatabaseInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public DatabaseInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • setField

      public DatabaseInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • clearField

      public DatabaseInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • clearOneof

      public DatabaseInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • addRepeatedField

      public DatabaseInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • mergeFrom

      public DatabaseInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DatabaseInfo.Builder>
    • mergeFrom

      public DatabaseInfo.Builder mergeFrom(DatabaseInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DatabaseInfo.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Database name
       
      optional string name = 1;
      Specified by:
      hasName in interface DatabaseInfoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Database name
       
      optional string name = 1;
      Specified by:
      getName in interface DatabaseInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Database name
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface DatabaseInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DatabaseInfo.Builder setName(String value)
       Database name
       
      optional string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DatabaseInfo.Builder clearName()
       Database name
       
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public DatabaseInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       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 interface DatabaseInfoOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       Path on server
       
      optional string path = 2;
      Specified by:
      getPath in interface DatabaseInfoOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Path on server
       
      optional string path = 2;
      Specified by:
      getPathBytes in interface DatabaseInfoOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public DatabaseInfo.Builder setPath(String value)
       Path on server
       
      optional string path = 2;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public DatabaseInfo.Builder clearPath()
       Path on server
       
      optional string path = 2;
      Returns:
      This builder for chaining.
    • setPathBytes

      public DatabaseInfo.Builder setPathBytes(com.google.protobuf.ByteString value)
       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 interface DatabaseInfoOrBuilder
      Returns:
      Whether the tablespace field is set.
    • getTablespace

      public String getTablespace()
      optional string tablespace = 3;
      Specified by:
      getTablespace in interface DatabaseInfoOrBuilder
      Returns:
      The tablespace.
    • getTablespaceBytes

      public com.google.protobuf.ByteString getTablespaceBytes()
      optional string tablespace = 3;
      Specified by:
      getTablespaceBytes in interface DatabaseInfoOrBuilder
      Returns:
      The bytes for tablespace.
    • setTablespace

      public DatabaseInfo.Builder setTablespace(String value)
      optional string tablespace = 3;
      Parameters:
      value - The tablespace to set.
      Returns:
      This builder for chaining.
    • clearTablespace

      public DatabaseInfo.Builder clearTablespace()
      optional string tablespace = 3;
      Returns:
      This builder for chaining.
    • setTablespaceBytes

      public DatabaseInfo.Builder setTablespaceBytes(com.google.protobuf.ByteString value)
      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 interface DatabaseInfoOrBuilder
      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 interface DatabaseInfoOrBuilder
      Returns:
      The count of tables.
    • getTables

      public String getTables(int index)
       Names of the tables in this database
       
      repeated string tables = 4;
      Specified by:
      getTables in interface DatabaseInfoOrBuilder
      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 interface DatabaseInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tables at the given index.
    • setTables

      public DatabaseInfo.Builder setTables(int index, String value)
       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

      public DatabaseInfo.Builder addTables(String value)
       Names of the tables in this database
       
      repeated string tables = 4;
      Parameters:
      value - The tables to add.
      Returns:
      This builder for chaining.
    • addAllTables

      public DatabaseInfo.Builder addAllTables(Iterable<String> values)
       Names of the tables in this database
       
      repeated string tables = 4;
      Parameters:
      values - The tables to add.
      Returns:
      This builder for chaining.
    • clearTables

      public DatabaseInfo.Builder clearTables()
       Names of the tables in this database
       
      repeated string tables = 4;
      Returns:
      This builder for chaining.
    • addTablesBytes

      public DatabaseInfo.Builder addTablesBytes(com.google.protobuf.ByteString value)
       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 interface DatabaseInfoOrBuilder
      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 interface DatabaseInfoOrBuilder
      Returns:
      The count of streams.
    • getStreams

      public String getStreams(int index)
       Names of the streams in this database
       
      repeated string streams = 5;
      Specified by:
      getStreams in interface DatabaseInfoOrBuilder
      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 interface DatabaseInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the streams at the given index.
    • setStreams

      public DatabaseInfo.Builder setStreams(int index, String value)
       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

      public DatabaseInfo.Builder addStreams(String value)
       Names of the streams in this database
       
      repeated string streams = 5;
      Parameters:
      value - The streams to add.
      Returns:
      This builder for chaining.
    • addAllStreams

      public DatabaseInfo.Builder addAllStreams(Iterable<String> values)
       Names of the streams in this database
       
      repeated string streams = 5;
      Parameters:
      values - The streams to add.
      Returns:
      This builder for chaining.
    • clearStreams

      public DatabaseInfo.Builder clearStreams()
       Names of the streams in this database
       
      repeated string streams = 5;
      Returns:
      This builder for chaining.
    • addStreamsBytes

      public DatabaseInfo.Builder addStreamsBytes(com.google.protobuf.ByteString value)
       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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>
    • mergeUnknownFields

      public final DatabaseInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DatabaseInfo.Builder>