Class FileContext.FileBytes.Builder (0.7.0)

public static final class FileContext.FileBytes.Builder extends GeneratedMessage.Builder<FileContext.FileBytes.Builder> implements FileContext.FileBytesOrBuilder

File provided as raw bytes.

Protobuf type google.cloud.ces.v1beta.FileContext.FileBytes

Static Methods

getDescriptor()

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

Methods

build()

public FileContext.FileBytes build()
Returns
Type Description
FileContext.FileBytes

buildPartial()

public FileContext.FileBytes buildPartial()
Returns
Type Description
FileContext.FileBytes

clear()

public FileContext.FileBytes.Builder clear()
Returns
Type Description
FileContext.FileBytes.Builder
Overrides

clearData()

public FileContext.FileBytes.Builder clearData()

Required. Raw bytes of the file.

bytes data = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

clearFileName()

public FileContext.FileBytes.Builder clearFileName()

Required. The name of the file provided as raw bytes.

string file_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

clearMimeType()

public FileContext.FileBytes.Builder clearMimeType()

Required. The IANA standard MIME type of the source data.

string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

getData()

public ByteString getData()

Required. Raw bytes of the file.

bytes data = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The data.

getDefaultInstanceForType()

public FileContext.FileBytes getDefaultInstanceForType()
Returns
Type Description
FileContext.FileBytes

getDescriptorForType()

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

getFileName()

public String getFileName()

Required. The name of the file provided as raw bytes.

string file_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The fileName.

getFileNameBytes()

public ByteString getFileNameBytes()

Required. The name of the file provided as raw bytes.

string file_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for fileName.

getMimeType()

public String getMimeType()

Required. The IANA standard MIME type of the source data.

string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Required. The IANA standard MIME type of the source data.

string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileContext.FileBytes other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setData(ByteString value)

public FileContext.FileBytes.Builder setData(ByteString value)

Required. Raw bytes of the file.

bytes data = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

setFileName(String value)

public FileContext.FileBytes.Builder setFileName(String value)

Required. The name of the file provided as raw bytes.

string file_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The fileName to set.

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

setFileNameBytes(ByteString value)

public FileContext.FileBytes.Builder setFileNameBytes(ByteString value)

Required. The name of the file provided as raw bytes.

string file_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for fileName to set.

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

setMimeType(String value)

public FileContext.FileBytes.Builder setMimeType(String value)

Required. The IANA standard MIME type of the source data.

string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public FileContext.FileBytes.Builder setMimeTypeBytes(ByteString value)

Required. The IANA standard MIME type of the source data.

string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
FileContext.FileBytes.Builder

This builder for chaining.