Class ModelSourceInfo.Builder (3.41.0)

public static final class ModelSourceInfo.Builder extends GeneratedMessageV3.Builder<ModelSourceInfo.Builder> implements ModelSourceInfoOrBuilder

Detail description of the source information of the model.

Protobuf type google.cloud.aiplatform.v1beta1.ModelSourceInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelSourceInfo build()
Returns
TypeDescription
ModelSourceInfo

buildPartial()

public ModelSourceInfo buildPartial()
Returns
TypeDescription
ModelSourceInfo

clear()

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

clearCopy()

public ModelSourceInfo.Builder clearCopy()

If this Model is copy of another Model. If true then source_type pertains to the original.

bool copy = 2;

Returns
TypeDescription
ModelSourceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceType()

public ModelSourceInfo.Builder clearSourceType()

Type of the model source.

.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType source_type = 1;

Returns
TypeDescription
ModelSourceInfo.Builder

This builder for chaining.

clone()

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

getCopy()

public boolean getCopy()

If this Model is copy of another Model. If true then source_type pertains to the original.

bool copy = 2;

Returns
TypeDescription
boolean

The copy.

getDefaultInstanceForType()

public ModelSourceInfo getDefaultInstanceForType()
Returns
TypeDescription
ModelSourceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSourceType()

public ModelSourceInfo.ModelSourceType getSourceType()

Type of the model source.

.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType source_type = 1;

Returns
TypeDescription
ModelSourceInfo.ModelSourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Type of the model source.

.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType source_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for sourceType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ModelSourceInfo other)

public ModelSourceInfo.Builder mergeFrom(ModelSourceInfo other)
Parameter
NameDescription
otherModelSourceInfo
Returns
TypeDescription
ModelSourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCopy(boolean value)

public ModelSourceInfo.Builder setCopy(boolean value)

If this Model is copy of another Model. If true then source_type pertains to the original.

bool copy = 2;

Parameter
NameDescription
valueboolean

The copy to set.

Returns
TypeDescription
ModelSourceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceType(ModelSourceInfo.ModelSourceType value)

public ModelSourceInfo.Builder setSourceType(ModelSourceInfo.ModelSourceType value)

Type of the model source.

.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType source_type = 1;

Parameter
NameDescription
valueModelSourceInfo.ModelSourceType

The sourceType to set.

Returns
TypeDescription
ModelSourceInfo.Builder

This builder for chaining.

setSourceTypeValue(int value)

public ModelSourceInfo.Builder setSourceTypeValue(int value)

Type of the model source.

.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType source_type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for sourceType to set.

Returns
TypeDescription
ModelSourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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