public static final class ChangeEvent.Builder extends GeneratedMessage.Builder<ChangeEvent.Builder> implements ChangeEventOrBuilderRepresents a single entity change.
Protobuf type google.ads.admanager.v1.ChangeEvent
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ChangeEvent.BuilderImplements
ChangeEventOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ChangeEvent build()| Returns | |
|---|---|
| Type | Description |
ChangeEvent |
|
buildPartial()
public ChangeEvent buildPartial()| Returns | |
|---|---|
| Type | Description |
ChangeEvent |
|
clear()
public ChangeEvent.Builder clear()| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
clearChangeTime()
public ChangeEvent.Builder clearChangeTime()Output only. Time when the change happened.
.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
clearEntityId()
public ChangeEvent.Builder clearEntityId()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 |
ChangeEvent.Builder |
This builder for chaining. |
clearName()
public ChangeEvent.Builder clearName() 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 |
ChangeEvent.Builder |
This builder for chaining. |
clearOperationType()
public ChangeEvent.Builder clearOperationType() 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 |
ChangeEvent.Builder |
This builder for chaining. |
clearResourceType()
public ChangeEvent.Builder clearResourceType()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 |
ChangeEvent.Builder |
This builder for chaining. |
clearUser()
public ChangeEvent.Builder clearUser() 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 |
ChangeEvent.Builder |
This builder for chaining. |
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. |
getChangeTimeBuilder()
public Timestamp.Builder getChangeTimeBuilder()Output only. Time when the change happened.
.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeChangeTime(Timestamp value)
public ChangeEvent.Builder mergeChangeTime(Timestamp value)Output only. Time when the change happened.
.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
mergeFrom(ChangeEvent other)
public ChangeEvent.Builder mergeFrom(ChangeEvent other)| Parameter | |
|---|---|
| Name | Description |
other |
ChangeEvent |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ChangeEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ChangeEvent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
setChangeTime(Timestamp value)
public ChangeEvent.Builder setChangeTime(Timestamp value)Output only. Time when the change happened.
.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
setChangeTime(Timestamp.Builder builderForValue)
public ChangeEvent.Builder setChangeTime(Timestamp.Builder builderForValue)Output only. Time when the change happened.
.google.protobuf.Timestamp change_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
|
setEntityId(long value)
public ChangeEvent.Builder setEntityId(long value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe entityId to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setName(String value)
public ChangeEvent.Builder setName(String value) Identifier. The resource name of the ChangeEvent.
Format: networks/{network_code}/changeEvents/{change_event}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ChangeEvent.Builder setNameBytes(ByteString value) Identifier. The resource name of the ChangeEvent.
Format: networks/{network_code}/changeEvents/{change_event}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setOperationType(OperationTypeEnum.OperationType value)
public ChangeEvent.Builder setOperationType(OperationTypeEnum.OperationType value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
OperationTypeEnum.OperationTypeThe operationType to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setOperationTypeValue(int value)
public ChangeEvent.Builder setOperationTypeValue(int value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for operationType to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setResourceType(ChangeEventResourceTypeEnum.ChangeEventResourceType value)
public ChangeEvent.Builder setResourceType(ChangeEventResourceTypeEnum.ChangeEventResourceType value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ChangeEventResourceTypeEnum.ChangeEventResourceTypeThe resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setResourceTypeValue(int value)
public ChangeEvent.Builder setResourceTypeValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setUser(String value)
public ChangeEvent.Builder setUser(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe user to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |
setUserBytes(ByteString value)
public ChangeEvent.Builder setUserBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for user to set. |
| Returns | |
|---|---|
| Type | Description |
ChangeEvent.Builder |
This builder for chaining. |