Class CopyModelRequest.Builder (3.17.0)

public static final class CopyModelRequest.Builder extends GeneratedMessageV3.Builder<CopyModelRequest.Builder> implements CopyModelRequestOrBuilder

Request message for ModelService.CopyModel.

Protobuf type google.cloud.aiplatform.v1beta1.CopyModelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CopyModelRequest build()
Returns
TypeDescription
CopyModelRequest

buildPartial()

public CopyModelRequest buildPartial()
Returns
TypeDescription
CopyModelRequest

clear()

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

clearDestinationModel()

public CopyModelRequest.Builder clearDestinationModel()
Returns
TypeDescription
CopyModelRequest.Builder

clearEncryptionSpec()

public CopyModelRequest.Builder clearEncryptionSpec()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
TypeDescription
CopyModelRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearModelId()

public CopyModelRequest.Builder clearModelId()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CopyModelRequest.Builder clearParent()

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

clearParentModel()

public CopyModelRequest.Builder clearParentModel()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

clearSourceModel()

public CopyModelRequest.Builder clearSourceModel()

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CopyModelRequest getDefaultInstanceForType()
Returns
TypeDescription
CopyModelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationModelCase()

public CopyModelRequest.DestinationModelCase getDestinationModelCase()
Returns
TypeDescription
CopyModelRequest.DestinationModelCase

getEncryptionSpec()

public EncryptionSpec getEncryptionSpec()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
TypeDescription
EncryptionSpec

The encryptionSpec.

getEncryptionSpecBuilder()

public EncryptionSpec.Builder getEncryptionSpecBuilder()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
TypeDescription
EncryptionSpec.Builder

getEncryptionSpecOrBuilder()

public EncryptionSpecOrBuilder getEncryptionSpecOrBuilder()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
TypeDescription
EncryptionSpecOrBuilder

getModelId()

public String getModelId()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The modelId.

getModelIdBytes()

public ByteString getModelIdBytes()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for modelId.

getParent()

public String getParent()

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParentModel()

public String getParentModel()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parentModel.

getParentModelBytes()

public ByteString getParentModelBytes()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parentModel.

getSourceModel()

public String getSourceModel()

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The sourceModel.

getSourceModelBytes()

public ByteString getSourceModelBytes()

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for sourceModel.

hasEncryptionSpec()

public boolean hasEncryptionSpec()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
TypeDescription
boolean

Whether the encryptionSpec field is set.

hasModelId()

public boolean hasModelId()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the modelId field is set.

hasParentModel()

public boolean hasParentModel()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the parentModel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEncryptionSpec(EncryptionSpec value)

public CopyModelRequest.Builder mergeEncryptionSpec(EncryptionSpec value)

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Parameter
NameDescription
valueEncryptionSpec
Returns
TypeDescription
CopyModelRequest.Builder

mergeFrom(CopyModelRequest other)

public CopyModelRequest.Builder mergeFrom(CopyModelRequest other)
Parameter
NameDescription
otherCopyModelRequest
Returns
TypeDescription
CopyModelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEncryptionSpec(EncryptionSpec value)

public CopyModelRequest.Builder setEncryptionSpec(EncryptionSpec value)

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Parameter
NameDescription
valueEncryptionSpec
Returns
TypeDescription
CopyModelRequest.Builder

setEncryptionSpec(EncryptionSpec.Builder builderForValue)

public CopyModelRequest.Builder setEncryptionSpec(EncryptionSpec.Builder builderForValue)

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Parameter
NameDescription
builderForValueEncryptionSpec.Builder
Returns
TypeDescription
CopyModelRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelId(String value)

public CopyModelRequest.Builder setModelId(String value)

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The modelId to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setModelIdBytes(ByteString value)

public CopyModelRequest.Builder setModelIdBytes(ByteString value)

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for modelId to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setParent(String value)

public CopyModelRequest.Builder setParent(String value)

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CopyModelRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setParentModel(String value)

public CopyModelRequest.Builder setParentModel(String value)

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parentModel to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setParentModelBytes(ByteString value)

public CopyModelRequest.Builder setParentModelBytes(ByteString value)

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parentModel to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

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

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

setSourceModel(String value)

public CopyModelRequest.Builder setSourceModel(String value)

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The sourceModel to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setSourceModelBytes(ByteString value)

public CopyModelRequest.Builder setSourceModelBytes(ByteString value)

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for sourceModel to set.

Returns
TypeDescription
CopyModelRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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