Class CreateCustomerRequest.Builder (3.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCustomerRequest build()
Returns
TypeDescription
CreateCustomerRequest

buildPartial()

public CreateCustomerRequest buildPartial()
Returns
TypeDescription
CreateCustomerRequest

clear()

public CreateCustomerRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateCustomerRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCustomerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateCustomerRequest.Builder

This builder for chaining.

clone()

public CreateCustomerRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Customer.Builder

getCustomerOrBuilder()

public CustomerOrBuilder getCustomerOrBuilder()

Required. The customer to create.

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

Returns
TypeDescription
CustomerOrBuilder

getDefaultInstanceForType()

public CreateCustomerRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCustomerRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the customer field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCustomer
Returns
TypeDescription
CreateCustomerRequest.Builder

mergeFrom(CreateCustomerRequest other)

public CreateCustomerRequest.Builder mergeFrom(CreateCustomerRequest other)
Parameter
NameDescription
otherCreateCustomerRequest
Returns
TypeDescription
CreateCustomerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCustomerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCustomer
Returns
TypeDescription
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
NameDescription
builderForValueCustomer.Builder
Returns
TypeDescription
CreateCustomerRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCustomerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCustomerRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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