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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static TrafficForecastSegment.Builder newBuilder()
newBuilder(TrafficForecastSegment prototype)
public static TrafficForecastSegment.Builder newBuilder(TrafficForecastSegment prototype)
public static TrafficForecastSegment parseDelimitedFrom(InputStream input)
public static TrafficForecastSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static TrafficForecastSegment parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TrafficForecastSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static TrafficForecastSegment parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TrafficForecastSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TrafficForecastSegment parseFrom(CodedInputStream input)
public static TrafficForecastSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TrafficForecastSegment parseFrom(InputStream input)
public static TrafficForecastSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static TrafficForecastSegment parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TrafficForecastSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<TrafficForecastSegment> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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];
getDefaultInstanceForType()
public TrafficForecastSegment getDefaultInstanceForType()
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()
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()
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) = { ... }
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public TrafficForecastSegment.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected TrafficForecastSegment.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public TrafficForecastSegment.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides