Class Homepage.Builder (0.8.0)

public static final class Homepage.Builder extends GeneratedMessageV3.Builder<Homepage.Builder> implements HomepageOrBuilder

A store's homepage.

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

Implements

HomepageOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Homepage build()
Returns
Type Description
Homepage

buildPartial()

public Homepage buildPartial()
Returns
Type Description
Homepage

clear()

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

clearClaimed()

public Homepage.Builder clearClaimed()

Output only. Whether the homepage is claimed. See https://support.google.com/merchants/answer/176793.

bool claimed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Homepage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Homepage.Builder clearName()

Identifier. The resource name of the store's homepage. Format: accounts/{account}/homepage

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Homepage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public Homepage.Builder clearUri()

Required. The URI (typically a URL) of the store's homepage.

optional string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Homepage.Builder

This builder for chaining.

clone()

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

getClaimed()

public boolean getClaimed()

Output only. Whether the homepage is claimed. See https://support.google.com/merchants/answer/176793.

bool claimed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The claimed.

getDefaultInstanceForType()

public Homepage getDefaultInstanceForType()
Returns
Type Description
Homepage

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the store's homepage. Format: accounts/{account}/homepage

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the store's homepage. Format: accounts/{account}/homepage

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getUri()

public String getUri()

Required. The URI (typically a URL) of the store's homepage.

optional string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The URI (typically a URL) of the store's homepage.

optional string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

hasUri()

public boolean hasUri()

Required. The URI (typically a URL) of the store's homepage.

optional string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the uri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Homepage other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClaimed(boolean value)

public Homepage.Builder setClaimed(boolean value)

Output only. Whether the homepage is claimed. See https://support.google.com/merchants/answer/176793.

bool claimed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The claimed to set.

Returns
Type Description
Homepage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Homepage.Builder setName(String value)

Identifier. The resource name of the store's homepage. Format: accounts/{account}/homepage

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Homepage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Homepage.Builder setNameBytes(ByteString value)

Identifier. The resource name of the store's homepage. Format: accounts/{account}/homepage

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Homepage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public Homepage.Builder setUri(String value)

Required. The URI (typically a URL) of the store's homepage.

optional string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Homepage.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Homepage.Builder setUriBytes(ByteString value)

Required. The URI (typically a URL) of the store's homepage.

optional string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Homepage.Builder

This builder for chaining.