public static final class MergeVersionAliasesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<MergeVersionAliasesRequest.Builder> implements MergeVersionAliasesRequestOrBuilder
Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases].Protobuf type
google.cloud.aiplatform.v1.MergeVersionAliasesRequestaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MergeVersionAliasesRequest.Builder>public MergeVersionAliasesRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MergeVersionAliasesRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MergeVersionAliasesRequest.Builder>public MergeVersionAliasesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MergeVersionAliasesRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MergeVersionAliasesRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MergeVersionAliasesRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MergeVersionAliasesRequest.Builder>public MergeVersionAliasesRequest.Builder mergeFrom(MergeVersionAliasesRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MergeVersionAliasesRequest.Builder>public MergeVersionAliasesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MergeVersionAliasesRequest.Builder>IOExceptionpublic String getName()
Required. The name of the model version to merge aliases, with a version ID
explicitly included.
Example: `projects/{project}/locations/{location}/models/{model}@1234`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface MergeVersionAliasesRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The name of the model version to merge aliases, with a version ID
explicitly included.
Example: `projects/{project}/locations/{location}/models/{model}@1234`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface MergeVersionAliasesRequestOrBuilderpublic MergeVersionAliasesRequest.Builder setName(String value)
Required. The name of the model version to merge aliases, with a version ID
explicitly included.
Example: `projects/{project}/locations/{location}/models/{model}@1234`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The name to set.public MergeVersionAliasesRequest.Builder clearName()
Required. The name of the model version to merge aliases, with a version ID
explicitly included.
Example: `projects/{project}/locations/{location}/models/{model}@1234`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public MergeVersionAliasesRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The name of the model version to merge aliases, with a version ID
explicitly included.
Example: `projects/{project}/locations/{location}/models/{model}@1234`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for name to set.public com.google.protobuf.ProtocolStringList getVersionAliasesList()
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];getVersionAliasesList in interface MergeVersionAliasesRequestOrBuilderpublic int getVersionAliasesCount()
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];getVersionAliasesCount in interface MergeVersionAliasesRequestOrBuilderpublic String getVersionAliases(int index)
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];getVersionAliases in interface MergeVersionAliasesRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getVersionAliasesBytes(int index)
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];getVersionAliasesBytes in interface MergeVersionAliasesRequestOrBuilderindex - The index of the value to return.public MergeVersionAliasesRequest.Builder setVersionAliases(int index, String value)
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The versionAliases to set.public MergeVersionAliasesRequest.Builder addVersionAliases(String value)
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];value - The versionAliases to add.public MergeVersionAliasesRequest.Builder addAllVersionAliases(Iterable<String> values)
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];values - The versionAliases to add.public MergeVersionAliasesRequest.Builder clearVersionAliases()
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];public MergeVersionAliasesRequest.Builder addVersionAliasesBytes(com.google.protobuf.ByteString value)
Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
`[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
Add the `-` prefix to an alias means removing that alias from the version.
`-` is NOT counted in the 128 characters. Example: `-golden` means removing
the `golden` alias from the version.
There is NO ordering in aliases, which means
1) The aliases returned from GetModel API might not have the exactly same
order from this MergeVersionAliases API. 2) Adding and deleting the same
alias in the request is not recommended, and the 2 operations will be
cancelled out.
repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the versionAliases to add.Copyright © 2026 Google LLC. All rights reserved.