Class TransferEntitlementsRequest.Builder (3.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.Entitlement>
Returns
TypeDescription
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
NameDescription
valueEntitlement
Returns
TypeDescription
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
NameDescription
builderForValueEntitlement.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueEntitlement
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEntitlement.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Entitlement.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferEntitlementsRequest build()
Returns
TypeDescription
TransferEntitlementsRequest

buildPartial()

public TransferEntitlementsRequest buildPartial()
Returns
TypeDescription
TransferEntitlementsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

The bytes for authToken.

getDefaultInstanceForType()

public TransferEntitlementsRequest getDefaultInstanceForType()
Returns
TypeDescription
TransferEntitlementsRequest

getDescriptorForType()

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

The bytes for requestId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TransferEntitlementsRequest other)

public TransferEntitlementsRequest.Builder mergeFrom(TransferEntitlementsRequest other)
Parameter
NameDescription
otherTransferEntitlementsRequest
Returns
TypeDescription
TransferEntitlementsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferEntitlementsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The authToken to set.

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

The bytes for authToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueEntitlement
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEntitlement.Builder
Returns
TypeDescription
TransferEntitlementsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

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

The bytes for requestId to set.

Returns
TypeDescription
TransferEntitlementsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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