public final class SpriteSheet extends com.google.protobuf.GeneratedMessageV3 implements SpriteSheetOrBuilder
Sprite sheet configuration.Protobuf type
google.cloud.video.transcoder.v1.SpriteSheet| Modifier and Type | Class and Description |
|---|---|
static class |
SpriteSheet.Builder
Sprite sheet configuration.
|
static class |
SpriteSheet.ExtractionStrategyCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMN_COUNT_FIELD_NUMBER |
static int |
END_TIME_OFFSET_FIELD_NUMBER |
static int |
FILE_PREFIX_FIELD_NUMBER |
static int |
FORMAT_FIELD_NUMBER |
static int |
INTERVAL_FIELD_NUMBER |
static int |
QUALITY_FIELD_NUMBER |
static int |
ROW_COUNT_FIELD_NUMBER |
static int |
SPRITE_HEIGHT_PIXELS_FIELD_NUMBER |
static int |
SPRITE_WIDTH_PIXELS_FIELD_NUMBER |
static int |
START_TIME_OFFSET_FIELD_NUMBER |
static int |
TOTAL_COUNT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getColumnCount()
The maximum number of sprites per row in a sprite sheet.
|
static SpriteSheet |
getDefaultInstance() |
SpriteSheet |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getEndTimeOffset()
End time in seconds, relative to the output file timeline.
|
com.google.protobuf.DurationOrBuilder |
getEndTimeOffsetOrBuilder()
End time in seconds, relative to the output file timeline.
|
SpriteSheet.ExtractionStrategyCase |
getExtractionStrategyCase() |
String |
getFilePrefix()
Required.
|
com.google.protobuf.ByteString |
getFilePrefixBytes()
Required.
|
String |
getFormat()
Format type.
|
com.google.protobuf.ByteString |
getFormatBytes()
Format type.
|
com.google.protobuf.Duration |
getInterval()
Starting from `0s`, create sprites at regular intervals.
|
com.google.protobuf.DurationOrBuilder |
getIntervalOrBuilder()
Starting from `0s`, create sprites at regular intervals.
|
com.google.protobuf.Parser<SpriteSheet> |
getParserForType() |
int |
getQuality()
The quality of the generated sprite sheet.
|
int |
getRowCount()
The maximum number of rows per sprite sheet.
|
int |
getSerializedSize() |
int |
getSpriteHeightPixels()
Required.
|
int |
getSpriteWidthPixels()
Required.
|
com.google.protobuf.Duration |
getStartTimeOffset()
Start time in seconds, relative to the output file timeline.
|
com.google.protobuf.DurationOrBuilder |
getStartTimeOffsetOrBuilder()
Start time in seconds, relative to the output file timeline.
|
int |
getTotalCount()
Total number of sprites.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEndTimeOffset()
End time in seconds, relative to the output file timeline.
|
int |
hashCode() |
boolean |
hasInterval()
Starting from `0s`, create sprites at regular intervals.
|
boolean |
hasStartTimeOffset()
Start time in seconds, relative to the output file timeline.
|
boolean |
hasTotalCount()
Total number of sprites.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SpriteSheet.Builder |
newBuilder() |
static SpriteSheet.Builder |
newBuilder(SpriteSheet prototype) |
SpriteSheet.Builder |
newBuilderForType() |
protected SpriteSheet.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SpriteSheet |
parseDelimitedFrom(InputStream input) |
static SpriteSheet |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpriteSheet |
parseFrom(byte[] data) |
static SpriteSheet |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpriteSheet |
parseFrom(ByteBuffer data) |
static SpriteSheet |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpriteSheet |
parseFrom(com.google.protobuf.ByteString data) |
static SpriteSheet |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpriteSheet |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SpriteSheet |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpriteSheet |
parseFrom(InputStream input) |
static SpriteSheet |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SpriteSheet> |
parser() |
SpriteSheet.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FORMAT_FIELD_NUMBER
public static final int FILE_PREFIX_FIELD_NUMBER
public static final int SPRITE_WIDTH_PIXELS_FIELD_NUMBER
public static final int SPRITE_HEIGHT_PIXELS_FIELD_NUMBER
public static final int COLUMN_COUNT_FIELD_NUMBER
public static final int ROW_COUNT_FIELD_NUMBER
public static final int START_TIME_OFFSET_FIELD_NUMBER
public static final int END_TIME_OFFSET_FIELD_NUMBER
public static final int TOTAL_COUNT_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER
public static final int QUALITY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public SpriteSheet.ExtractionStrategyCase getExtractionStrategyCase()
getExtractionStrategyCase in interface SpriteSheetOrBuilderpublic String getFormat()
Format type. The default is `jpeg`. Supported formats: - `jpeg`
string format = 1;getFormat in interface SpriteSheetOrBuilderpublic com.google.protobuf.ByteString getFormatBytes()
Format type. The default is `jpeg`. Supported formats: - `jpeg`
string format = 1;getFormatBytes in interface SpriteSheetOrBuilderpublic String getFilePrefix()
Required. File name prefix for the generated sprite sheets. Each sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
string file_prefix = 2 [(.google.api.field_behavior) = REQUIRED];getFilePrefix in interface SpriteSheetOrBuilderpublic com.google.protobuf.ByteString getFilePrefixBytes()
Required. File name prefix for the generated sprite sheets. Each sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
string file_prefix = 2 [(.google.api.field_behavior) = REQUIRED];getFilePrefixBytes in interface SpriteSheetOrBuilderpublic int getSpriteWidthPixels()
Required. The width of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field or the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field, but not both (the API will automatically calculate the missing field).
int32 sprite_width_pixels = 3 [(.google.api.field_behavior) = REQUIRED];getSpriteWidthPixels in interface SpriteSheetOrBuilderpublic int getSpriteHeightPixels()
Required. The height of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field or the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field, but not both (the API will automatically calculate the missing field).
int32 sprite_height_pixels = 4 [(.google.api.field_behavior) = REQUIRED];getSpriteHeightPixels in interface SpriteSheetOrBuilderpublic int getColumnCount()
The maximum number of sprites per row in a sprite sheet. The default is 0, which indicates no maximum limit.
int32 column_count = 5;getColumnCount in interface SpriteSheetOrBuilderpublic int getRowCount()
The maximum number of rows per sprite sheet. When the sprite sheet is full, a new sprite sheet is created. The default is 0, which indicates no maximum limit.
int32 row_count = 6;getRowCount in interface SpriteSheetOrBuilderpublic boolean hasStartTimeOffset()
Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`.
.google.protobuf.Duration start_time_offset = 7;hasStartTimeOffset in interface SpriteSheetOrBuilderpublic com.google.protobuf.Duration getStartTimeOffset()
Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`.
.google.protobuf.Duration start_time_offset = 7;getStartTimeOffset in interface SpriteSheetOrBuilderpublic com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder()
Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`.
.google.protobuf.Duration start_time_offset = 7;getStartTimeOffsetOrBuilder in interface SpriteSheetOrBuilderpublic boolean hasEndTimeOffset()
End time in seconds, relative to the output file timeline. When `end_time_offset` is not specified, the sprites are generated until the end of the output file.
.google.protobuf.Duration end_time_offset = 8;hasEndTimeOffset in interface SpriteSheetOrBuilderpublic com.google.protobuf.Duration getEndTimeOffset()
End time in seconds, relative to the output file timeline. When `end_time_offset` is not specified, the sprites are generated until the end of the output file.
.google.protobuf.Duration end_time_offset = 8;getEndTimeOffset in interface SpriteSheetOrBuilderpublic com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder()
End time in seconds, relative to the output file timeline. When `end_time_offset` is not specified, the sprites are generated until the end of the output file.
.google.protobuf.Duration end_time_offset = 8;getEndTimeOffsetOrBuilder in interface SpriteSheetOrBuilderpublic boolean hasTotalCount()
Total number of sprites. Create the specified number of sprites distributed evenly across the timeline of the output media. The default is 100.
int32 total_count = 9;hasTotalCount in interface SpriteSheetOrBuilderpublic int getTotalCount()
Total number of sprites. Create the specified number of sprites distributed evenly across the timeline of the output media. The default is 100.
int32 total_count = 9;getTotalCount in interface SpriteSheetOrBuilderpublic boolean hasInterval()
Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds.
.google.protobuf.Duration interval = 10;hasInterval in interface SpriteSheetOrBuilderpublic com.google.protobuf.Duration getInterval()
Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds.
.google.protobuf.Duration interval = 10;getInterval in interface SpriteSheetOrBuilderpublic com.google.protobuf.DurationOrBuilder getIntervalOrBuilder()
Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds.
.google.protobuf.Duration interval = 10;getIntervalOrBuilder in interface SpriteSheetOrBuilderpublic int getQuality()
The quality of the generated sprite sheet. Enter a value between 1 and 100, where 1 is the lowest quality and 100 is the highest quality. The default is 100. A high quality value corresponds to a low image data compression ratio.
int32 quality = 11;getQuality in interface SpriteSheetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SpriteSheet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpriteSheet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpriteSheet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpriteSheet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpriteSheet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpriteSheet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpriteSheet parseFrom(InputStream input) throws IOException
IOExceptionpublic static SpriteSheet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SpriteSheet parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SpriteSheet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SpriteSheet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SpriteSheet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SpriteSheet.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SpriteSheet.Builder newBuilder()
public static SpriteSheet.Builder newBuilder(SpriteSheet prototype)
public SpriteSheet.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SpriteSheet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SpriteSheet getDefaultInstance()
public static com.google.protobuf.Parser<SpriteSheet> parser()
public com.google.protobuf.Parser<SpriteSheet> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SpriteSheet getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.