Class GetTargetRequest.Builder (1.17.0)

public static final class GetTargetRequest.Builder extends GeneratedMessageV3.Builder<GetTargetRequest.Builder> implements GetTargetRequestOrBuilder

The request object for GetTarget.

Protobuf type google.cloud.deploy.v1.GetTargetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetTargetRequest build()
Returns
TypeDescription
GetTargetRequest

buildPartial()

public GetTargetRequest buildPartial()
Returns
TypeDescription
GetTargetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetTargetRequest.Builder clearName()

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

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

Returns
TypeDescription
GetTargetRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetTargetRequest getDefaultInstanceForType()
Returns
TypeDescription
GetTargetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetTargetRequest other)

public GetTargetRequest.Builder mergeFrom(GetTargetRequest other)
Parameter
NameDescription
otherGetTargetRequest
Returns
TypeDescription
GetTargetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetTargetRequest.Builder setName(String value)

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetTargetRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetTargetRequest.Builder setNameBytes(ByteString value)

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetTargetRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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