public static final class CreateVariantRequest.Builder extends GeneratedMessageV3.Builder<CreateVariantRequest.Builder> implements CreateVariantRequestOrBuilder
Message for creating a Variant
Protobuf type google.cloud.configdelivery.v1beta.CreateVariantRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateVariantRequest.BuilderImplements
CreateVariantRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateVariantRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
build()
public CreateVariantRequest build()
Returns | |
---|---|
Type | Description |
CreateVariantRequest |
buildPartial()
public CreateVariantRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateVariantRequest |
clear()
public CreateVariantRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateVariantRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateVariantRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
clearParent()
public CreateVariantRequest.Builder clearParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateVariantRequest.Builder clearRequestId()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where 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 original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
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, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
clearVariant()
public CreateVariantRequest.Builder clearVariant()
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
clearVariantId()
public CreateVariantRequest.Builder clearVariantId()
Required. Id of the requesting object
string variant_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
clone()
public CreateVariantRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
getDefaultInstanceForType()
public CreateVariantRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateVariantRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getRequestId()
public String getRequestId()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where 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 original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
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, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The requestId. |
getRequestIdBytes()
public ByteString getRequestIdBytes()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where 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 original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
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, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for requestId. |
getVariant()
public Variant getVariant()
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Variant |
The variant. |
getVariantBuilder()
public Variant.Builder getVariantBuilder()
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Variant.Builder |
getVariantId()
public String getVariantId()
Required. Id of the requesting object
string variant_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The variantId. |
getVariantIdBytes()
public ByteString getVariantIdBytes()
Required. Id of the requesting object
string variant_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for variantId. |
getVariantOrBuilder()
public VariantOrBuilder getVariantOrBuilder()
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
VariantOrBuilder |
hasVariant()
public boolean hasVariant()
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the variant field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CreateVariantRequest other)
public CreateVariantRequest.Builder mergeFrom(CreateVariantRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateVariantRequest |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateVariantRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateVariantRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateVariantRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
mergeVariant(Variant value)
public CreateVariantRequest.Builder mergeVariant(Variant value)
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Variant |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateVariantRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
setParent(String value)
public CreateVariantRequest.Builder setParent(String value)
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateVariantRequest.Builder setParentBytes(ByteString value)
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateVariantRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
setRequestId(String value)
public CreateVariantRequest.Builder setRequestId(String value)
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where 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 original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
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, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The requestId to set. |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateVariantRequest.Builder setRequestIdBytes(ByteString value)
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where 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 original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
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, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for requestId to set. |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateVariantRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
setVariant(Variant value)
public CreateVariantRequest.Builder setVariant(Variant value)
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Variant |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
setVariant(Variant.Builder builderForValue)
public CreateVariantRequest.Builder setVariant(Variant.Builder builderForValue)
Required. The resource being created
.google.cloud.configdelivery.v1beta.Variant variant = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Variant.Builder |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
setVariantId(String value)
public CreateVariantRequest.Builder setVariantId(String value)
Required. Id of the requesting object
string variant_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The variantId to set. |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |
setVariantIdBytes(ByteString value)
public CreateVariantRequest.Builder setVariantIdBytes(ByteString value)
Required. Id of the requesting object
string variant_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for variantId to set. |
Returns | |
---|---|
Type | Description |
CreateVariantRequest.Builder |
This builder for chaining. |