Class CreateUnitKindRequest.Builder (0.2.0)

public static final class CreateUnitKindRequest.Builder extends GeneratedMessageV3.Builder<CreateUnitKindRequest.Builder> implements CreateUnitKindRequestOrBuilder

The request structure for the CreateUnitKind method.

Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateUnitKindRequest build()
Returns
Type Description
CreateUnitKindRequest

buildPartial()

public CreateUnitKindRequest buildPartial()
Returns
Type Description
CreateUnitKindRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateUnitKindRequest.Builder clearParent()

Required. The parent of the unit kind.

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

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

clearRequestId()

public CreateUnitKindRequest.Builder clearRequestId()

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 = 10502;

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

clearUnitKind()

public CreateUnitKindRequest.Builder clearUnitKind()

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUnitKindRequest.Builder

clearUnitKindId()

public CreateUnitKindRequest.Builder clearUnitKindId()

Required. The ID value for the new unit kind.

string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateUnitKindRequest.Builder clearValidateOnly()

If "validate_only" is set to true, the service will try to validate that this request would succeed, but will not actually make changes.

bool validate_only = 10501;

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateUnitKindRequest getDefaultInstanceForType()
Returns
Type Description
CreateUnitKindRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent of the unit kind.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent of the unit kind.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

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 = 10502;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

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 = 10502;

Returns
Type Description
ByteString

The bytes for requestId.

getUnitKind()

public UnitKind getUnitKind()

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UnitKind

The unitKind.

getUnitKindBuilder()

public UnitKind.Builder getUnitKindBuilder()

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UnitKind.Builder

getUnitKindId()

public String getUnitKindId()

Required. The ID value for the new unit kind.

string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The unitKindId.

getUnitKindIdBytes()

public ByteString getUnitKindIdBytes()

Required. The ID value for the new unit kind.

string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for unitKindId.

getUnitKindOrBuilder()

public UnitKindOrBuilder getUnitKindOrBuilder()

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UnitKindOrBuilder

getValidateOnly()

public boolean getValidateOnly()

If "validate_only" is set to true, the service will try to validate that this request would succeed, but will not actually make changes.

bool validate_only = 10501;

Returns
Type Description
boolean

The validateOnly.

hasUnitKind()

public boolean hasUnitKind()

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the unitKind field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateUnitKindRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnitKind(UnitKind value)

public CreateUnitKindRequest.Builder mergeUnitKind(UnitKind value)

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UnitKind
Returns
Type Description
CreateUnitKindRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateUnitKindRequest.Builder setParent(String value)

Required. The parent of the unit kind.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateUnitKindRequest.Builder setParentBytes(ByteString value)

Required. The parent of the unit kind.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateUnitKindRequest.Builder setRequestId(String value)

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 = 10502;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateUnitKindRequest.Builder setRequestIdBytes(ByteString value)

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 = 10502;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

setUnitKind(UnitKind value)

public CreateUnitKindRequest.Builder setUnitKind(UnitKind value)

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UnitKind
Returns
Type Description
CreateUnitKindRequest.Builder

setUnitKind(UnitKind.Builder builderForValue)

public CreateUnitKindRequest.Builder setUnitKind(UnitKind.Builder builderForValue)

Required. The desired state for the unit kind.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UnitKind.Builder
Returns
Type Description
CreateUnitKindRequest.Builder

setUnitKindId(String value)

public CreateUnitKindRequest.Builder setUnitKindId(String value)

Required. The ID value for the new unit kind.

string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The unitKindId to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

setUnitKindIdBytes(ByteString value)

public CreateUnitKindRequest.Builder setUnitKindIdBytes(ByteString value)

Required. The ID value for the new unit kind.

string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for unitKindId to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateUnitKindRequest.Builder setValidateOnly(boolean value)

If "validate_only" is set to true, the service will try to validate that this request would succeed, but will not actually make changes.

bool validate_only = 10501;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateUnitKindRequest.Builder

This builder for chaining.