public static final class GeneratedImage.Builder extends GeneratedMessage.Builder<GeneratedImage.Builder> implements GeneratedImageOrBuilderRepresents a generated image object.
Protobuf type google.shopping.merchant.productstudio.v1alpha.GeneratedImage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GeneratedImage.BuilderImplements
GeneratedImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GeneratedImage build()| Returns | |
|---|---|
| Type | Description |
GeneratedImage |
|
buildPartial()
public GeneratedImage buildPartial()| Returns | |
|---|---|
| Type | Description |
GeneratedImage |
|
clear()
public GeneratedImage.Builder clear()| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
clearGenerationTime()
public GeneratedImage.Builder clearGenerationTime()The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
clearImage()
public GeneratedImage.Builder clearImage()| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
clearImageBytes()
public GeneratedImage.Builder clearImageBytes()Raw bytes for the image.
bytes image_bytes = 3;
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |
clearName()
public GeneratedImage.Builder clearName()Identifier. The unique key for the image.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |
clearUri()
public GeneratedImage.Builder clearUri()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 |
GeneratedImage.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GeneratedImage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GeneratedImage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGenerationTime()
public Timestamp getGenerationTime()The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The generationTime. |
getGenerationTimeBuilder()
public Timestamp.Builder getGenerationTimeBuilder()The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getGenerationTimeOrBuilder()
public TimestampOrBuilder getGenerationTimeOrBuilder()The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getImageBytes()
public ByteString getImageBytes()Raw bytes for the image.
bytes image_bytes = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The imageBytes. |
getImageCase()
public GeneratedImage.ImageCase getImageCase()| Returns | |
|---|---|
| Type | Description |
GeneratedImage.ImageCase |
|
getName()
public String getName()Identifier. The unique key for the image.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
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. |
getUri()
public String getUri()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. |
getUriBytes()
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. |
hasGenerationTime()
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. |
hasImageBytes()
public boolean hasImageBytes()Raw bytes for the image.
bytes image_bytes = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the imageBytes field is set. |
hasUri()
public boolean hasUri()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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GeneratedImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GeneratedImage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
mergeFrom(GeneratedImage other)
public GeneratedImage.Builder mergeFrom(GeneratedImage other)| Parameter | |
|---|---|
| Name | Description |
other |
GeneratedImage |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
mergeGenerationTime(Timestamp value)
public GeneratedImage.Builder mergeGenerationTime(Timestamp value)The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
setGenerationTime(Timestamp value)
public GeneratedImage.Builder setGenerationTime(Timestamp value)The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
setGenerationTime(Timestamp.Builder builderForValue)
public GeneratedImage.Builder setGenerationTime(Timestamp.Builder builderForValue)The timestamp when the image was generated.
.google.protobuf.Timestamp generation_time = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
setImageBytes(ByteString value)
public GeneratedImage.Builder setImageBytes(ByteString value)Raw bytes for the image.
bytes image_bytes = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe imageBytes to set. |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |
setName(String value)
public GeneratedImage.Builder setName(String value)Identifier. The unique key for the image.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GeneratedImage.Builder setNameBytes(ByteString value)Identifier. The unique key for the image.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |
setUri(String value)
public GeneratedImage.Builder setUri(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public GeneratedImage.Builder setUriBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
This builder for chaining. |