Class CreateTargetRequest.Builder (1.1.4)

public static final class CreateTargetRequest.Builder extends GeneratedMessageV3.Builder<CreateTargetRequest.Builder> implements CreateTargetRequestOrBuilder

The request object for CreateTarget.

Protobuf type google.cloud.deploy.v1.CreateTargetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTargetRequest build()
Returns
TypeDescription
CreateTargetRequest

buildPartial()

public CreateTargetRequest buildPartial()
Returns
TypeDescription
CreateTargetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateTargetRequest.Builder clearParent()

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

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

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

clearRequestId()

public CreateTargetRequest.Builder clearRequestId()

Optional. A 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];

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

clearTarget()

public CreateTargetRequest.Builder clearTarget()

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateTargetRequest.Builder

clearTargetId()

public CreateTargetRequest.Builder clearTargetId()

Required. ID of the Target.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateTargetRequest.Builder clearValidateOnly()

Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTargetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTargetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A 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];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A 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];

Returns
TypeDescription
ByteString

The bytes for requestId.

getTarget()

public Target getTarget()

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Target

The target.

getTargetBuilder()

public Target.Builder getTargetBuilder()

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Target.Builder

getTargetId()

public String getTargetId()

Required. ID of the Target.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The targetId.

getTargetIdBytes()

public ByteString getTargetIdBytes()

Required. ID of the Target.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for targetId.

getTargetOrBuilder()

public TargetOrBuilder getTargetOrBuilder()

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TargetOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

hasTarget()

public boolean hasTarget()

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the target field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTargetRequest other)

public CreateTargetRequest.Builder mergeFrom(CreateTargetRequest other)
Parameter
NameDescription
otherCreateTargetRequest
Returns
TypeDescription
CreateTargetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTarget(Target value)

public CreateTargetRequest.Builder mergeTarget(Target value)

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTarget
Returns
TypeDescription
CreateTargetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateTargetRequest.Builder setParent(String value)

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTargetRequest.Builder setParentBytes(ByteString value)

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateTargetRequest.Builder setRequestId(String value)

Optional. A 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];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateTargetRequest.Builder setRequestIdBytes(ByteString value)

Optional. A 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];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

setTarget(Target value)

public CreateTargetRequest.Builder setTarget(Target value)

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTarget
Returns
TypeDescription
CreateTargetRequest.Builder

setTarget(Target.Builder builderForValue)

public CreateTargetRequest.Builder setTarget(Target.Builder builderForValue)

Required. The Target to create.

.google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTarget.Builder
Returns
TypeDescription
CreateTargetRequest.Builder

setTargetId(String value)

public CreateTargetRequest.Builder setTargetId(String value)

Required. ID of the Target.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The targetId to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

setTargetIdBytes(ByteString value)

public CreateTargetRequest.Builder setTargetIdBytes(ByteString value)

Required. ID of the Target.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for targetId to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateTargetRequest.Builder setValidateOnly(boolean value)

Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateTargetRequest.Builder

This builder for chaining.