Class CreateInstanceRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.bigtable.admin.v2.CreateInstanceRequest
All Implemented Interfaces:
CreateInstanceRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 implements CreateInstanceRequestOrBuilder
 Request message for BigtableInstanceAdmin.CreateInstance.
 
Protobuf type google.bigtable.admin.v2.CreateInstanceRequest
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getParent

      public String getParent()
       Required. The unique name of the project in which to create the new
       instance. Values are of the form `projects/{project}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateInstanceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The unique name of the project in which to create the new
       instance. Values are of the form `projects/{project}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateInstanceRequestOrBuilder
      Returns:
      The bytes for parent.
    • getInstanceId

      public String getInstanceId()
       Required. The ID to be used when referring to the new instance within its
       project, e.g., just `myinstance` rather than
       `projects/myproject/instances/myinstance`.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceId in interface CreateInstanceRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       Required. The ID to be used when referring to the new instance within its
       project, e.g., just `myinstance` rather than
       `projects/myproject/instances/myinstance`.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceIdBytes in interface CreateInstanceRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • hasInstance

      public boolean hasInstance()
       Required. The instance to create.
       Fields marked `OutputOnly` must be left blank.
       
      .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInstance in interface CreateInstanceRequestOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public Instance getInstance()
       Required. The instance to create.
       Fields marked `OutputOnly` must be left blank.
       
      .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstance in interface CreateInstanceRequestOrBuilder
      Returns:
      The instance.
    • getInstanceOrBuilder

      public InstanceOrBuilder getInstanceOrBuilder()
       Required. The instance to create.
       Fields marked `OutputOnly` must be left blank.
       
      .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceOrBuilder in interface CreateInstanceRequestOrBuilder
    • getClustersCount

      public int getClustersCount()
      Description copied from interface: CreateInstanceRequestOrBuilder
       Required. The clusters to be created within the instance, mapped by desired
       cluster ID, e.g., just `mycluster` rather than
       `projects/myproject/instances/myinstance/clusters/mycluster`.
       Fields marked `OutputOnly` must be left blank.
       Currently, at most four clusters can be specified.
       
      map<string, .google.bigtable.admin.v2.Cluster> clusters = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClustersCount in interface CreateInstanceRequestOrBuilder
    • containsClusters

      public boolean containsClusters(String key)
       Required. The clusters to be created within the instance, mapped by desired
       cluster ID, e.g., just `mycluster` rather than
       `projects/myproject/instances/myinstance/clusters/mycluster`.
       Fields marked `OutputOnly` must be left blank.
       Currently, at most four clusters can be specified.
       
      map<string, .google.bigtable.admin.v2.Cluster> clusters = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsClusters in interface CreateInstanceRequestOrBuilder
    • getClusters

      @Deprecated public Map<String,Cluster> getClusters()
      Deprecated.
      Use getClustersMap() instead.
      Specified by:
      getClusters in interface CreateInstanceRequestOrBuilder
    • getClustersMap

      public Map<String,Cluster> getClustersMap()
       Required. The clusters to be created within the instance, mapped by desired
       cluster ID, e.g., just `mycluster` rather than
       `projects/myproject/instances/myinstance/clusters/mycluster`.
       Fields marked `OutputOnly` must be left blank.
       Currently, at most four clusters can be specified.
       
      map<string, .google.bigtable.admin.v2.Cluster> clusters = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClustersMap in interface CreateInstanceRequestOrBuilder
    • getClustersOrDefault

      public Cluster getClustersOrDefault(String key, Cluster defaultValue)
       Required. The clusters to be created within the instance, mapped by desired
       cluster ID, e.g., just `mycluster` rather than
       `projects/myproject/instances/myinstance/clusters/mycluster`.
       Fields marked `OutputOnly` must be left blank.
       Currently, at most four clusters can be specified.
       
      map<string, .google.bigtable.admin.v2.Cluster> clusters = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClustersOrDefault in interface CreateInstanceRequestOrBuilder
    • getClustersOrThrow

      public Cluster getClustersOrThrow(String key)
       Required. The clusters to be created within the instance, mapped by desired
       cluster ID, e.g., just `mycluster` rather than
       `projects/myproject/instances/myinstance/clusters/mycluster`.
       Fields marked `OutputOnly` must be left blank.
       Currently, at most four clusters can be specified.
       
      map<string, .google.bigtable.admin.v2.Cluster> clusters = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClustersOrThrow in interface CreateInstanceRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CreateInstanceRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateInstanceRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateInstanceRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateInstanceRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateInstanceRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateInstanceRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CreateInstanceRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CreateInstanceRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CreateInstanceRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CreateInstanceRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CreateInstanceRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CreateInstanceRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CreateInstanceRequest.Builder newBuilder()
    • newBuilder

      public static CreateInstanceRequest.Builder newBuilder(CreateInstanceRequest prototype)
    • toBuilder

      public CreateInstanceRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CreateInstanceRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static CreateInstanceRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CreateInstanceRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<CreateInstanceRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public CreateInstanceRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder