Class ImportInstanceRequest.Builder (2.49.0)

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

Request for Import.

Protobuf type google.cloud.redis.v1beta1.ImportInstanceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

build()

public ImportInstanceRequest build()
Returns
Type Description
ImportInstanceRequest

buildPartial()

public ImportInstanceRequest buildPartial()
Returns
Type Description
ImportInstanceRequest

clear()

public ImportInstanceRequest.Builder clear()
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

clearInputConfig()

public ImportInstanceRequest.Builder clearInputConfig()

Required. Specify data to be imported.

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

Returns
Type Description
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
Type Description
ImportInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

clone()

public ImportInstanceRequest.Builder clone()
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportInstanceRequest getDefaultInstanceForType()
Returns
Type Description
ImportInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInputConfig()

public InputConfig getInputConfig()

Required. Specify data to be imported.

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

Returns
Type Description
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

Required. Specify data to be imported.

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

Returns
Type Description
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Required. Specify data to be imported.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

hasInputConfig()

public boolean hasInputConfig()

Required. Specify data to be imported.

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

Returns
Type Description
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportInstanceRequest other)

public ImportInstanceRequest.Builder mergeFrom(ImportInstanceRequest other)
Parameter
Name Description
other ImportInstanceRequest
Returns
Type Description
ImportInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportInstanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportInstanceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportInstanceRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

mergeInputConfig(InputConfig value)

public ImportInstanceRequest.Builder mergeInputConfig(InputConfig value)

Required. Specify data to be imported.

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

Parameter
Name Description
value InputConfig
Returns
Type Description
ImportInstanceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

setInputConfig(InputConfig value)

public ImportInstanceRequest.Builder setInputConfig(InputConfig value)

Required. Specify data to be imported.

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

Parameter
Name Description
value InputConfig
Returns
Type Description
ImportInstanceRequest.Builder

setInputConfig(InputConfig.Builder builderForValue)

public ImportInstanceRequest.Builder setInputConfig(InputConfig.Builder builderForValue)

Required. Specify data to be imported.

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

Parameter
Name Description
builderForValue InputConfig.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportInstanceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportInstanceRequest.Builder
Overrides