Class ChangeParametersRequest.Builder (3.7.2)

public static final class ChangeParametersRequest.Builder extends GeneratedMessageV3.Builder<ChangeParametersRequest.Builder> implements ChangeParametersRequestOrBuilder

Request message for [CloudChannelService.ChangeParametersRequest][].

Protobuf type google.cloud.channel.v1.ChangeParametersRequest

Static Methods

getDescriptor()

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

Methods

addAllParameters(Iterable<? extends Parameter> values)

public ChangeParametersRequest.Builder addAllParameters(Iterable<? extends Parameter> values)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.Parameter>
Returns
TypeDescription
ChangeParametersRequest.Builder

addParameters(Parameter value)

public ChangeParametersRequest.Builder addParameters(Parameter value)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
valueParameter
Returns
TypeDescription
ChangeParametersRequest.Builder

addParameters(Parameter.Builder builderForValue)

public ChangeParametersRequest.Builder addParameters(Parameter.Builder builderForValue)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
builderForValueParameter.Builder
Returns
TypeDescription
ChangeParametersRequest.Builder

addParameters(int index, Parameter value)

public ChangeParametersRequest.Builder addParameters(int index, Parameter value)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameters
NameDescription
indexint
valueParameter
Returns
TypeDescription
ChangeParametersRequest.Builder

addParameters(int index, Parameter.Builder builderForValue)

public ChangeParametersRequest.Builder addParameters(int index, Parameter.Builder builderForValue)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameters
NameDescription
indexint
builderForValueParameter.Builder
Returns
TypeDescription
ChangeParametersRequest.Builder

addParametersBuilder()

public Parameter.Builder addParametersBuilder()

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Returns
TypeDescription
Parameter.Builder

addParametersBuilder(int index)

public Parameter.Builder addParametersBuilder(int index)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Parameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChangeParametersRequest build()
Returns
TypeDescription
ChangeParametersRequest

buildPartial()

public ChangeParametersRequest buildPartial()
Returns
TypeDescription
ChangeParametersRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ChangeParametersRequest.Builder clearName()

Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

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

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public ChangeParametersRequest.Builder clearParameters()

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Returns
TypeDescription
ChangeParametersRequest.Builder

clearPurchaseOrderId()

public ChangeParametersRequest.Builder clearPurchaseOrderId()

Optional. Purchase order ID provided by the reseller.

string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

clearRequestId()

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

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ChangeParametersRequest getDefaultInstanceForType()
Returns
TypeDescription
ChangeParametersRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

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

Returns
TypeDescription
ByteString

The bytes for name.

getParameters(int index)

public Parameter getParameters(int index)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Parameter

getParametersBuilder(int index)

public Parameter.Builder getParametersBuilder(int index)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Parameter.Builder

getParametersBuilderList()

public List<Parameter.Builder> getParametersBuilderList()

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Returns
TypeDescription
List<Builder>

getParametersCount()

public int getParametersCount()

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Returns
TypeDescription
int

getParametersList()

public List<Parameter> getParametersList()

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Returns
TypeDescription
List<Parameter>

getParametersOrBuilder(int index)

public ParameterOrBuilder getParametersOrBuilder(int index)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterOrBuilder

getParametersOrBuilderList()

public List<? extends ParameterOrBuilder> getParametersOrBuilderList()

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Returns
TypeDescription
List<? extends com.google.cloud.channel.v1.ParameterOrBuilder>

getPurchaseOrderId()

public String getPurchaseOrderId()

Optional. Purchase order ID provided by the reseller.

string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The purchaseOrderId.

getPurchaseOrderIdBytes()

public ByteString getPurchaseOrderIdBytes()

Optional. Purchase order ID provided by the reseller.

string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for purchaseOrderId.

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 = 4 [(.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 = 4 [(.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(ChangeParametersRequest other)

public ChangeParametersRequest.Builder mergeFrom(ChangeParametersRequest other)
Parameter
NameDescription
otherChangeParametersRequest
Returns
TypeDescription
ChangeParametersRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeParameters(int index)

public ChangeParametersRequest.Builder removeParameters(int index)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ChangeParametersRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ChangeParametersRequest.Builder setName(String value)

Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ChangeParametersRequest.Builder setNameBytes(ByteString value)

Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

setParameters(int index, Parameter value)

public ChangeParametersRequest.Builder setParameters(int index, Parameter value)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameters
NameDescription
indexint
valueParameter
Returns
TypeDescription
ChangeParametersRequest.Builder

setParameters(int index, Parameter.Builder builderForValue)

public ChangeParametersRequest.Builder setParameters(int index, Parameter.Builder builderForValue)

Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from the desired offer.

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

Parameters
NameDescription
indexint
builderForValueParameter.Builder
Returns
TypeDescription
ChangeParametersRequest.Builder

setPurchaseOrderId(String value)

public ChangeParametersRequest.Builder setPurchaseOrderId(String value)

Optional. Purchase order ID provided by the reseller.

string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The purchaseOrderId to set.

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

setPurchaseOrderIdBytes(ByteString value)

public ChangeParametersRequest.Builder setPurchaseOrderIdBytes(ByteString value)

Optional. Purchase order ID provided by the reseller.

string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for purchaseOrderId to set.

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

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

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
ChangeParametersRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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