Class GetFileRequest.Builder (1.2.9)

public static final class GetFileRequest.Builder extends GeneratedMessageV3.Builder<GetFileRequest.Builder> implements GetFileRequestOrBuilder

The request to retrieve a file.

Protobuf type google.devtools.artifactregistry.v1beta2.GetFileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetFileRequest build()
Returns
TypeDescription
GetFileRequest

buildPartial()

public GetFileRequest buildPartial()
Returns
TypeDescription
GetFileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetFileRequest.Builder clearName()

The name of the file to retrieve.

string name = 1;

Returns
TypeDescription
GetFileRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetFileRequest getDefaultInstanceForType()
Returns
TypeDescription
GetFileRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the file to retrieve.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the file to retrieve.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetFileRequest other)

public GetFileRequest.Builder mergeFrom(GetFileRequest other)
Parameter
NameDescription
otherGetFileRequest
Returns
TypeDescription
GetFileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetFileRequest.Builder setName(String value)

The name of the file to retrieve.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetFileRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetFileRequest.Builder setNameBytes(ByteString value)

The name of the file to retrieve.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetFileRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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