Class OperatingSystemVersionConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
- com.google.ads.googleads.v10.resources.OperatingSystemVersionConstant.Builder
-
- All Implemented Interfaces:
OperatingSystemVersionConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- OperatingSystemVersionConstant
public static final class OperatingSystemVersionConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder> implements OperatingSystemVersionConstantOrBuilder
A mobile operating system version or a range of versions, depending on `operator_type`. List of available mobile platforms at https://developers.google.com/google-ads/api/reference/data/codes-formats#mobile-platforms
Protobuf typegoogle.ads.googleads.v10.resources.OperatingSystemVersionConstant
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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<OperatingSystemVersionConstant.Builder>
-
clear
public OperatingSystemVersionConstant.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<OperatingSystemVersionConstant.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<OperatingSystemVersionConstant.Builder>
-
getDefaultInstanceForType
public OperatingSystemVersionConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OperatingSystemVersionConstant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OperatingSystemVersionConstant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OperatingSystemVersionConstant.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<OperatingSystemVersionConstant.Builder>
-
setField
public OperatingSystemVersionConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
clearField
public OperatingSystemVersionConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
clearOneof
public OperatingSystemVersionConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
setRepeatedField
public OperatingSystemVersionConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
addRepeatedField
public OperatingSystemVersionConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
mergeFrom
public OperatingSystemVersionConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperatingSystemVersionConstant.Builder>
-
mergeFrom
public OperatingSystemVersionConstant.Builder mergeFrom(OperatingSystemVersionConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
mergeFrom
public OperatingSystemVersionConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperatingSystemVersionConstant.Builder>- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the operating system version constant. Operating system version constant resource names have the form: `operatingSystemVersionConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the operating system version constant. Operating system version constant resource names have the form: `operatingSystemVersionConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public OperatingSystemVersionConstant.Builder setResourceName(java.lang.String value)
Output only. The resource name of the operating system version constant. Operating system version constant resource names have the form: `operatingSystemVersionConstants/{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
public OperatingSystemVersionConstant.Builder clearResourceName()
Output only. The resource name of the operating system version constant. Operating system version constant resource names have the form: `operatingSystemVersionConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public OperatingSystemVersionConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the operating system version constant. Operating system version constant resource names have the form: `operatingSystemVersionConstants/{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 operating system version.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
Output only. The ID of the operating system version.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The id.
-
setId
public OperatingSystemVersionConstant.Builder setId(long value)
Output only. The ID of the operating system version.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public OperatingSystemVersionConstant.Builder clearId()
Output only. The ID of the operating system version.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Output only. Name of the operating system.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
Output only. Name of the operating system.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Name of the operating system.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The bytes for name.
-
setName
public OperatingSystemVersionConstant.Builder setName(java.lang.String value)
Output only. Name of the operating system.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public OperatingSystemVersionConstant.Builder clearName()
Output only. Name of the operating system.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public OperatingSystemVersionConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Name of the operating system.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasOsMajorVersion
public boolean hasOsMajorVersion()
Output only. The OS Major Version number.
optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasOsMajorVersionin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- Whether the osMajorVersion field is set.
-
getOsMajorVersion
public int getOsMajorVersion()
Output only. The OS Major Version number.
optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsMajorVersionin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The osMajorVersion.
-
setOsMajorVersion
public OperatingSystemVersionConstant.Builder setOsMajorVersion(int value)
Output only. The OS Major Version number.
optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The osMajorVersion to set.- Returns:
- This builder for chaining.
-
clearOsMajorVersion
public OperatingSystemVersionConstant.Builder clearOsMajorVersion()
Output only. The OS Major Version number.
optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasOsMinorVersion
public boolean hasOsMinorVersion()
Output only. The OS Minor Version number.
optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasOsMinorVersionin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- Whether the osMinorVersion field is set.
-
getOsMinorVersion
public int getOsMinorVersion()
Output only. The OS Minor Version number.
optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsMinorVersionin interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The osMinorVersion.
-
setOsMinorVersion
public OperatingSystemVersionConstant.Builder setOsMinorVersion(int value)
Output only. The OS Minor Version number.
optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The osMinorVersion to set.- Returns:
- This builder for chaining.
-
clearOsMinorVersion
public OperatingSystemVersionConstant.Builder clearOsMinorVersion()
Output only. The OS Minor Version number.
optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getOperatorTypeValue
public int getOperatorTypeValue()
Output only. Determines whether this constant represents a single version or a range of versions.
.google.ads.googleads.v10.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOperatorTypeValuein interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The enum numeric value on the wire for operatorType.
-
setOperatorTypeValue
public OperatingSystemVersionConstant.Builder setOperatorTypeValue(int value)
Output only. Determines whether this constant represents a single version or a range of versions.
.google.ads.googleads.v10.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for operatorType to set.- Returns:
- This builder for chaining.
-
getOperatorType
public OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType getOperatorType()
Output only. Determines whether this constant represents a single version or a range of versions.
.google.ads.googleads.v10.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOperatorTypein interfaceOperatingSystemVersionConstantOrBuilder- Returns:
- The operatorType.
-
setOperatorType
public OperatingSystemVersionConstant.Builder setOperatorType(OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType value)
Output only. Determines whether this constant represents a single version or a range of versions.
.google.ads.googleads.v10.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The operatorType to set.- Returns:
- This builder for chaining.
-
clearOperatorType
public OperatingSystemVersionConstant.Builder clearOperatorType()
Output only. Determines whether this constant represents a single version or a range of versions.
.google.ads.googleads.v10.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final OperatingSystemVersionConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
mergeUnknownFields
public final OperatingSystemVersionConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
-
-