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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public CreateRegionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateRegionRequest build()
public CreateRegionRequest buildPartial()
public CreateRegionRequest.Builder clear()
Overrides
public CreateRegionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateRegionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
public CreateRegionRequest.Builder clearRegion()
Required. The region to create.
.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];
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];
public CreateRegionRequest.Builder clone()
Overrides
public CreateRegionRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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.
|
public Region.Builder getRegionBuilder()
Required. The region to create.
.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];
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.
|
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.
|
public RegionOrBuilder getRegionOrBuilder()
Required. The region to create.
.google.shopping.merchant.accounts.v1beta.Region region = 3 [(.google.api.field_behavior) = REQUIRED];
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CreateRegionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateRegionRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public CreateRegionRequest.Builder mergeFrom(CreateRegionRequest other)
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
|
public final CreateRegionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public CreateRegionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
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
|
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];
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.
|
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.
|
public CreateRegionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final CreateRegionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides