Class TrafficForecastSegment (0.62.0)

public final class TrafficForecastSegment extends GeneratedMessage implements TrafficForecastSegmentOrBuilder

An entity that defines a segment of traffic that will be adjusted or explored.

Protobuf type google.ads.admanager.v1.TrafficForecastSegment

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

FORECAST_ADJUSTMENT_COUNT_FIELD_NUMBER

public static final int FORECAST_ADJUSTMENT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_AD_UNITS_FIELD_NUMBER

public static final int TARGETED_AD_UNITS_FIELD_NUMBER
Field Value
Type Description
int

TARGETING_FIELD_NUMBER

public static final int TARGETING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TrafficForecastSegment getDefaultInstance()
Returns
Type Description
TrafficForecastSegment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TrafficForecastSegment.Builder newBuilder()
Returns
Type Description
TrafficForecastSegment.Builder

newBuilder(TrafficForecastSegment prototype)

public static TrafficForecastSegment.Builder newBuilder(TrafficForecastSegment prototype)
Parameter
Name Description
prototype TrafficForecastSegment
Returns
Type Description
TrafficForecastSegment.Builder

parseDelimitedFrom(InputStream input)

public static TrafficForecastSegment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrafficForecastSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TrafficForecastSegment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TrafficForecastSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TrafficForecastSegment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TrafficForecastSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TrafficForecastSegment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TrafficForecastSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TrafficForecastSegment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrafficForecastSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TrafficForecastSegment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TrafficForecastSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrafficForecastSegment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TrafficForecastSegment> parser()
Returns
Type Description
Parser<TrafficForecastSegment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The date and time that the TrafficForecastSegment was created.

optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The date and time that the TrafficForecastSegment was created.

optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public TrafficForecastSegment getDefaultInstanceForType()
Returns
Type Description
TrafficForecastSegment

getDisplayName()

public String getDisplayName()

Required. Name of the TrafficForecastSegment. This field must be unique among all segments for this network.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Name of the TrafficForecastSegment. This field must be unique among all segments for this network.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getForecastAdjustmentCount()

public int getForecastAdjustmentCount()

Output only. The number of active forecast adjustments associated with the TrafficForecastSegment.

optional int32 forecast_adjustment_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The forecastAdjustmentCount.

getName()

public String getName()

Identifier. The resource name of the TrafficForecastSegment. Format: networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the TrafficForecastSegment. Format: networks/{network_code}/trafficForecastSegments/{trafficForecastSegmentId}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<TrafficForecastSegment> getParserForType()
Returns
Type Description
Parser<TrafficForecastSegment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetedAdUnits(int index)

public String getTargetedAdUnits(int index)

Optional. The ad units that are targeted by the TrafficForecastSegment.

repeated string targeted_ad_units = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetedAdUnits at the given index.

getTargetedAdUnitsBytes(int index)

public ByteString getTargetedAdUnitsBytes(int index)

Optional. The ad units that are targeted by the TrafficForecastSegment.

repeated string targeted_ad_units = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetedAdUnits at the given index.

getTargetedAdUnitsCount()

public int getTargetedAdUnitsCount()

Optional. The ad units that are targeted by the TrafficForecastSegment.

repeated string targeted_ad_units = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedAdUnits.

getTargetedAdUnitsList()

public ProtocolStringList getTargetedAdUnitsList()

Optional. The ad units that are targeted by the TrafficForecastSegment.

repeated string targeted_ad_units = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedAdUnits.

getTargeting()

public Targeting getTargeting()

Required. Immutable. The targeting that defines a segment of traffic.

optional .google.ads.admanager.v1.Targeting targeting = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Targeting

The targeting.

getTargetingOrBuilder()

public TargetingOrBuilder getTargetingOrBuilder()

Required. Immutable. The targeting that defines a segment of traffic.

optional .google.ads.admanager.v1.Targeting targeting = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
TargetingOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The date and time that the TrafficForecastSegment was created.

optional .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDisplayName()

public boolean hasDisplayName()

Required. Name of the TrafficForecastSegment. This field must be unique among all segments for this network.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the displayName field is set.

hasForecastAdjustmentCount()

public boolean hasForecastAdjustmentCount()

Output only. The number of active forecast adjustments associated with the TrafficForecastSegment.

optional int32 forecast_adjustment_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the forecastAdjustmentCount field is set.

hasTargeting()

public boolean hasTargeting()

Required. Immutable. The targeting that defines a segment of traffic.

optional .google.ads.admanager.v1.Targeting targeting = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the targeting field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TrafficForecastSegment.Builder newBuilderForType()
Returns
Type Description
TrafficForecastSegment.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected TrafficForecastSegment.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TrafficForecastSegment.Builder
Overrides

toBuilder()

public TrafficForecastSegment.Builder toBuilder()
Returns
Type Description
TrafficForecastSegment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException