Class ImportCustomerRequest (3.32.0)

public final class ImportCustomerRequest extends GeneratedMessageV3 implements ImportCustomerRequestOrBuilder

Request message for CloudChannelService.ImportCustomer

Protobuf type google.cloud.channel.v1.ImportCustomerRequest

Static Fields

AUTH_TOKEN_FIELD_NUMBER

public static final int AUTH_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

CHANNEL_PARTNER_ID_FIELD_NUMBER

public static final int CHANNEL_PARTNER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CLOUD_IDENTITY_ID_FIELD_NUMBER

public static final int CLOUD_IDENTITY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CUSTOMER_FIELD_NUMBER

public static final int CUSTOMER_FIELD_NUMBER
Field Value
TypeDescription
int

DOMAIN_FIELD_NUMBER

public static final int DOMAIN_FIELD_NUMBER
Field Value
TypeDescription
int

OVERWRITE_IF_EXISTS_FIELD_NUMBER

public static final int OVERWRITE_IF_EXISTS_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 ImportCustomerRequest getDefaultInstance()
Returns
TypeDescription
ImportCustomerRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ImportCustomerRequest prototype)

public static ImportCustomerRequest.Builder newBuilder(ImportCustomerRequest prototype)
Parameter
NameDescription
prototypeImportCustomerRequest
Returns
TypeDescription
ImportCustomerRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAuthToken()

public String getAuthToken()

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The authToken.

getAuthTokenBytes()

public ByteString getAuthTokenBytes()

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for authToken.

getChannelPartnerId()

public String getChannelPartnerId()

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The channelPartnerId.

getChannelPartnerIdBytes()

public ByteString getChannelPartnerIdBytes()

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for channelPartnerId.

getCloudIdentityId()

public String getCloudIdentityId()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The cloudIdentityId.

getCloudIdentityIdBytes()

public ByteString getCloudIdentityIdBytes()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for cloudIdentityId.

getCustomer()

public String getCustomer()

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The customer.

getCustomerBytes()

public ByteString getCustomerBytes()

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for customer.

getCustomerIdentityCase()

public ImportCustomerRequest.CustomerIdentityCase getCustomerIdentityCase()
Returns
TypeDescription
ImportCustomerRequest.CustomerIdentityCase

getDefaultInstanceForType()

public ImportCustomerRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportCustomerRequest

getDomain()

public String getDomain()

Required. Customer domain.

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

Returns
TypeDescription
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

Required. Customer domain.

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

Returns
TypeDescription
ByteString

The bytes for domain.

getOverwriteIfExists()

public boolean getOverwriteIfExists()

Required. Choose to overwrite an existing customer if found. This must be set to true if there is an existing customer with a conflicting region code or domain.

bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

The overwriteIfExists.

getParent()

public String getParent()

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCloudIdentityId()

public boolean hasCloudIdentityId()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the cloudIdentityId field is set.

hasDomain()

public boolean hasDomain()

Required. Customer domain.

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

Returns
TypeDescription
boolean

Whether the domain 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 ImportCustomerRequest.Builder newBuilderForType()
Returns
TypeDescription
ImportCustomerRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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