public static final class GeneratedImage.Builder extends GeneratedMessageV3.Builder<GeneratedImage.Builder> implements GeneratedImageOrBuilderRepresents a generated image object.
Protobuf type google.shopping.merchant.productstudio.v1alpha.GeneratedImage
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GeneratedImage.BuilderImplements
GeneratedImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GeneratedImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
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 |
|
clearField(Descriptors.FieldDescriptor field)
public GeneratedImage.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| 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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GeneratedImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
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. |
clone()
public GeneratedImage.Builder clone()| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
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 GeneratedMessageV3.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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GeneratedImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public GeneratedImage.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| 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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GeneratedImage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GeneratedImage.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GeneratedImage.Builder |
|
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. |