# Interface DescriptorProtos.GeneratedCodeInfoOrBuilder (3.19.4)

    public static interface DescriptorProtos.GeneratedCodeInfoOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAnnotation(int index)

    public abstract DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index)

An Annotation connects some span of text in generated code to an element
of its generating .proto file.

`repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getAnnotationCount()

    public abstract int getAnnotationCount()

An Annotation connects some span of text in generated code to an element
of its generating .proto file.

`repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;`

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

### getAnnotationList()

    public abstract List<DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList()

An Annotation connects some span of text in generated code to an element
of its generating .proto file.

`repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation>` |   |

### getAnnotationOrBuilder(int index)

    public abstract DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder(int index)

An Annotation connects some span of text in generated code to an element
of its generating .proto file.

`repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getAnnotationOrBuilderList()

    public abstract List<? extends DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> getAnnotationOrBuilderList()

An Annotation connects some span of text in generated code to an element
of its generating .proto file.

`repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder>` |   |