Class TransferEntitlementsRequest.Builder (3.46.0)

public static final class TransferEntitlementsRequest.Builder extends GeneratedMessageV3.Builder<TransferEntitlementsRequest.Builder> implements TransferEntitlementsRequestOrBuilder

Request message for CloudChannelService.TransferEntitlements.

Protobuf type google.cloud.channel.v1.TransferEntitlementsRequest

Static Methods

getDescriptor()

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

Methods

addAllEntitlements(Iterable<? extends Entitlement> values)

public TransferEntitlementsRequest.Builder addAllEntitlements(Iterable<? extends Entitlement> values)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.channel.v1.Entitlement>
Returns
Type Description
TransferEntitlementsRequest.Builder

addEntitlements(Entitlement value)

public TransferEntitlementsRequest.Builder addEntitlements(Entitlement value)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Entitlement
Returns
Type Description
TransferEntitlementsRequest.Builder

addEntitlements(Entitlement.Builder builderForValue)

public TransferEntitlementsRequest.Builder addEntitlements(Entitlement.Builder builderForValue)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Entitlement.Builder
Returns
Type Description
TransferEntitlementsRequest.Builder

addEntitlements(int index, Entitlement value)

public TransferEntitlementsRequest.Builder addEntitlements(int index, Entitlement value)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Entitlement
Returns
Type Description
TransferEntitlementsRequest.Builder

addEntitlements(int index, Entitlement.Builder builderForValue)

public TransferEntitlementsRequest.Builder addEntitlements(int index, Entitlement.Builder builderForValue)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Entitlement.Builder
Returns
Type Description
TransferEntitlementsRequest.Builder

addEntitlementsBuilder()

public Entitlement.Builder addEntitlementsBuilder()

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Entitlement.Builder

addEntitlementsBuilder(int index)

public Entitlement.Builder addEntitlementsBuilder(int index)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Entitlement.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferEntitlementsRequest build()
Returns
Type Description
TransferEntitlementsRequest

buildPartial()

public TransferEntitlementsRequest buildPartial()
Returns
Type Description
TransferEntitlementsRequest

clear()

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

clearAuthToken()

public TransferEntitlementsRequest.Builder clearAuthToken()

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;

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

clearEntitlements()

public TransferEntitlementsRequest.Builder clearEntitlements()

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferEntitlementsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public TransferEntitlementsRequest.Builder clearParent()

Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id}

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

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

clearRequestId()

public TransferEntitlementsRequest.Builder clearRequestId()

Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete.

For example, you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request ID. If it did, it will ignore the second request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

clone()

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

getAuthToken()

public String getAuthToken()

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;

Returns
Type Description
String

The authToken.

getAuthTokenBytes()

public ByteString getAuthTokenBytes()

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;

Returns
Type Description
ByteString

The bytes for authToken.

getDefaultInstanceForType()

public TransferEntitlementsRequest getDefaultInstanceForType()
Returns
Type Description
TransferEntitlementsRequest

getDescriptorForType()

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

getEntitlements(int index)

public Entitlement getEntitlements(int index)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Entitlement

getEntitlementsBuilder(int index)

public Entitlement.Builder getEntitlementsBuilder(int index)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Entitlement.Builder

getEntitlementsBuilderList()

public List<Entitlement.Builder> getEntitlementsBuilderList()

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getEntitlementsCount()

public int getEntitlementsCount()

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getEntitlementsList()

public List<Entitlement> getEntitlementsList()

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Entitlement>

getEntitlementsOrBuilder(int index)

public EntitlementOrBuilder getEntitlementsOrBuilder(int index)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EntitlementOrBuilder

getEntitlementsOrBuilderList()

public List<? extends EntitlementOrBuilder> getEntitlementsOrBuilderList()

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.channel.v1.EntitlementOrBuilder>

getParent()

public String getParent()

Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id}

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

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete.

For example, you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request ID. If it did, it will ignore the second request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete.

For example, you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request ID. If it did, it will ignore the second request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

Returns
Type Description
ByteString

The bytes for requestId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TransferEntitlementsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEntitlements(int index)

public TransferEntitlementsRequest.Builder removeEntitlements(int index)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TransferEntitlementsRequest.Builder

setAuthToken(String value)

public TransferEntitlementsRequest.Builder setAuthToken(String value)

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;

Parameter
Name Description
value String

The authToken to set.

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

setAuthTokenBytes(ByteString value)

public TransferEntitlementsRequest.Builder setAuthTokenBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for authToken to set.

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

setEntitlements(int index, Entitlement value)

public TransferEntitlementsRequest.Builder setEntitlements(int index, Entitlement value)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Entitlement
Returns
Type Description
TransferEntitlementsRequest.Builder

setEntitlements(int index, Entitlement.Builder builderForValue)

public TransferEntitlementsRequest.Builder setEntitlements(int index, Entitlement.Builder builderForValue)

Required. The new entitlements to create or transfer.

repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Entitlement.Builder
Returns
Type Description
TransferEntitlementsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public TransferEntitlementsRequest.Builder setParent(String value)

Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public TransferEntitlementsRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public TransferEntitlementsRequest.Builder setRequestId(String value)

Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete.

For example, you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request ID. If it did, it will ignore the second request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public TransferEntitlementsRequest.Builder setRequestIdBytes(ByteString value)

Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete.

For example, you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request ID. If it did, it will ignore the second request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
TransferEntitlementsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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