Class InsertCssProductInputRequest.Builder (0.5.0)

public static final class InsertCssProductInputRequest.Builder extends GeneratedMessageV3.Builder<InsertCssProductInputRequest.Builder> implements InsertCssProductInputRequestOrBuilder

Request message for the InsertCssProductInput method.

Protobuf type google.shopping.css.v1.InsertCssProductInputRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InsertCssProductInputRequest build()
Returns
TypeDescription
InsertCssProductInputRequest

buildPartial()

public InsertCssProductInputRequest buildPartial()
Returns
TypeDescription
InsertCssProductInputRequest

clear()

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

clearCssProductInput()

public InsertCssProductInputRequest.Builder clearCssProductInput()

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InsertCssProductInputRequest.Builder

clearFeedId()

public InsertCssProductInputRequest.Builder clearFeedId()

Required. The primary or supplemental feed id. If CSS Product already exists and feed id provided is different, then the CSS Product will be moved to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We do not have supplemental feed support for CSS Products yet.

int64 feed_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InsertCssProductInputRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public InsertCssProductInputRequest.Builder clearParent()

Required. The account where this CSS Product will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
InsertCssProductInputRequest.Builder

This builder for chaining.

clone()

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

getCssProductInput()

public CssProductInput getCssProductInput()

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CssProductInput

The cssProductInput.

getCssProductInputBuilder()

public CssProductInput.Builder getCssProductInputBuilder()

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CssProductInput.Builder

getCssProductInputOrBuilder()

public CssProductInputOrBuilder getCssProductInputOrBuilder()

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CssProductInputOrBuilder

getDefaultInstanceForType()

public InsertCssProductInputRequest getDefaultInstanceForType()
Returns
TypeDescription
InsertCssProductInputRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeedId()

public long getFeedId()

Required. The primary or supplemental feed id. If CSS Product already exists and feed id provided is different, then the CSS Product will be moved to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We do not have supplemental feed support for CSS Products yet.

int64 feed_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The feedId.

getParent()

public String getParent()

Required. The account where this CSS Product will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The account where this CSS Product will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasCssProductInput()

public boolean hasCssProductInput()

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the cssProductInput field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCssProductInput(CssProductInput value)

public InsertCssProductInputRequest.Builder mergeCssProductInput(CssProductInput value)

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCssProductInput
Returns
TypeDescription
InsertCssProductInputRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(InsertCssProductInputRequest other)

public InsertCssProductInputRequest.Builder mergeFrom(InsertCssProductInputRequest other)
Parameter
NameDescription
otherInsertCssProductInputRequest
Returns
TypeDescription
InsertCssProductInputRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCssProductInput(CssProductInput value)

public InsertCssProductInputRequest.Builder setCssProductInput(CssProductInput value)

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCssProductInput
Returns
TypeDescription
InsertCssProductInputRequest.Builder

setCssProductInput(CssProductInput.Builder builderForValue)

public InsertCssProductInputRequest.Builder setCssProductInput(CssProductInput.Builder builderForValue)

Required. The CSS Product Input to insert.

.google.shopping.css.v1.CssProductInput css_product_input = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCssProductInput.Builder
Returns
TypeDescription
InsertCssProductInputRequest.Builder

setFeedId(long value)

public InsertCssProductInputRequest.Builder setFeedId(long value)

Required. The primary or supplemental feed id. If CSS Product already exists and feed id provided is different, then the CSS Product will be moved to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We do not have supplemental feed support for CSS Products yet.

int64 feed_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuelong

The feedId to set.

Returns
TypeDescription
InsertCssProductInputRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public InsertCssProductInputRequest.Builder setParent(String value)

Required. The account where this CSS Product will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
InsertCssProductInputRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public InsertCssProductInputRequest.Builder setParentBytes(ByteString value)

Required. The account where this CSS Product will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
InsertCssProductInputRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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