Class ImportInstanceRequest.Builder (2.43.0)

public static final class ImportInstanceRequest.Builder extends GeneratedMessageV3.Builder<ImportInstanceRequest.Builder> implements ImportInstanceRequestOrBuilder

Request for Import.

Protobuf type google.cloud.redis.v1.ImportInstanceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

build()

public ImportInstanceRequest build()
Returns
TypeDescription
ImportInstanceRequest

buildPartial()

public ImportInstanceRequest buildPartial()
Returns
TypeDescription
ImportInstanceRequest

clear()

public ImportInstanceRequest.Builder clear()
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

clearInputConfig()

public ImportInstanceRequest.Builder clearInputConfig()

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportInstanceRequest.Builder

clearName()

public ImportInstanceRequest.Builder clearName()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

clone()

public ImportInstanceRequest.Builder clone()
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInputConfig()

public InputConfig getInputConfig()

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InputConfigOrBuilder

getName()

public String getName()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

hasInputConfig()

public boolean hasInputConfig()

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportInstanceRequest other)

public ImportInstanceRequest.Builder mergeFrom(ImportInstanceRequest other)
Parameter
NameDescription
otherImportInstanceRequest
Returns
TypeDescription
ImportInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportInstanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportInstanceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

mergeInputConfig(InputConfig value)

public ImportInstanceRequest.Builder mergeInputConfig(InputConfig value)

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
ImportInstanceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

setInputConfig(InputConfig value)

public ImportInstanceRequest.Builder setInputConfig(InputConfig value)

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
ImportInstanceRequest.Builder

setInputConfig(InputConfig.Builder builderForValue)

public ImportInstanceRequest.Builder setInputConfig(InputConfig.Builder builderForValue)

Required. Specify data to be imported.

.google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
ImportInstanceRequest.Builder

setName(String value)

public ImportInstanceRequest.Builder setName(String value)

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ImportInstanceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ImportInstanceRequest.Builder setNameBytes(ByteString value)

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ImportInstanceRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportInstanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportInstanceRequest.Builder
Overrides