@java.lang.Override public com.google.spanner.admin.instance.v1.Instance getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.Instance.getDefaultInstance(); }
/** * * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /**
/** * * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /**
/** * * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /**
/** * * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /**
/** * * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /**
/** * * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /**
/** * * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /**
/** * * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /**
/** * * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /**
/** * * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /**
/** * * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /**
/** * * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> */ public com.google.spanner.admin.instance.v1.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /**
/** * * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder(int index) { return getInstancesFieldBuilder() .addBuilder(index, com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); } /**
/** * * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder() { return getInstancesFieldBuilder() .addBuilder(com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); } /**
/** * * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
/** * * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See * also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * * <code>string config = 2;</code> */ public Builder clearConfig() { config_ = getDefaultInstance().getConfig(); onChanged(); return this; } /**
/** * * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form * `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final * segment of the name must be between 6 and 30 characters in length. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) { if (other == com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getConfig().isEmpty()) { config_ = other.config_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (other.getNodeCount() != 0) { setNodeCount(other.getNodeCount()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.spanner.admin.instance.v1.Instance.getDefaultInstance())) .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("GetInstance")) .build();