Class UpdateFileRequest.Builder (1.53.0)

public static final class UpdateFileRequest.Builder extends GeneratedMessageV3.Builder<UpdateFileRequest.Builder> implements UpdateFileRequestOrBuilder

The request to update a file.

Protobuf type google.devtools.artifactregistry.v1.UpdateFileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateFileRequest build()
Returns
Type Description
UpdateFileRequest

buildPartial()

public UpdateFileRequest buildPartial()
Returns
Type Description
UpdateFileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFile()

public UpdateFileRequest.Builder clearFile()

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateFileRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateFileRequest.Builder clearUpdateMask()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateFileRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateFileRequest getDefaultInstanceForType()
Returns
Type Description
UpdateFileRequest

getDescriptorForType()

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

getFile()

public File getFile()

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
File

The file.

getFileBuilder()

public File.Builder getFileBuilder()

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
File.Builder

getFileOrBuilder()

public FileOrBuilder getFileOrBuilder()

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FileOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasFile()

public boolean hasFile()

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the file field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

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

mergeFile(File value)

public UpdateFileRequest.Builder mergeFile(File value)

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value File
Returns
Type Description
UpdateFileRequest.Builder

mergeFrom(UpdateFileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateFileRequest.Builder mergeUpdateMask(FieldMask value)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateFileRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFile(File value)

public UpdateFileRequest.Builder setFile(File value)

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value File
Returns
Type Description
UpdateFileRequest.Builder

setFile(File.Builder builderForValue)

public UpdateFileRequest.Builder setFile(File.Builder builderForValue)

Required. The File that replaces the resource on the server.

.google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue File.Builder
Returns
Type Description
UpdateFileRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateFileRequest.Builder setUpdateMask(FieldMask value)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateFileRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateFileRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateFileRequest.Builder