Class GeoTargetConstant.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
com.google.ads.googleads.v18.resources.GeoTargetConstant.Builder
- All Implemented Interfaces:
GeoTargetConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GeoTargetConstant
public static final class GeoTargetConstant.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
implements GeoTargetConstantOrBuilder
A geo target constant.Protobuf type
google.ads.googleads.v18.resources.GeoTargetConstant-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Output only.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.Output only.Output only.clone()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanhasId()Output only.booleanhasName()Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(GeoTargetConstant other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCanonicalName(String value) Output only.setCanonicalNameBytes(com.google.protobuf.ByteString value) Output only.setCountryCode(String value) Output only.setCountryCodeBytes(com.google.protobuf.ByteString value) Output only.setId(long value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setParentGeoTarget(String value) Output only.setParentGeoTargetBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setStatusValue(int value) Output only.setTargetType(String value) Output only.setTargetTypeBytes(com.google.protobuf.ByteString value) Output only.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
setField
public GeoTargetConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
setRepeatedField
public GeoTargetConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
addRepeatedField
public GeoTargetConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeoTargetConstant.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
mergeFrom
public GeoTargetConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeoTargetConstant.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceGeoTargetConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceGeoTargetConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. The ID of the geo target constant.
optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceGeoTargetConstantOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. The ID of the geo target constant.
optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceGeoTargetConstantOrBuilder- Returns:
- The id.
-
setId
Output only. The ID of the geo target constant.
optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. The ID of the geo target constant.
optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Output only. Geo target constant English name.
optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceGeoTargetConstantOrBuilder- Returns:
- Whether the name field is set.
-
getName
Output only. Geo target constant English name.
optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceGeoTargetConstantOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Geo target constant English name.
optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceGeoTargetConstantOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Geo target constant English name.
optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Geo target constant English name.
optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Geo target constant English name.
optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCountryCode
public boolean hasCountryCode()Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCountryCodein interfaceGeoTargetConstantOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCountryCodein interfaceGeoTargetConstantOrBuilder- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCountryCodeBytesin interfaceGeoTargetConstantOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The countryCode to set.- Returns:
- This builder for chaining.
-
clearCountryCode
Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCountryCodeBytes
Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
hasTargetType
public boolean hasTargetType()Output only. Geo target constant target type.
optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTargetTypein interfaceGeoTargetConstantOrBuilder- Returns:
- Whether the targetType field is set.
-
getTargetType
Output only. Geo target constant target type.
optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetTypein interfaceGeoTargetConstantOrBuilder- Returns:
- The targetType.
-
getTargetTypeBytes
public com.google.protobuf.ByteString getTargetTypeBytes()Output only. Geo target constant target type.
optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetTypeBytesin interfaceGeoTargetConstantOrBuilder- Returns:
- The bytes for targetType.
-
setTargetType
Output only. Geo target constant target type.
optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The targetType to set.- Returns:
- This builder for chaining.
-
clearTargetType
Output only. Geo target constant target type.
optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTargetTypeBytes
Output only. Geo target constant target type.
optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for targetType to set.- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()Output only. Geo target constant status.
.google.ads.googleads.v18.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceGeoTargetConstantOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. Geo target constant status.
.google.ads.googleads.v18.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Output only. Geo target constant status.
.google.ads.googleads.v18.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceGeoTargetConstantOrBuilder- Returns:
- The status.
-
setStatus
public GeoTargetConstant.Builder setStatus(GeoTargetConstantStatusEnum.GeoTargetConstantStatus value) Output only. Geo target constant status.
.google.ads.googleads.v18.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. Geo target constant status.
.google.ads.googleads.v18.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCanonicalName
public boolean hasCanonicalName()Output only. The fully qualified English name, consisting of the target's name and that of its parent and country.
optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCanonicalNamein interfaceGeoTargetConstantOrBuilder- Returns:
- Whether the canonicalName field is set.
-
getCanonicalName
Output only. The fully qualified English name, consisting of the target's name and that of its parent and country.
optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCanonicalNamein interfaceGeoTargetConstantOrBuilder- Returns:
- The canonicalName.
-
getCanonicalNameBytes
public com.google.protobuf.ByteString getCanonicalNameBytes()Output only. The fully qualified English name, consisting of the target's name and that of its parent and country.
optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCanonicalNameBytesin interfaceGeoTargetConstantOrBuilder- Returns:
- The bytes for canonicalName.
-
setCanonicalName
Output only. The fully qualified English name, consisting of the target's name and that of its parent and country.
optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The canonicalName to set.- Returns:
- This builder for chaining.
-
clearCanonicalName
Output only. The fully qualified English name, consisting of the target's name and that of its parent and country.
optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCanonicalNameBytes
Output only. The fully qualified English name, consisting of the target's name and that of its parent and country.
optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for canonicalName to set.- Returns:
- This builder for chaining.
-
hasParentGeoTarget
public boolean hasParentGeoTarget()Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}`optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
hasParentGeoTargetin interfaceGeoTargetConstantOrBuilder- Returns:
- Whether the parentGeoTarget field is set.
-
getParentGeoTarget
Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}`optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getParentGeoTargetin interfaceGeoTargetConstantOrBuilder- Returns:
- The parentGeoTarget.
-
getParentGeoTargetBytes
public com.google.protobuf.ByteString getParentGeoTargetBytes()Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}`optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getParentGeoTargetBytesin interfaceGeoTargetConstantOrBuilder- Returns:
- The bytes for parentGeoTarget.
-
setParentGeoTarget
Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}`optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The parentGeoTarget to set.- Returns:
- This builder for chaining.
-
clearParentGeoTarget
Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}`optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentGeoTargetBytes
Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}`optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parentGeoTarget to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GeoTargetConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-
mergeUnknownFields
public final GeoTargetConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
-