# Interface ValueOrBuilder (3.97.0)

3.97.0 (latest) 3.95.0 3.92.0 3.91.0 3.89.0 3.87.0 3.86.0 3.85.0 3.84.0 3.82.0 3.80.0 3.79.0 3.78.0 3.77.0 3.76.0 3.74.0 3.72.0 3.71.0 3.68.0 3.67.0 3.66.0 3.64.0 3.63.0 3.62.0 3.61.0 3.60.0 3.59.0 3.58.0 3.57.0 3.56.0 3.55.0 3.53.0 3.52.0 3.51.0 3.50.0 3.49.0 3.48.0 3.47.0 3.46.0 3.45.0 3.44.0 3.43.0 3.41.0 3.40.0 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.6 3.6.7 3.5.0 3.4.0 3.3.2 3.2.1 3.1.4

    public interface ValueOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBooleanValue()

    public abstract boolean getBooleanValue()

boolean

`bool boolean_value = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The booleanValue. |

### getDateValue()

    public abstract Date getDateValue()

date

`.google.type.Date date_value = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.Date` | The dateValue. |

### getDateValueOrBuilder()

    public abstract DateOrBuilder getDateValueOrBuilder()

date

`.google.type.Date date_value = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.DateOrBuilder` |   |

### getDayOfWeekValue()

    public abstract DayOfWeek getDayOfWeekValue()

day of week

`.google.type.DayOfWeek day_of_week_value = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.DayOfWeek` | The dayOfWeekValue. |

### getDayOfWeekValueValue()

    public abstract int getDayOfWeekValueValue()

day of week

`.google.type.DayOfWeek day_of_week_value = 8;`

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

### getFloatValue()

    public abstract double getFloatValue()

float

`double float_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The floatValue. |

### getIntegerValue()

    public abstract long getIntegerValue()

integer

`int64 integer_value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The integerValue. |

### getStringValue()

    public abstract String getStringValue()

string

`string string_value = 3;`

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

### getStringValueBytes()

    public abstract ByteString getStringValueBytes()

string

`string string_value = 3;`

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

### getTimeValue()

    public abstract TimeOfDay getTimeValue()

time of day

`.google.type.TimeOfDay time_value = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeOfDay` | The timeValue. |

### getTimeValueOrBuilder()

    public abstract TimeOfDayOrBuilder getTimeValueOrBuilder()

time of day

`.google.type.TimeOfDay time_value = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeOfDayOrBuilder` |   |

### getTimestampValue()

    public abstract Timestamp getTimestampValue()

timestamp

`.google.protobuf.Timestamp timestamp_value = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The timestampValue. |

### getTimestampValueOrBuilder()

    public abstract TimestampOrBuilder getTimestampValueOrBuilder()

timestamp

`.google.protobuf.Timestamp timestamp_value = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getTypeCase()

    public abstract Value.TypeCase getTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/com.google.privacy.dlp.v2.Value.TypeCase` |   |

### hasBooleanValue()

    public abstract boolean hasBooleanValue()

boolean

`bool boolean_value = 4;`

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

### hasDateValue()

    public abstract boolean hasDateValue()

date

`.google.type.Date date_value = 7;`

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

### hasDayOfWeekValue()

    public abstract boolean hasDayOfWeekValue()

day of week

`.google.type.DayOfWeek day_of_week_value = 8;`

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

### hasFloatValue()

    public abstract boolean hasFloatValue()

float

`double float_value = 2;`

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

### hasIntegerValue()

    public abstract boolean hasIntegerValue()

integer

`int64 integer_value = 1;`

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

### hasStringValue()

    public abstract boolean hasStringValue()

string

`string string_value = 3;`

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

### hasTimeValue()

    public abstract boolean hasTimeValue()

time of day

`.google.type.TimeOfDay time_value = 6;`

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

### hasTimestampValue()

    public abstract boolean hasTimestampValue()

timestamp

`.google.protobuf.Timestamp timestamp_value = 5;`

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