# Interface DescriptorProtos.OneofDescriptorProtoOrBuilder (3.19.4)

    public static interface DescriptorProtos.OneofDescriptorProtoOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getName()

    public abstract String getName()

`optional string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

`optional string name = 1;`

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

### getOptions()

    public abstract DescriptorProtos.OneofOptions getOptions()

`optional .google.protobuf.OneofOptions options = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DescriptorProtos.OneofOptions` | The options. |

### getOptionsOrBuilder()

    public abstract DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder()

`optional .google.protobuf.OneofOptions options = 2;`

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

### hasName()

    public abstract boolean hasName()

`optional string name = 1;`

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

### hasOptions()

    public abstract boolean hasOptions()

`optional .google.protobuf.OneofOptions options = 2;`

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