Class ChangeEvent (0.62.0)

public final class ChangeEvent extends GeneratedMessage implements ChangeEventOrBuilder

Represents a single entity change.

Protobuf type google.ads.admanager.v1.ChangeEvent

Static Fields

CHANGE_TIME_FIELD_NUMBER

public static final int CHANGE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_ID_FIELD_NUMBER

public static final int ENTITY_ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OPERATION_TYPE_FIELD_NUMBER

public static final int OPERATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

USER_FIELD_NUMBER

public static final int USER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChangeEvent getDefaultInstance()
Returns
Type Description
ChangeEvent

getDescriptor()

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

newBuilder()

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

newBuilder(ChangeEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getChangeTime()

public Timestamp getChangeTime()

Output only. Time when the change happened.

.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The changeTime.

getChangeTimeOrBuilder()

public TimestampOrBuilder getChangeTimeOrBuilder()

Output only. Time when the change happened.

.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ChangeEvent getDefaultInstanceForType()
Returns
Type Description
ChangeEvent

getEntityId()

public long getEntityId()

Output only. The id of the resource that was changed. Typically, this is a part of the resource name for that entity. It is represented here as a long for legacy reasons.

optional int64 entity_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The entityId.

getName()

public String getName()

Identifier. The resource name of the ChangeEvent. Format: networks/{network_code}/changeEvents/{change_event}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the ChangeEvent. Format: networks/{network_code}/changeEvents/{change_event}

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

Returns
Type Description
ByteString

The bytes for name.

getOperationType()

public OperationTypeEnum.OperationType getOperationType()

Output only. The type of operation associated with the ChangeEvent.

optional .google.ads.admanager.v1.OperationTypeEnum.OperationType operation_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OperationTypeEnum.OperationType

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

Output only. The type of operation associated with the ChangeEvent.

optional .google.ads.admanager.v1.OperationTypeEnum.OperationType operation_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for operationType.

getParserForType()

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

getResourceType()

public ChangeEventResourceTypeEnum.ChangeEventResourceType getResourceType()

Output only. The type of the resource that was changed.

optional .google.ads.admanager.v1.ChangeEventResourceTypeEnum.ChangeEventResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ChangeEventResourceTypeEnum.ChangeEventResourceType

The resourceType.

getResourceTypeValue()

public int getResourceTypeValue()

Output only. The type of the resource that was changed.

optional .google.ads.admanager.v1.ChangeEventResourceTypeEnum.ChangeEventResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUser()

public String getUser()

Output only. The user that made the change. Format: networks/{network_code}/users/{user}

optional string user = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The user.

getUserBytes()

public ByteString getUserBytes()

Output only. The user that made the change. Format: networks/{network_code}/users/{user}

optional string user = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for user.

hasChangeTime()

public boolean hasChangeTime()

Output only. Time when the change happened.

.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the changeTime field is set.

hasEntityId()

public boolean hasEntityId()

Output only. The id of the resource that was changed. Typically, this is a part of the resource name for that entity. It is represented here as a long for legacy reasons.

optional int64 entity_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the entityId field is set.

hasOperationType()

public boolean hasOperationType()

Output only. The type of operation associated with the ChangeEvent.

optional .google.ads.admanager.v1.OperationTypeEnum.OperationType operation_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the operationType field is set.

hasResourceType()

public boolean hasResourceType()

Output only. The type of the resource that was changed.

optional .google.ads.admanager.v1.ChangeEventResourceTypeEnum.ChangeEventResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the resourceType field is set.

hasUser()

public boolean hasUser()

Output only. The user that made the change. Format: networks/{network_code}/users/{user}

optional string user = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the user 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 ChangeEvent.Builder newBuilderForType()
Returns
Type Description
ChangeEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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