Class GenerateVideoResponse (3.55.0)

public final class GenerateVideoResponse extends GeneratedMessageV3 implements GenerateVideoResponseOrBuilder

Generate video response.

Protobuf type google.cloud.aiplatform.v1beta1.GenerateVideoResponse

Static Fields

GENERATED_SAMPLES_FIELD_NUMBER

public static final int GENERATED_SAMPLES_FIELD_NUMBER
Field Value
Type Description
int

RAI_MEDIA_FILTERED_COUNT_FIELD_NUMBER

public static final int RAI_MEDIA_FILTERED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

RAI_MEDIA_FILTERED_REASONS_FIELD_NUMBER

public static final int RAI_MEDIA_FILTERED_REASONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateVideoResponse getDefaultInstance()
Returns
Type Description
GenerateVideoResponse

getDescriptor()

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

newBuilder()

public static GenerateVideoResponse.Builder newBuilder()
Returns
Type Description
GenerateVideoResponse.Builder

newBuilder(GenerateVideoResponse prototype)

public static GenerateVideoResponse.Builder newBuilder(GenerateVideoResponse prototype)
Parameter
Name Description
prototype GenerateVideoResponse
Returns
Type Description
GenerateVideoResponse.Builder

parseDelimitedFrom(InputStream input)

public static GenerateVideoResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateVideoResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerateVideoResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateVideoResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateVideoResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateVideoResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateVideoResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateVideoResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerateVideoResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateVideoResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerateVideoResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateVideoResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateVideoResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerateVideoResponse> parser()
Returns
Type Description
Parser<GenerateVideoResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GenerateVideoResponse getDefaultInstanceForType()
Returns
Type Description
GenerateVideoResponse

getGeneratedSamples(int index)

public String getGeneratedSamples(int index)

The cloud storage uris of the generated videos.

repeated string generated_samples = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The generatedSamples at the given index.

getGeneratedSamplesBytes(int index)

public ByteString getGeneratedSamplesBytes(int index)

The cloud storage uris of the generated videos.

repeated string generated_samples = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the generatedSamples at the given index.

getGeneratedSamplesCount()

public int getGeneratedSamplesCount()

The cloud storage uris of the generated videos.

repeated string generated_samples = 1;

Returns
Type Description
int

The count of generatedSamples.

getGeneratedSamplesList()

public ProtocolStringList getGeneratedSamplesList()

The cloud storage uris of the generated videos.

repeated string generated_samples = 1;

Returns
Type Description
ProtocolStringList

A list containing the generatedSamples.

getParserForType()

public Parser<GenerateVideoResponse> getParserForType()
Returns
Type Description
Parser<GenerateVideoResponse>
Overrides

getRaiMediaFilteredCount()

public int getRaiMediaFilteredCount()

Returns if any videos were filtered due to RAI policies.

optional int32 rai_media_filtered_count = 2;

Returns
Type Description
int

The raiMediaFilteredCount.

getRaiMediaFilteredReasons(int index)

public String getRaiMediaFilteredReasons(int index)

Returns rai failure reasons if any.

repeated string rai_media_filtered_reasons = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The raiMediaFilteredReasons at the given index.

getRaiMediaFilteredReasonsBytes(int index)

public ByteString getRaiMediaFilteredReasonsBytes(int index)

Returns rai failure reasons if any.

repeated string rai_media_filtered_reasons = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the raiMediaFilteredReasons at the given index.

getRaiMediaFilteredReasonsCount()

public int getRaiMediaFilteredReasonsCount()

Returns rai failure reasons if any.

repeated string rai_media_filtered_reasons = 3;

Returns
Type Description
int

The count of raiMediaFilteredReasons.

getRaiMediaFilteredReasonsList()

public ProtocolStringList getRaiMediaFilteredReasonsList()

Returns rai failure reasons if any.

repeated string rai_media_filtered_reasons = 3;

Returns
Type Description
ProtocolStringList

A list containing the raiMediaFilteredReasons.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasRaiMediaFilteredCount()

public boolean hasRaiMediaFilteredCount()

Returns if any videos were filtered due to RAI policies.

optional int32 rai_media_filtered_count = 2;

Returns
Type Description
boolean

Whether the raiMediaFilteredCount field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenerateVideoResponse.Builder newBuilderForType()
Returns
Type Description
GenerateVideoResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerateVideoResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateVideoResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GenerateVideoResponse.Builder toBuilder()
Returns
Type Description
GenerateVideoResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException