# Interface ProductChangeOrBuilder (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ProductChangeOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getNewValue()

    public abstract String getNewValue()

The new value of the changed resource or attribute.

`optional string new_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The newValue. |

### getNewValueBytes()

    public abstract ByteString getNewValueBytes()

The new value of the changed resource or attribute.

`optional string new_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for newValue. |

### getOldValue()

    public abstract String getOldValue()

The old value of the changed resource or attribute.

`optional string old_value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The oldValue. |

### getOldValueBytes()

    public abstract ByteString getOldValueBytes()

The old value of the changed resource or attribute.

`optional string old_value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for oldValue. |

### getRegionCode()

    public abstract String getRegionCode()

Countries that have the change (if applicable)

`optional string region_code = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The regionCode. |

### getRegionCodeBytes()

    public abstract ByteString getRegionCodeBytes()

Countries that have the change (if applicable)

`optional string region_code = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for regionCode. |

### getReportingContext()

    public abstract ReportingContext.ReportingContextEnum getReportingContext()

Reporting contexts that have the change (if applicable)

`
optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.ReportingContext.ReportingContextEnum` | The reportingContext. |

### getReportingContextValue()

    public abstract int getReportingContextValue()

Reporting contexts that have the change (if applicable)

`
optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for reportingContext. |

### hasNewValue()

    public abstract boolean hasNewValue()

The new value of the changed resource or attribute.

`optional string new_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the newValue field is set. |

### hasOldValue()

    public abstract boolean hasOldValue()

The old value of the changed resource or attribute.

`optional string old_value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the oldValue field is set. |

### hasRegionCode()

    public abstract boolean hasRegionCode()

Countries that have the change (if applicable)

`optional string region_code = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the regionCode field is set. |

### hasReportingContext()

    public abstract boolean hasReportingContext()

Reporting contexts that have the change (if applicable)

`
optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the reportingContext field is set. |