Class InStock.Builder (1.16.0)

public static final class InStock.Builder extends GeneratedMessage.Builder<InStock.Builder> implements InStockOrBuilder

Collection of information related to InStock.

Protobuf type google.shopping.merchant.accounts.v1.InStock

Implements

InStockOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public InStock build()
Returns
Type Description
InStock

buildPartial()

public InStock buildPartial()
Returns
Type Description
InStock

clear()

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

clearState()

public InStock.Builder clearState()

Output only. The state of the in-stock serving.

.google.shopping.merchant.accounts.v1.ReviewState.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InStock.Builder

This builder for chaining.

clearUri()

public InStock.Builder clearUri()

Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InStock.Builder

This builder for chaining.

getDefaultInstanceForType()

public InStock getDefaultInstanceForType()
Returns
Type Description
InStock

getDescriptorForType()

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

getState()

public ReviewState.State getState()

Output only. The state of the in-stock serving.

.google.shopping.merchant.accounts.v1.ReviewState.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ReviewState.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the in-stock serving.

.google.shopping.merchant.accounts.v1.ReviewState.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUri()

public String getUri()

Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(InStock other)

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

setState(ReviewState.State value)

public InStock.Builder setState(ReviewState.State value)

Output only. The state of the in-stock serving.

.google.shopping.merchant.accounts.v1.ReviewState.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ReviewState.State

The state to set.

Returns
Type Description
InStock.Builder

This builder for chaining.

setStateValue(int value)

public InStock.Builder setStateValue(int value)

Output only. The state of the in-stock serving.

.google.shopping.merchant.accounts.v1.ReviewState.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
InStock.Builder

This builder for chaining.

setUri(String value)

public InStock.Builder setUri(String value)

Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
InStock.Builder

This builder for chaining.

setUriBytes(ByteString value)

public InStock.Builder setUriBytes(ByteString value)

Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
InStock.Builder

This builder for chaining.