Send feedback
Class GeneratedImage (0.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class GeneratedImage extends GeneratedMessageV3 implements GeneratedImageOrBuilder
Represents a generated image object.
Protobuf type google.shopping.merchant.productstudio.v1alpha.GeneratedImage
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int GENERATION_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int IMAGE_BYTES_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int URI_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static GeneratedImage getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static GeneratedImage . Builder newBuilder ()
public static GeneratedImage . Builder newBuilder ( GeneratedImage prototype )
public static GeneratedImage parseDelimitedFrom ( InputStream input )
public static GeneratedImage parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static GeneratedImage parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static GeneratedImage parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static GeneratedImage parseFrom ( ByteString data )
public static GeneratedImage parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static GeneratedImage parseFrom ( CodedInputStream input )
public static GeneratedImage parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static GeneratedImage parseFrom ( InputStream input )
public static GeneratedImage parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static GeneratedImage parseFrom ( ByteBuffer data )
public static GeneratedImage parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<GeneratedImage> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public GeneratedImage getDefaultInstanceForType ()
public Timestamp getGenerationTime ()
The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
Returns
Type
Description
Timestamp
The generationTime.
public TimestampOrBuilder getGenerationTimeOrBuilder ()
The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
public ByteString getImageBytes ()
Raw bytes for the image.
bytes image_bytes = 3;
Returns
Type
Description
ByteString
The imageBytes.
public GeneratedImage . ImageCase getImageCase ()
Identifier. The unique key for the image.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
Identifier. The unique key for the image.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
public Parser<GeneratedImage> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Generally web-requestable URI of the generated image. This is a temporary
URI and will expire after 6 months. A URI may not be populated
immediately after generation. Use get or list api using image_id to get
the URI.
string uri = 2;
Returns
Type
Description
String
The uri.
public ByteString getUriBytes ()
Generally web-requestable URI of the generated image. This is a temporary
URI and will expire after 6 months. A URI may not be populated
immediately after generation. Use get or list api using image_id to get
the URI.
string uri = 2;
Returns
Type
Description
ByteString
The bytes for uri.
public boolean hasGenerationTime ()
The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
Returns
Type
Description
boolean
Whether the generationTime field is set.
public boolean hasImageBytes ()
Raw bytes for the image.
bytes image_bytes = 3;
Returns
Type
Description
boolean
Whether the imageBytes field is set.
Generally web-requestable URI of the generated image. This is a temporary
URI and will expire after 6 months. A URI may not be populated
immediately after generation. Use get or list api using image_id to get
the URI.
string uri = 2;
Returns
Type
Description
boolean
Whether the uri field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public GeneratedImage . Builder newBuilderForType ()
protected GeneratedImage . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public GeneratedImage . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-02 UTC."],[],[]]