Class CreateInstanceConfigRequest.Builder

    • Method Detail

      • 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<CreateInstanceConfigRequest.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<CreateInstanceConfigRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public CreateInstanceConfigRequest.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<CreateInstanceConfigRequest.Builder>
        Throws:
        IOException
      • getParent

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

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

        public CreateInstanceConfigRequest.Builder setParent​(String value)
         Required. The name of the project in which to create the instance config.
         Values are of the form `projects/<project>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateInstanceConfigRequest.Builder clearParent()
         Required. The name of the project in which to create the instance config.
         Values are of the form `projects/<project>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateInstanceConfigRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The name of the project in which to create the instance config.
         Values are of the form `projects/<project>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getInstanceConfigId

        public String getInstanceConfigId()
         Required. The ID of the instance config to create.  Valid identifiers are
         of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
         characters in length. The `custom-` prefix is required to avoid name
         conflicts with Google managed configurations.
         
        string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInstanceConfigId in interface CreateInstanceConfigRequestOrBuilder
        Returns:
        The instanceConfigId.
      • getInstanceConfigIdBytes

        public com.google.protobuf.ByteString getInstanceConfigIdBytes()
         Required. The ID of the instance config to create.  Valid identifiers are
         of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
         characters in length. The `custom-` prefix is required to avoid name
         conflicts with Google managed configurations.
         
        string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInstanceConfigIdBytes in interface CreateInstanceConfigRequestOrBuilder
        Returns:
        The bytes for instanceConfigId.
      • setInstanceConfigId

        public CreateInstanceConfigRequest.Builder setInstanceConfigId​(String value)
         Required. The ID of the instance config to create.  Valid identifiers are
         of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
         characters in length. The `custom-` prefix is required to avoid name
         conflicts with Google managed configurations.
         
        string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The instanceConfigId to set.
        Returns:
        This builder for chaining.
      • clearInstanceConfigId

        public CreateInstanceConfigRequest.Builder clearInstanceConfigId()
         Required. The ID of the instance config to create.  Valid identifiers are
         of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
         characters in length. The `custom-` prefix is required to avoid name
         conflicts with Google managed configurations.
         
        string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setInstanceConfigIdBytes

        public CreateInstanceConfigRequest.Builder setInstanceConfigIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the instance config to create.  Valid identifiers are
         of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
         characters in length. The `custom-` prefix is required to avoid name
         conflicts with Google managed configurations.
         
        string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for instanceConfigId to set.
        Returns:
        This builder for chaining.
      • hasInstanceConfig

        public boolean hasInstanceConfig()
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasInstanceConfig in interface CreateInstanceConfigRequestOrBuilder
        Returns:
        Whether the instanceConfig field is set.
      • getInstanceConfig

        public InstanceConfig getInstanceConfig()
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInstanceConfig in interface CreateInstanceConfigRequestOrBuilder
        Returns:
        The instanceConfig.
      • setInstanceConfig

        public CreateInstanceConfigRequest.Builder setInstanceConfig​(InstanceConfig value)
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • setInstanceConfig

        public CreateInstanceConfigRequest.Builder setInstanceConfig​(InstanceConfig.Builder builderForValue)
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergeInstanceConfig

        public CreateInstanceConfigRequest.Builder mergeInstanceConfig​(InstanceConfig value)
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearInstanceConfig

        public CreateInstanceConfigRequest.Builder clearInstanceConfig()
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • getInstanceConfigBuilder

        public InstanceConfig.Builder getInstanceConfigBuilder()
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • getInstanceConfigOrBuilder

        public InstanceConfigOrBuilder getInstanceConfigOrBuilder()
         Required. The InstanceConfig proto of the configuration to create.
         instance_config.name must be
         `<parent>/instanceConfigs/<instance_config_id>`.
         instance_config.base_config must be a Google managed configuration name,
         e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
         
        .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInstanceConfigOrBuilder in interface CreateInstanceConfigRequestOrBuilder
      • getValidateOnly

        public boolean getValidateOnly()
         An option to validate, but not actually execute, a request,
         and provide the same response.
         
        bool validate_only = 4;
        Specified by:
        getValidateOnly in interface CreateInstanceConfigRequestOrBuilder
        Returns:
        The validateOnly.
      • setValidateOnly

        public CreateInstanceConfigRequest.Builder setValidateOnly​(boolean value)
         An option to validate, but not actually execute, a request,
         and provide the same response.
         
        bool validate_only = 4;
        Parameters:
        value - The validateOnly to set.
        Returns:
        This builder for chaining.
      • clearValidateOnly

        public CreateInstanceConfigRequest.Builder clearValidateOnly()
         An option to validate, but not actually execute, a request,
         and provide the same response.
         
        bool validate_only = 4;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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