Send feedback
Class CustomTarget.Builder (1.83.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class CustomTarget . Builder extends GeneratedMessage . Builder<CustomTarget . Builder > implements CustomTargetOrBuilder
Information specifying a Custom Target.
Protobuf type google.cloud.deploy.v1.CustomTarget
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public CustomTarget build ()
buildPartial()
public CustomTarget buildPartial ()
clear()
public CustomTarget . Builder clear ()
Overrides
clearCustomTargetType()
public CustomTarget . Builder clearCustomTargetType ()
Required. The name of the CustomTargetType. Format must be
projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getCustomTargetType()
public String getCustomTargetType ()
Required. The name of the CustomTargetType. Format must be
projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The customTargetType.
getCustomTargetTypeBytes()
public ByteString getCustomTargetTypeBytes ()
Required. The name of the CustomTargetType. Format must be
projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for customTargetType.
getDefaultInstanceForType()
public CustomTarget getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(CustomTarget other)
public CustomTarget . Builder mergeFrom ( CustomTarget other )
public CustomTarget . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CustomTarget . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
setCustomTargetType(String value)
public CustomTarget . Builder setCustomTargetType ( String value )
Required. The name of the CustomTargetType. Format must be
projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
String The customTargetType to set.
setCustomTargetTypeBytes(ByteString value)
public CustomTarget . Builder setCustomTargetTypeBytes ( ByteString value )
Required. The name of the CustomTargetType. Format must be
projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
ByteString The bytes for customTargetType to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-27 UTC."],[],[]]