Class FileView.Builder (0.66.0)

public static final class FileView.Builder extends GeneratedMessageV3.Builder<FileView.Builder> implements FileViewOrBuilder

Represents a specific alternate version or "view" of a file object, such as a summary, a thumbnail, a translated version, etc.

Protobuf type google.cloud.discoveryengine.v1alpha.FileView

Implements

FileViewOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FileView build()
Returns
Type Description
FileView

buildPartial()

public FileView buildPartial()
Returns
Type Description
FileView

clear()

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

clearByteSize()

public FileView.Builder clearByteSize()

Output only. The size of the view in bytes.

int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

This builder for chaining.

clearCharacteristics()

public FileView.Builder clearCharacteristics()
Returns
Type Description
FileView.Builder

clearCreateTime()

public FileView.Builder clearCreateTime()

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFileCharacteristics()

public FileView.Builder clearFileCharacteristics()

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

clearImageCharacteristics()

public FileView.Builder clearImageCharacteristics()

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

clearMimeType()

public FileView.Builder clearMimeType()

Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain", "video/mp4")

string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public FileView.Builder clearUri()

Output only. The URI to access this media view.

string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

This builder for chaining.

clearVideoCharacteristics()

public FileView.Builder clearVideoCharacteristics()

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

clearViewId()

public FileView.Builder clearViewId()

Output only. Globally Unique id for this specific view.

string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileView.Builder

This builder for chaining.

clone()

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

getByteSize()

public long getByteSize()

Output only. The size of the view in bytes.

int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The byteSize.

getCharacteristicsCase()

public FileView.CharacteristicsCase getCharacteristicsCase()
Returns
Type Description
FileView.CharacteristicsCase

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public FileView getDefaultInstanceForType()
Returns
Type Description
FileView

getDescriptorForType()

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

getFileCharacteristics()

public FileCharacteristics getFileCharacteristics()

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileCharacteristics

The fileCharacteristics.

getFileCharacteristicsBuilder()

public FileCharacteristics.Builder getFileCharacteristicsBuilder()

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileCharacteristics.Builder

getFileCharacteristicsOrBuilder()

public FileCharacteristicsOrBuilder getFileCharacteristicsOrBuilder()

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileCharacteristicsOrBuilder

getImageCharacteristics()

public ImageCharacteristics getImageCharacteristics()

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageCharacteristics

The imageCharacteristics.

getImageCharacteristicsBuilder()

public ImageCharacteristics.Builder getImageCharacteristicsBuilder()

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageCharacteristics.Builder

getImageCharacteristicsOrBuilder()

public ImageCharacteristicsOrBuilder getImageCharacteristicsOrBuilder()

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageCharacteristicsOrBuilder

getMimeType()

public String getMimeType()

Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain", "video/mp4")

string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain", "video/mp4")

string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for mimeType.

getUri()

public String getUri()

Output only. The URI to access this media view.

string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. The URI to access this media view.

string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uri.

getVideoCharacteristics()

public VideoCharacteristics getVideoCharacteristics()

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VideoCharacteristics

The videoCharacteristics.

getVideoCharacteristicsBuilder()

public VideoCharacteristics.Builder getVideoCharacteristicsBuilder()

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VideoCharacteristics.Builder

getVideoCharacteristicsOrBuilder()

public VideoCharacteristicsOrBuilder getVideoCharacteristicsOrBuilder()

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VideoCharacteristicsOrBuilder

getViewId()

public String getViewId()

Output only. Globally Unique id for this specific view.

string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The viewId.

getViewIdBytes()

public ByteString getViewIdBytes()

Output only. Globally Unique id for this specific view.

string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for viewId.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasFileCharacteristics()

public boolean hasFileCharacteristics()

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the fileCharacteristics field is set.

hasImageCharacteristics()

public boolean hasImageCharacteristics()

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the imageCharacteristics field is set.

hasVideoCharacteristics()

public boolean hasVideoCharacteristics()

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the videoCharacteristics field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public FileView.Builder mergeCreateTime(Timestamp value)

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FileView.Builder

mergeFileCharacteristics(FileCharacteristics value)

public FileView.Builder mergeFileCharacteristics(FileCharacteristics value)

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileCharacteristics
Returns
Type Description
FileView.Builder

mergeFrom(FileView other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageCharacteristics(ImageCharacteristics value)

public FileView.Builder mergeImageCharacteristics(ImageCharacteristics value)

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ImageCharacteristics
Returns
Type Description
FileView.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVideoCharacteristics(VideoCharacteristics value)

public FileView.Builder mergeVideoCharacteristics(VideoCharacteristics value)

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VideoCharacteristics
Returns
Type Description
FileView.Builder

setByteSize(long value)

public FileView.Builder setByteSize(long value)

Output only. The size of the view in bytes.

int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The byteSize to set.

Returns
Type Description
FileView.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public FileView.Builder setCreateTime(Timestamp value)

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FileView.Builder

setCreateTime(Timestamp.Builder builderForValue)

public FileView.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the view was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FileView.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileCharacteristics(FileCharacteristics value)

public FileView.Builder setFileCharacteristics(FileCharacteristics value)

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileCharacteristics
Returns
Type Description
FileView.Builder

setFileCharacteristics(FileCharacteristics.Builder builderForValue)

public FileView.Builder setFileCharacteristics(FileCharacteristics.Builder builderForValue)

Output only. Characteristics of other file types.

.google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue FileCharacteristics.Builder
Returns
Type Description
FileView.Builder

setImageCharacteristics(ImageCharacteristics value)

public FileView.Builder setImageCharacteristics(ImageCharacteristics value)

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ImageCharacteristics
Returns
Type Description
FileView.Builder

setImageCharacteristics(ImageCharacteristics.Builder builderForValue)

public FileView.Builder setImageCharacteristics(ImageCharacteristics.Builder builderForValue)

Output only. Characteristics of an image media view.

.google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ImageCharacteristics.Builder
Returns
Type Description
FileView.Builder

setMimeType(String value)

public FileView.Builder setMimeType(String value)

Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain", "video/mp4")

string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
FileView.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public FileView.Builder setMimeTypeBytes(ByteString value)

Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain", "video/mp4")

string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
FileView.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public FileView.Builder setUri(String value)

Output only. The URI to access this media view.

string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
FileView.Builder

This builder for chaining.

setUriBytes(ByteString value)

public FileView.Builder setUriBytes(ByteString value)

Output only. The URI to access this media view.

string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
FileView.Builder

This builder for chaining.

setVideoCharacteristics(VideoCharacteristics value)

public FileView.Builder setVideoCharacteristics(VideoCharacteristics value)

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VideoCharacteristics
Returns
Type Description
FileView.Builder

setVideoCharacteristics(VideoCharacteristics.Builder builderForValue)

public FileView.Builder setVideoCharacteristics(VideoCharacteristics.Builder builderForValue)

Output only. Characteristics of a video media view.

.google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue VideoCharacteristics.Builder
Returns
Type Description
FileView.Builder

setViewId(String value)

public FileView.Builder setViewId(String value)

Output only. Globally Unique id for this specific view.

string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The viewId to set.

Returns
Type Description
FileView.Builder

This builder for chaining.

setViewIdBytes(ByteString value)

public FileView.Builder setViewIdBytes(ByteString value)

Output only. Globally Unique id for this specific view.

string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for viewId to set.

Returns
Type Description
FileView.Builder

This builder for chaining.