Class MarketingInfo.Builder (3.22.0)

public static final class MarketingInfo.Builder extends GeneratedMessageV3.Builder<MarketingInfo.Builder> implements MarketingInfoOrBuilder

Represents the marketing information for a Product, SKU or Offer.

Protobuf type google.cloud.channel.v1.MarketingInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MarketingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MarketingInfo.Builder
Overrides

build()

public MarketingInfo build()
Returns
TypeDescription
MarketingInfo

buildPartial()

public MarketingInfo buildPartial()
Returns
TypeDescription
MarketingInfo

clear()

public MarketingInfo.Builder clear()
Returns
TypeDescription
MarketingInfo.Builder
Overrides

clearDefaultLogo()

public MarketingInfo.Builder clearDefaultLogo()

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Returns
TypeDescription
MarketingInfo.Builder

clearDescription()

public MarketingInfo.Builder clearDescription()

Human readable description. Description can contain HTML.

string description = 2;

Returns
TypeDescription
MarketingInfo.Builder

This builder for chaining.

clearDisplayName()

public MarketingInfo.Builder clearDisplayName()

Human readable name.

string display_name = 1;

Returns
TypeDescription
MarketingInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MarketingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MarketingInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MarketingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MarketingInfo.Builder
Overrides

clone()

public MarketingInfo.Builder clone()
Returns
TypeDescription
MarketingInfo.Builder
Overrides

getDefaultInstanceForType()

public MarketingInfo getDefaultInstanceForType()
Returns
TypeDescription
MarketingInfo

getDefaultLogo()

public Media getDefaultLogo()

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Returns
TypeDescription
Media

The defaultLogo.

getDefaultLogoBuilder()

public Media.Builder getDefaultLogoBuilder()

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Returns
TypeDescription
Media.Builder

getDefaultLogoOrBuilder()

public MediaOrBuilder getDefaultLogoOrBuilder()

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Returns
TypeDescription
MediaOrBuilder

getDescription()

public String getDescription()

Human readable description. Description can contain HTML.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Human readable description. Description can contain HTML.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Human readable name.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human readable name.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

hasDefaultLogo()

public boolean hasDefaultLogo()

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Returns
TypeDescription
boolean

Whether the defaultLogo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDefaultLogo(Media value)

public MarketingInfo.Builder mergeDefaultLogo(Media value)

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Parameter
NameDescription
valueMedia
Returns
TypeDescription
MarketingInfo.Builder

mergeFrom(MarketingInfo other)

public MarketingInfo.Builder mergeFrom(MarketingInfo other)
Parameter
NameDescription
otherMarketingInfo
Returns
TypeDescription
MarketingInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MarketingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarketingInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MarketingInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MarketingInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MarketingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MarketingInfo.Builder
Overrides

setDefaultLogo(Media value)

public MarketingInfo.Builder setDefaultLogo(Media value)

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Parameter
NameDescription
valueMedia
Returns
TypeDescription
MarketingInfo.Builder

setDefaultLogo(Media.Builder builderForValue)

public MarketingInfo.Builder setDefaultLogo(Media.Builder builderForValue)

Default logo.

.google.cloud.channel.v1.Media default_logo = 3;

Parameter
NameDescription
builderForValueMedia.Builder
Returns
TypeDescription
MarketingInfo.Builder

setDescription(String value)

public MarketingInfo.Builder setDescription(String value)

Human readable description. Description can contain HTML.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
MarketingInfo.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public MarketingInfo.Builder setDescriptionBytes(ByteString value)

Human readable description. Description can contain HTML.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
MarketingInfo.Builder

This builder for chaining.

setDisplayName(String value)

public MarketingInfo.Builder setDisplayName(String value)

Human readable name.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
MarketingInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public MarketingInfo.Builder setDisplayNameBytes(ByteString value)

Human readable name.

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
MarketingInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MarketingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MarketingInfo.Builder
Overrides

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

public MarketingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MarketingInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MarketingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MarketingInfo.Builder
Overrides