public final class GeneratedImage extends GeneratedMessage implements GeneratedImageOrBuilder
Represents a generated image object.
Protobuf type google.shopping.merchant.productstudio.v1alpha.GeneratedImage
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GeneratedImage.Builder newBuilderForType()
protected GeneratedImage.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public GeneratedImage.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides