Class CreateCustomerRequest (3.31.0)

public final class CreateCustomerRequest extends GeneratedMessageV3 implements CreateCustomerRequestOrBuilder

Request message for CloudChannelService.CreateCustomer

Protobuf type google.cloud.channel.v1.CreateCustomerRequest

Static Fields

CUSTOMER_FIELD_NUMBER

public static final int CUSTOMER_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateCustomerRequest getDefaultInstance()
Returns
TypeDescription
CreateCustomerRequest

getDescriptor()

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

newBuilder()

public static CreateCustomerRequest.Builder newBuilder()
Returns
TypeDescription
CreateCustomerRequest.Builder

newBuilder(CreateCustomerRequest prototype)

public static CreateCustomerRequest.Builder newBuilder(CreateCustomerRequest prototype)
Parameter
NameDescription
prototypeCreateCustomerRequest
Returns
TypeDescription
CreateCustomerRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateCustomerRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCustomerRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateCustomerRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateCustomerRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateCustomerRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateCustomerRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateCustomerRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCustomerRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateCustomerRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCustomerRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateCustomerRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateCustomerRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCustomerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateCustomerRequest> parser()
Returns
TypeDescription
Parser<CreateCustomerRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

getParserForType()

public Parser<CreateCustomerRequest> getParserForType()
Returns
TypeDescription
Parser<CreateCustomerRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateCustomerRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateCustomerRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateCustomerRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateCustomerRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateCustomerRequest.Builder toBuilder()
Returns
TypeDescription
CreateCustomerRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException