Class CreateEntitlementRequest.Builder (3.44.0)

public static final class CreateEntitlementRequest.Builder extends GeneratedMessageV3.Builder<CreateEntitlementRequest.Builder> implements CreateEntitlementRequestOrBuilder

Request message for CloudChannelService.CreateEntitlement

Protobuf type google.cloud.channel.v1.CreateEntitlementRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateEntitlementRequest build()
Returns
TypeDescription
CreateEntitlementRequest

buildPartial()

public CreateEntitlementRequest buildPartial()
Returns
TypeDescription
CreateEntitlementRequest

clear()

public CreateEntitlementRequest.Builder clear()
Returns
TypeDescription
CreateEntitlementRequest.Builder
Overrides

clearEntitlement()

public CreateEntitlementRequest.Builder clearEntitlement()

Required. The entitlement to create.

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

Returns
TypeDescription
CreateEntitlementRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateEntitlementRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateEntitlementRequest.Builder
Overrides

clearParent()

public CreateEntitlementRequest.Builder clearParent()

Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateEntitlementRequest.Builder

This builder for chaining.

clearRequestId()

public CreateEntitlementRequest.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateEntitlementRequest.Builder

This builder for chaining.

clone()

public CreateEntitlementRequest.Builder clone()
Returns
TypeDescription
CreateEntitlementRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateEntitlementRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateEntitlementRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntitlement()

public Entitlement getEntitlement()

Required. The entitlement to create.

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

Returns
TypeDescription
Entitlement

The entitlement.

getEntitlementBuilder()

public Entitlement.Builder getEntitlementBuilder()

Required. The entitlement to create.

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

Returns
TypeDescription
Entitlement.Builder

getEntitlementOrBuilder()

public EntitlementOrBuilder getEntitlementOrBuilder()

Required. The entitlement to create.

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

Returns
TypeDescription
EntitlementOrBuilder

getParent()

public String getParent()

Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

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 = 5 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

hasEntitlement()

public boolean hasEntitlement()

Required. The entitlement to create.

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

Returns
TypeDescription
boolean

Whether the entitlement field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEntitlement(Entitlement value)

public CreateEntitlementRequest.Builder mergeEntitlement(Entitlement value)

Required. The entitlement to create.

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

Parameter
NameDescription
valueEntitlement
Returns
TypeDescription
CreateEntitlementRequest.Builder

mergeFrom(CreateEntitlementRequest other)

public CreateEntitlementRequest.Builder mergeFrom(CreateEntitlementRequest other)
Parameter
NameDescription
otherCreateEntitlementRequest
Returns
TypeDescription
CreateEntitlementRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateEntitlementRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateEntitlementRequest.Builder
Overrides

setEntitlement(Entitlement value)

public CreateEntitlementRequest.Builder setEntitlement(Entitlement value)

Required. The entitlement to create.

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

Parameter
NameDescription
valueEntitlement
Returns
TypeDescription
CreateEntitlementRequest.Builder

setEntitlement(Entitlement.Builder builderForValue)

public CreateEntitlementRequest.Builder setEntitlement(Entitlement.Builder builderForValue)

Required. The entitlement to create.

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

Parameter
NameDescription
builderForValueEntitlement.Builder
Returns
TypeDescription
CreateEntitlementRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateEntitlementRequest.Builder setParent(String value)

Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateEntitlementRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEntitlementRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateEntitlementRequest.Builder

This builder for chaining.

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

public CreateEntitlementRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateEntitlementRequest.Builder
Overrides

setRequestId(String value)

public CreateEntitlementRequest.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateEntitlementRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateEntitlementRequest.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateEntitlementRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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