Class CreateAccountLabelRequest.Builder (0.9.0)

public static final class CreateAccountLabelRequest.Builder extends GeneratedMessageV3.Builder<CreateAccountLabelRequest.Builder> implements CreateAccountLabelRequestOrBuilder

Request message for the 'CreateAccountLanel' method.

Protobuf type google.shopping.css.v1.CreateAccountLabelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAccountLabelRequest build()
Returns
TypeDescription
CreateAccountLabelRequest

buildPartial()

public CreateAccountLabelRequest buildPartial()
Returns
TypeDescription
CreateAccountLabelRequest

clear()

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

clearAccountLabel()

public CreateAccountLabelRequest.Builder clearAccountLabel()

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateAccountLabelRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAccountLabelRequest.Builder clearParent()

Required. The parent account. Format: accounts/{account}

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

Returns
TypeDescription
CreateAccountLabelRequest.Builder

This builder for chaining.

clone()

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

getAccountLabel()

public AccountLabel getAccountLabel()

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AccountLabel

The accountLabel.

getAccountLabelBuilder()

public AccountLabel.Builder getAccountLabelBuilder()

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AccountLabel.Builder

getAccountLabelOrBuilder()

public AccountLabelOrBuilder getAccountLabelOrBuilder()

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AccountLabelOrBuilder

getDefaultInstanceForType()

public CreateAccountLabelRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAccountLabelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent account. 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 parent account. Format: accounts/{account}

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasAccountLabel()

public boolean hasAccountLabel()

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the accountLabel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAccountLabel(AccountLabel value)

public CreateAccountLabelRequest.Builder mergeAccountLabel(AccountLabel value)

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAccountLabel
Returns
TypeDescription
CreateAccountLabelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateAccountLabelRequest other)

public CreateAccountLabelRequest.Builder mergeFrom(CreateAccountLabelRequest other)
Parameter
NameDescription
otherCreateAccountLabelRequest
Returns
TypeDescription
CreateAccountLabelRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccountLabel(AccountLabel value)

public CreateAccountLabelRequest.Builder setAccountLabel(AccountLabel value)

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAccountLabel
Returns
TypeDescription
CreateAccountLabelRequest.Builder

setAccountLabel(AccountLabel.Builder builderForValue)

public CreateAccountLabelRequest.Builder setAccountLabel(AccountLabel.Builder builderForValue)

Required. The label to create.

.google.shopping.css.v1.AccountLabel account_label = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAccountLabel.Builder
Returns
TypeDescription
CreateAccountLabelRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAccountLabelRequest.Builder setParent(String value)

Required. The parent account. Format: accounts/{account}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateAccountLabelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAccountLabelRequest.Builder setParentBytes(ByteString value)

Required. The parent account. 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
CreateAccountLabelRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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