Class MobileDeviceConstant.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
com.google.ads.googleads.v18.resources.MobileDeviceConstant.Builder
- All Implemented Interfaces:
MobileDeviceConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MobileDeviceConstant
public static final class MobileDeviceConstant.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
implements MobileDeviceConstantOrBuilder
A mobile device constant.Protobuf type
google.ads.googleads.v18.resources.MobileDeviceConstant-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Output only.Output only.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.Output only.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getType()Output only.intOutput only.booleanhasId()Output only.booleanOutput only.booleanhasName()Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(MobileDeviceConstant other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setId(long value) Output only.setManufacturerName(String value) Output only.setManufacturerNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setOperatingSystemName(String value) Output only.setOperatingSystemNameBytes(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.setTypeValue(int 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<MobileDeviceConstant.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<MobileDeviceConstant.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<MobileDeviceConstant.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<MobileDeviceConstant.Builder>
-
setField
public MobileDeviceConstant.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<MobileDeviceConstant.Builder>
-
clearField
public MobileDeviceConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
-
clearOneof
public MobileDeviceConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
-
setRepeatedField
public MobileDeviceConstant.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<MobileDeviceConstant.Builder>
-
addRepeatedField
public MobileDeviceConstant.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<MobileDeviceConstant.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MobileDeviceConstant.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
-
mergeFrom
public MobileDeviceConstant.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<MobileDeviceConstant.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the mobile device constant. Mobile device constant resource names have the form: `mobileDeviceConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the mobile device constant. Mobile device constant resource names have the form: `mobileDeviceConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceMobileDeviceConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the mobile device constant. Mobile device constant resource names have the form: `mobileDeviceConstants/{criterion_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 mobile device constant. Mobile device constant resource names have the form: `mobileDeviceConstants/{criterion_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 mobile device constant. Mobile device constant resource names have the form: `mobileDeviceConstants/{criterion_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 mobile device constant.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceMobileDeviceConstantOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. The ID of the mobile device constant.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceMobileDeviceConstantOrBuilder- Returns:
- The id.
-
setId
Output only. The ID of the mobile device constant.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. The ID of the mobile device constant.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Output only. The name of the mobile device.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- Whether the name field is set.
-
getName
Output only. The name of the mobile device.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The name of the mobile device.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceMobileDeviceConstantOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The name of the mobile device.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The name of the mobile device.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The name of the mobile device.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasManufacturerName
public boolean hasManufacturerName()Output only. The manufacturer of the mobile device.
optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasManufacturerNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- Whether the manufacturerName field is set.
-
getManufacturerName
Output only. The manufacturer of the mobile device.
optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getManufacturerNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- The manufacturerName.
-
getManufacturerNameBytes
public com.google.protobuf.ByteString getManufacturerNameBytes()Output only. The manufacturer of the mobile device.
optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getManufacturerNameBytesin interfaceMobileDeviceConstantOrBuilder- Returns:
- The bytes for manufacturerName.
-
setManufacturerName
Output only. The manufacturer of the mobile device.
optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The manufacturerName to set.- Returns:
- This builder for chaining.
-
clearManufacturerName
Output only. The manufacturer of the mobile device.
optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setManufacturerNameBytes
Output only. The manufacturer of the mobile device.
optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for manufacturerName to set.- Returns:
- This builder for chaining.
-
hasOperatingSystemName
public boolean hasOperatingSystemName()Output only. The operating system of the mobile device.
optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasOperatingSystemNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- Whether the operatingSystemName field is set.
-
getOperatingSystemName
Output only. The operating system of the mobile device.
optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOperatingSystemNamein interfaceMobileDeviceConstantOrBuilder- Returns:
- The operatingSystemName.
-
getOperatingSystemNameBytes
public com.google.protobuf.ByteString getOperatingSystemNameBytes()Output only. The operating system of the mobile device.
optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOperatingSystemNameBytesin interfaceMobileDeviceConstantOrBuilder- Returns:
- The bytes for operatingSystemName.
-
setOperatingSystemName
Output only. The operating system of the mobile device.
optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The operatingSystemName to set.- Returns:
- This builder for chaining.
-
clearOperatingSystemName
Output only. The operating system of the mobile device.
optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setOperatingSystemNameBytes
public MobileDeviceConstant.Builder setOperatingSystemNameBytes(com.google.protobuf.ByteString value) Output only. The operating system of the mobile device.
optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for operatingSystemName to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Output only. The type of mobile device.
.google.ads.googleads.v18.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeValuein interfaceMobileDeviceConstantOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Output only. The type of mobile device.
.google.ads.googleads.v18.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Output only. The type of mobile device.
.google.ads.googleads.v18.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfaceMobileDeviceConstantOrBuilder- Returns:
- The type.
-
setType
Output only. The type of mobile device.
.google.ads.googleads.v18.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. The type of mobile device.
.google.ads.googleads.v18.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final MobileDeviceConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
-
mergeUnknownFields
public final MobileDeviceConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
-