Class CreateCustomerRequest.Builder (3.49.0)

public static final class CreateCustomerRequest.Builder extends GeneratedMessageV3.Builder<CreateCustomerRequest.Builder> implements CreateCustomerRequestOrBuilder

Request message for CloudChannelService.CreateCustomer

Protobuf type google.cloud.channel.v1.CreateCustomerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCustomerRequest build()
Returns
Type Description
CreateCustomerRequest

buildPartial()

public CreateCustomerRequest buildPartial()
Returns
Type Description
CreateCustomerRequest

clear()

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

clearCustomer()

public CreateCustomerRequest.Builder clearCustomer()

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCustomerRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCustomerRequest.Builder clearParent()

Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCustomerRequest.Builder

This builder for chaining.

clone()

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

getCustomer()

public Customer getCustomer()

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Customer

The customer.

getCustomerBuilder()

public Customer.Builder getCustomerBuilder()

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Customer.Builder

getCustomerOrBuilder()

public CustomerOrBuilder getCustomerOrBuilder()

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomerOrBuilder

getDefaultInstanceForType()

public CreateCustomerRequest getDefaultInstanceForType()
Returns
Type Description
CreateCustomerRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

hasCustomer()

public boolean hasCustomer()

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customer field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomer(Customer value)

public CreateCustomerRequest.Builder mergeCustomer(Customer value)

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Customer
Returns
Type Description
CreateCustomerRequest.Builder

mergeFrom(CreateCustomerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomer(Customer value)

public CreateCustomerRequest.Builder setCustomer(Customer value)

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Customer
Returns
Type Description
CreateCustomerRequest.Builder

setCustomer(Customer.Builder builderForValue)

public CreateCustomerRequest.Builder setCustomer(Customer.Builder builderForValue)

Required. The customer to create.

.google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Customer.Builder
Returns
Type Description
CreateCustomerRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCustomerRequest.Builder setParent(String value)

Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCustomerRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCustomerRequest.Builder setParentBytes(ByteString value)

Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCustomerRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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