Class CreateRegionRequest.Builder (0.9.0)

public static final class CreateRegionRequest.Builder extends GeneratedMessageV3.Builder<CreateRegionRequest.Builder> implements CreateRegionRequestOrBuilder

Request message for the CreateRegion method.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRegionRequest build()
Returns
Type Description
CreateRegionRequest

buildPartial()

public CreateRegionRequest buildPartial()
Returns
Type Description
CreateRegionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateRegionRequest.Builder clearParent()

Required. The account to create a region for. Format: accounts/{account}

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

Returns
Type Description
CreateRegionRequest.Builder

This builder for chaining.

clearRegion()

public CreateRegionRequest.Builder clearRegion()

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRegionRequest.Builder

clearRegionId()

public CreateRegionRequest.Builder clearRegionId()

Required. The identifier for the region, unique over all regions of the same account.

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

Returns
Type Description
CreateRegionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateRegionRequest getDefaultInstanceForType()
Returns
Type Description
CreateRegionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The account to create a region for. Format: accounts/{account}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The account to create a region for. Format: accounts/{account}

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

Returns
Type Description
ByteString

The bytes for parent.

getRegion()

public Region getRegion()

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Region

The region.

getRegionBuilder()

public Region.Builder getRegionBuilder()

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Region.Builder

getRegionId()

public String getRegionId()

Required. The identifier for the region, unique over all regions of the same account.

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

Returns
Type Description
String

The regionId.

getRegionIdBytes()

public ByteString getRegionIdBytes()

Required. The identifier for the region, unique over all regions of the same account.

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

Returns
Type Description
ByteString

The bytes for regionId.

getRegionOrBuilder()

public RegionOrBuilder getRegionOrBuilder()

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RegionOrBuilder

hasRegion()

public boolean hasRegion()

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the region 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 CreateRegionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRegionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CreateRegionRequest other)

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

mergeRegion(Region value)

public CreateRegionRequest.Builder mergeRegion(Region value)

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Region
Returns
Type Description
CreateRegionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateRegionRequest.Builder setParent(String value)

Required. The account to create a region for. Format: accounts/{account}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRegionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRegionRequest.Builder setParentBytes(ByteString value)

Required. The account to create a region for. Format: accounts/{account}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateRegionRequest.Builder

This builder for chaining.

setRegion(Region value)

public CreateRegionRequest.Builder setRegion(Region value)

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Region
Returns
Type Description
CreateRegionRequest.Builder

setRegion(Region.Builder builderForValue)

public CreateRegionRequest.Builder setRegion(Region.Builder builderForValue)

Required. The region to create.

.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Region.Builder
Returns
Type Description
CreateRegionRequest.Builder

setRegionId(String value)

public CreateRegionRequest.Builder setRegionId(String value)

Required. The identifier for the region, unique over all regions of the same account.

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

Parameter
Name Description
value String

The regionId to set.

Returns
Type Description
CreateRegionRequest.Builder

This builder for chaining.

setRegionIdBytes(ByteString value)

public CreateRegionRequest.Builder setRegionIdBytes(ByteString value)

Required. The identifier for the region, unique over all regions of the same account.

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

Parameter
Name Description
value ByteString

The bytes for regionId to set.

Returns
Type Description
CreateRegionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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