Class FileInfo.Builder (2.3.3)

public static final class FileInfo.Builder extends GeneratedMessageV3.Builder<FileInfo.Builder> implements FileInfoOrBuilder

Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.

Protobuf type google.appengine.v1.FileInfo

Implements

FileInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FileInfo build()
Returns
TypeDescription
FileInfo

buildPartial()

public FileInfo buildPartial()
Returns
TypeDescription
FileInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMimeType()

public FileInfo.Builder clearMimeType()

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSha1Sum()

public FileInfo.Builder clearSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

clearSourceUrl()

public FileInfo.Builder clearSourceUrl()

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FileInfo getDefaultInstanceForType()
Returns
TypeDescription
FileInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMimeType()

public String getMimeType()

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getSha1Sum()

public String getSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
TypeDescription
String

The sha1Sum.

getSha1SumBytes()

public ByteString getSha1SumBytes()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
TypeDescription
ByteString

The bytes for sha1Sum.

getSourceUrl()

public String getSourceUrl()

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Returns
TypeDescription
String

The sourceUrl.

getSourceUrlBytes()

public ByteString getSourceUrlBytes()

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Returns
TypeDescription
ByteString

The bytes for sourceUrl.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FileInfo other)

public FileInfo.Builder mergeFrom(FileInfo other)
Parameter
NameDescription
otherFileInfo
Returns
TypeDescription
FileInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMimeType(String value)

public FileInfo.Builder setMimeType(String value)

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Parameter
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public FileInfo.Builder setMimeTypeBytes(ByteString value)

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Parameter
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

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

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

setSha1Sum(String value)

public FileInfo.Builder setSha1Sum(String value)

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Parameter
NameDescription
valueString

The sha1Sum to set.

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

setSha1SumBytes(ByteString value)

public FileInfo.Builder setSha1SumBytes(ByteString value)

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Parameter
NameDescription
valueByteString

The bytes for sha1Sum to set.

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

setSourceUrl(String value)

public FileInfo.Builder setSourceUrl(String value)

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Parameter
NameDescription
valueString

The sourceUrl to set.

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

setSourceUrlBytes(ByteString value)

public FileInfo.Builder setSourceUrlBytes(ByteString value)

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Parameter
NameDescription
valueByteString

The bytes for sourceUrl to set.

Returns
TypeDescription
FileInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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