Class UpdatePackageRequest.Builder (1.54.0)

public static final class UpdatePackageRequest.Builder extends GeneratedMessageV3.Builder<UpdatePackageRequest.Builder> implements UpdatePackageRequestOrBuilder

The request to update a package.

Protobuf type google.devtools.artifactregistry.v1.UpdatePackageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdatePackageRequest build()
Returns
Type Description
UpdatePackageRequest

buildPartial()

public UpdatePackageRequest buildPartial()
Returns
Type Description
UpdatePackageRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackage()

public UpdatePackageRequest.Builder clearPackage()

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Returns
Type Description
UpdatePackageRequest.Builder

clearUpdateMask()

public UpdatePackageRequest.Builder clearUpdateMask()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdatePackageRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdatePackageRequest getDefaultInstanceForType()
Returns
Type Description
UpdatePackageRequest

getDescriptorForType()

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

getPackage()

public Package getPackage()

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Returns
Type Description
Package

The package.

getPackageBuilder()

public Package.Builder getPackageBuilder()

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Returns
Type Description
Package.Builder

getPackageOrBuilder()

public PackageOrBuilder getPackageOrBuilder()

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Returns
Type Description
PackageOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasPackage()

public boolean hasPackage()

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Returns
Type Description
boolean

Whether the package field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdatePackageRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePackage(Package value)

public UpdatePackageRequest.Builder mergePackage(Package value)

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Parameter
Name Description
value Package
Returns
Type Description
UpdatePackageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdatePackageRequest.Builder mergeUpdateMask(FieldMask value)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdatePackageRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPackage(Package value)

public UpdatePackageRequest.Builder setPackage(Package value)

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Parameter
Name Description
value Package
Returns
Type Description
UpdatePackageRequest.Builder

setPackage(Package.Builder builderForValue)

public UpdatePackageRequest.Builder setPackage(Package.Builder builderForValue)

The package that replaces the resource on the server.

.google.devtools.artifactregistry.v1.Package package = 1;

Parameter
Name Description
builderForValue Package.Builder
Returns
Type Description
UpdatePackageRequest.Builder

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

public UpdatePackageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdatePackageRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdatePackageRequest.Builder setUpdateMask(FieldMask value)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdatePackageRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdatePackageRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdatePackageRequest.Builder