Class AutomaticImageImprovements.Builder (0.16.0)

public static final class AutomaticImageImprovements.Builder extends GeneratedMessageV3.Builder<AutomaticImageImprovements.Builder> implements AutomaticImageImprovementsOrBuilder

This improvement will attempt to automatically correct submitted images if they don't meet the image requirements, for example, removing overlays. If successful, the image will be replaced and approved. This improvement is only applied to images of disapproved offers. For more information see: Automatic image improvements

Protobuf type google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomaticImageImprovements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

build()

public AutomaticImageImprovements build()
Returns
Type Description
AutomaticImageImprovements

buildPartial()

public AutomaticImageImprovements buildPartial()
Returns
Type Description
AutomaticImageImprovements

clear()

public AutomaticImageImprovements.Builder clear()
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

clearAccountImageImprovementsSettings()

public AutomaticImageImprovements.Builder clearAccountImageImprovementsSettings()

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomaticImageImprovements.Builder

clearEffectiveAllowAutomaticImageImprovements()

public AutomaticImageImprovements.Builder clearEffectiveAllowAutomaticImageImprovements()

Output only. The effective value of allow_automatic_image_improvements. If account_image_improvements_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. Read-only.

bool effective_allow_automatic_image_improvements = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutomaticImageImprovements.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutomaticImageImprovements.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomaticImageImprovements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

clone()

public AutomaticImageImprovements.Builder clone()
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

getAccountImageImprovementsSettings()

public AutomaticImageImprovements.ImageImprovementsAccountLevelSettings getAccountImageImprovementsSettings()

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomaticImageImprovements.ImageImprovementsAccountLevelSettings

The accountImageImprovementsSettings.

getAccountImageImprovementsSettingsBuilder()

public AutomaticImageImprovements.ImageImprovementsAccountLevelSettings.Builder getAccountImageImprovementsSettingsBuilder()

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomaticImageImprovements.ImageImprovementsAccountLevelSettings.Builder

getAccountImageImprovementsSettingsOrBuilder()

public AutomaticImageImprovements.ImageImprovementsAccountLevelSettingsOrBuilder getAccountImageImprovementsSettingsOrBuilder()

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomaticImageImprovements.ImageImprovementsAccountLevelSettingsOrBuilder

getDefaultInstanceForType()

public AutomaticImageImprovements getDefaultInstanceForType()
Returns
Type Description
AutomaticImageImprovements

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEffectiveAllowAutomaticImageImprovements()

public boolean getEffectiveAllowAutomaticImageImprovements()

Output only. The effective value of allow_automatic_image_improvements. If account_image_improvements_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. Read-only.

bool effective_allow_automatic_image_improvements = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The effectiveAllowAutomaticImageImprovements.

hasAccountImageImprovementsSettings()

public boolean hasAccountImageImprovementsSettings()

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the accountImageImprovementsSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccountImageImprovementsSettings(AutomaticImageImprovements.ImageImprovementsAccountLevelSettings value)

public AutomaticImageImprovements.Builder mergeAccountImageImprovementsSettings(AutomaticImageImprovements.ImageImprovementsAccountLevelSettings value)

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutomaticImageImprovements.ImageImprovementsAccountLevelSettings
Returns
Type Description
AutomaticImageImprovements.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomaticImageImprovements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutomaticImageImprovements.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

mergeFrom(AutomaticImageImprovements other)

public AutomaticImageImprovements.Builder mergeFrom(AutomaticImageImprovements other)
Parameter
Name Description
other AutomaticImageImprovements
Returns
Type Description
AutomaticImageImprovements.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticImageImprovements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

setAccountImageImprovementsSettings(AutomaticImageImprovements.ImageImprovementsAccountLevelSettings value)

public AutomaticImageImprovements.Builder setAccountImageImprovementsSettings(AutomaticImageImprovements.ImageImprovementsAccountLevelSettings value)

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutomaticImageImprovements.ImageImprovementsAccountLevelSettings
Returns
Type Description
AutomaticImageImprovements.Builder

setAccountImageImprovementsSettings(AutomaticImageImprovements.ImageImprovementsAccountLevelSettings.Builder builderForValue)

public AutomaticImageImprovements.Builder setAccountImageImprovementsSettings(AutomaticImageImprovements.ImageImprovementsAccountLevelSettings.Builder builderForValue)

Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.

optional .google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings account_image_improvements_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutomaticImageImprovements.ImageImprovementsAccountLevelSettings.Builder
Returns
Type Description
AutomaticImageImprovements.Builder

setEffectiveAllowAutomaticImageImprovements(boolean value)

public AutomaticImageImprovements.Builder setEffectiveAllowAutomaticImageImprovements(boolean value)

Output only. The effective value of allow_automatic_image_improvements. If account_image_improvements_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. Read-only.

bool effective_allow_automatic_image_improvements = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The effectiveAllowAutomaticImageImprovements to set.

Returns
Type Description
AutomaticImageImprovements.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutomaticImageImprovements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutomaticImageImprovements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticImageImprovements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomaticImageImprovements.Builder
Overrides