Class MergeVersionAliasesRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MergeVersionAliasesRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MergeVersionAliasesRequest.Builder>
      • getDefaultInstanceForType

        public MergeVersionAliasesRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MergeVersionAliasesRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MergeVersionAliasesRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MergeVersionAliasesRequest.Builder>
      • mergeFrom

        public MergeVersionAliasesRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MergeVersionAliasesRequest.Builder>
        Throws:
        IOException
      • getName

        public 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) = { ... }
        Specified by:
        getName in interface MergeVersionAliasesRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public 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) = { ... }
        Specified by:
        getNameBytes in interface MergeVersionAliasesRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public 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) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        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) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        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) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getVersionAliasesList

        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];
        Specified by:
        getVersionAliasesList in interface MergeVersionAliasesRequestOrBuilder
        Returns:
        A list containing the versionAliases.
      • getVersionAliasesCount

        public 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];
        Specified by:
        getVersionAliasesCount in interface MergeVersionAliasesRequestOrBuilder
        Returns:
        The count of versionAliases.
      • getVersionAliases

        public 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];
        Specified by:
        getVersionAliases in interface MergeVersionAliasesRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The versionAliases at the given index.
      • getVersionAliasesBytes

        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];
        Specified by:
        getVersionAliasesBytes in interface MergeVersionAliasesRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the versionAliases at the given index.
      • setVersionAliases

        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];
        Parameters:
        index - The index to set the value at.
        value - The versionAliases to set.
        Returns:
        This builder for chaining.
      • addVersionAliases

        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];
        Parameters:
        value - The versionAliases to add.
        Returns:
        This builder for chaining.
      • addAllVersionAliases

        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];
        Parameters:
        values - The versionAliases to add.
        Returns:
        This builder for chaining.
      • clearVersionAliases

        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];
        Returns:
        This builder for chaining.
      • addVersionAliasesBytes

        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];
        Parameters:
        value - The bytes of the versionAliases to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MergeVersionAliasesRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MergeVersionAliasesRequest.Builder>
      • mergeUnknownFields

        public final MergeVersionAliasesRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MergeVersionAliasesRequest.Builder>