Class GetDatabaseDdlResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetDatabaseDdlResponse.Builder>
com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GetDatabaseDdlResponseOrBuilder, Cloneable
Enclosing class:
GetDatabaseDdlResponse

public static final class GetDatabaseDdlResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetDatabaseDdlResponse.Builder> implements GetDatabaseDdlResponseOrBuilder
 The response for
 [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
 
Protobuf type google.spanner.admin.database.v1.GetDatabaseDdlResponse
  • Method Summary

    Modifier and Type
    Method
    Description
    A list of formatted DDL statements defining the schema of the database specified in the request.
    A list of formatted DDL statements defining the schema of the database specified in the request.
    addStatementsBytes(com.google.protobuf.ByteString value)
    A list of formatted DDL statements defining the schema of the database specified in the request.
     
     
     
    Proto descriptors stored in the database.
    A list of formatted DDL statements defining the schema of the database specified in the request.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    Proto descriptors stored in the database.
    getStatements(int index)
    A list of formatted DDL statements defining the schema of the database specified in the request.
    com.google.protobuf.ByteString
    getStatementsBytes(int index)
    A list of formatted DDL statements defining the schema of the database specified in the request.
    int
    A list of formatted DDL statements defining the schema of the database specified in the request.
    com.google.protobuf.ProtocolStringList
    A list of formatted DDL statements defining the schema of the database specified in the request.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    setProtoDescriptors(com.google.protobuf.ByteString value)
    Proto descriptors stored in the database.
    setStatements(int index, String value)
    A list of formatted DDL statements defining the schema of the database specified in the request.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GetDatabaseDdlResponse.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.GeneratedMessage.Builder<GetDatabaseDdlResponse.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.GeneratedMessage.Builder<GetDatabaseDdlResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public GetDatabaseDdlResponse.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<GetDatabaseDdlResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GetDatabaseDdlResponse.Builder>
    • mergeFrom

      public GetDatabaseDdlResponse.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<GetDatabaseDdlResponse.Builder>
      Throws:
      IOException
    • getStatementsList

      public com.google.protobuf.ProtocolStringList getStatementsList()
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Specified by:
      getStatementsList in interface GetDatabaseDdlResponseOrBuilder
      Returns:
      A list containing the statements.
    • getStatementsCount

      public int getStatementsCount()
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Specified by:
      getStatementsCount in interface GetDatabaseDdlResponseOrBuilder
      Returns:
      The count of statements.
    • getStatements

      public String getStatements(int index)
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Specified by:
      getStatements in interface GetDatabaseDdlResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The statements at the given index.
    • getStatementsBytes

      public com.google.protobuf.ByteString getStatementsBytes(int index)
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Specified by:
      getStatementsBytes in interface GetDatabaseDdlResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the statements at the given index.
    • setStatements

      public GetDatabaseDdlResponse.Builder setStatements(int index, String value)
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Parameters:
      index - The index to set the value at.
      value - The statements to set.
      Returns:
      This builder for chaining.
    • addStatements

      public GetDatabaseDdlResponse.Builder addStatements(String value)
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Parameters:
      value - The statements to add.
      Returns:
      This builder for chaining.
    • addAllStatements

      public GetDatabaseDdlResponse.Builder addAllStatements(Iterable<String> values)
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Parameters:
      values - The statements to add.
      Returns:
      This builder for chaining.
    • clearStatements

      public GetDatabaseDdlResponse.Builder clearStatements()
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Returns:
      This builder for chaining.
    • addStatementsBytes

      public GetDatabaseDdlResponse.Builder addStatementsBytes(com.google.protobuf.ByteString value)
       A list of formatted DDL statements defining the schema of the database
       specified in the request.
       
      repeated string statements = 1;
      Parameters:
      value - The bytes of the statements to add.
      Returns:
      This builder for chaining.
    • getProtoDescriptors

      public com.google.protobuf.ByteString getProtoDescriptors()
       Proto descriptors stored in the database.
       Contains a protobuf-serialized
       [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
       For more details, see protobuffer [self
       description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
       
      bytes proto_descriptors = 2;
      Specified by:
      getProtoDescriptors in interface GetDatabaseDdlResponseOrBuilder
      Returns:
      The protoDescriptors.
    • setProtoDescriptors

      public GetDatabaseDdlResponse.Builder setProtoDescriptors(com.google.protobuf.ByteString value)
       Proto descriptors stored in the database.
       Contains a protobuf-serialized
       [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
       For more details, see protobuffer [self
       description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
       
      bytes proto_descriptors = 2;
      Parameters:
      value - The protoDescriptors to set.
      Returns:
      This builder for chaining.
    • clearProtoDescriptors

      public GetDatabaseDdlResponse.Builder clearProtoDescriptors()
       Proto descriptors stored in the database.
       Contains a protobuf-serialized
       [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
       For more details, see protobuffer [self
       description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
       
      bytes proto_descriptors = 2;
      Returns:
      This builder for chaining.