Class DdlStatementActionInfo.Builder

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

public static final class DdlStatementActionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder> implements DdlStatementActionInfoOrBuilder
 Action information extracted from a DDL statement. This proto is used to
 display the brief info of the DDL statement for the operation
 [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
 
Protobuf type google.spanner.admin.database.v1.DdlStatementActionInfo
  • 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<DdlStatementActionInfo.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<DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
    • getDefaultInstanceForType

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

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

      public DdlStatementActionInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<DdlStatementActionInfo.Builder>
    • setField

      public DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
    • clearField

      public DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
    • clearOneof

      public DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
    • setRepeatedField

      public DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
      Throws:
      IOException
    • getAction

      public String getAction()
       The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
       This field is a non-empty string.
       
      string action = 1;
      Specified by:
      getAction in interface DdlStatementActionInfoOrBuilder
      Returns:
      The action.
    • getActionBytes

      public com.google.protobuf.ByteString getActionBytes()
       The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
       This field is a non-empty string.
       
      string action = 1;
      Specified by:
      getActionBytes in interface DdlStatementActionInfoOrBuilder
      Returns:
      The bytes for action.
    • setAction

      public DdlStatementActionInfo.Builder setAction(String value)
       The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
       This field is a non-empty string.
       
      string action = 1;
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public DdlStatementActionInfo.Builder clearAction()
       The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
       This field is a non-empty string.
       
      string action = 1;
      Returns:
      This builder for chaining.
    • setActionBytes

      public DdlStatementActionInfo.Builder setActionBytes(com.google.protobuf.ByteString value)
       The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
       This field is a non-empty string.
       
      string action = 1;
      Parameters:
      value - The bytes for action to set.
      Returns:
      This builder for chaining.
    • getEntityType

      public String getEntityType()
       The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
       This field can be empty string for some DDL statement,
       e.g. for statement "ANALYZE", `entity_type` = "".
       
      string entity_type = 2;
      Specified by:
      getEntityType in interface DdlStatementActionInfoOrBuilder
      Returns:
      The entityType.
    • getEntityTypeBytes

      public com.google.protobuf.ByteString getEntityTypeBytes()
       The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
       This field can be empty string for some DDL statement,
       e.g. for statement "ANALYZE", `entity_type` = "".
       
      string entity_type = 2;
      Specified by:
      getEntityTypeBytes in interface DdlStatementActionInfoOrBuilder
      Returns:
      The bytes for entityType.
    • setEntityType

      public DdlStatementActionInfo.Builder setEntityType(String value)
       The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
       This field can be empty string for some DDL statement,
       e.g. for statement "ANALYZE", `entity_type` = "".
       
      string entity_type = 2;
      Parameters:
      value - The entityType to set.
      Returns:
      This builder for chaining.
    • clearEntityType

      public DdlStatementActionInfo.Builder clearEntityType()
       The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
       This field can be empty string for some DDL statement,
       e.g. for statement "ANALYZE", `entity_type` = "".
       
      string entity_type = 2;
      Returns:
      This builder for chaining.
    • setEntityTypeBytes

      public DdlStatementActionInfo.Builder setEntityTypeBytes(com.google.protobuf.ByteString value)
       The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
       This field can be empty string for some DDL statement,
       e.g. for statement "ANALYZE", `entity_type` = "".
       
      string entity_type = 2;
      Parameters:
      value - The bytes for entityType to set.
      Returns:
      This builder for chaining.
    • getEntityNamesList

      public com.google.protobuf.ProtocolStringList getEntityNamesList()
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Specified by:
      getEntityNamesList in interface DdlStatementActionInfoOrBuilder
      Returns:
      A list containing the entityNames.
    • getEntityNamesCount

      public int getEntityNamesCount()
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Specified by:
      getEntityNamesCount in interface DdlStatementActionInfoOrBuilder
      Returns:
      The count of entityNames.
    • getEntityNames

      public String getEntityNames(int index)
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Specified by:
      getEntityNames in interface DdlStatementActionInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entityNames at the given index.
    • getEntityNamesBytes

      public com.google.protobuf.ByteString getEntityNamesBytes(int index)
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Specified by:
      getEntityNamesBytes in interface DdlStatementActionInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entityNames at the given index.
    • setEntityNames

      public DdlStatementActionInfo.Builder setEntityNames(int index, String value)
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Parameters:
      index - The index to set the value at.
      value - The entityNames to set.
      Returns:
      This builder for chaining.
    • addEntityNames

      public DdlStatementActionInfo.Builder addEntityNames(String value)
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Parameters:
      value - The entityNames to add.
      Returns:
      This builder for chaining.
    • addAllEntityNames

      public DdlStatementActionInfo.Builder addAllEntityNames(Iterable<String> values)
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Parameters:
      values - The entityNames to add.
      Returns:
      This builder for chaining.
    • clearEntityNames

      public DdlStatementActionInfo.Builder clearEntityNames()
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Returns:
      This builder for chaining.
    • addEntityNamesBytes

      public DdlStatementActionInfo.Builder addEntityNamesBytes(com.google.protobuf.ByteString value)
       The entity name(s) being operated on the DDL statement.
       E.g.
       1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
       2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
       3. For statement "ANALYZE", `entity_names` = [].
       
      repeated string entity_names = 3;
      Parameters:
      value - The bytes of the entityNames to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>
    • mergeUnknownFields

      public final DdlStatementActionInfo.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<DdlStatementActionInfo.Builder>