com.google.protobuf.FieldOrBuilder Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/type.proto
package com.google.protobuf;
public interface FieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.protobuf.Field)
com.google.protobuf.MessageOrBuilder {
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
*/
int getKindValue();
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
*/
com.google.protobuf.Field.Kind getKind();
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
*/
int getCardinalityValue();
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
*/
com.google.protobuf.Field.Cardinality getCardinality();
/**
*
* The field number.
*
*
* int32 number = 3;
*/
int getNumber();
/**
*
* The field name.
*
*
* string name = 4;
*/
java.lang.String getName();
/**
*
* The field name.
*
*
* string name = 4;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
*/
java.lang.String getTypeUrl();
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
*/
com.google.protobuf.ByteString
getTypeUrlBytes();
/**
*
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
*
* int32 oneof_index = 7;
*/
int getOneofIndex();
/**
*
* Whether to use alternative packed wire representation.
*
*
* bool packed = 8;
*/
boolean getPacked();
/**
*
* The protocol buffer options.
*
*
* repeated .google.protobuf.Option options = 9;
*/
java.util.List
getOptionsList();
/**
*
* The protocol buffer options.
*
*
* repeated .google.protobuf.Option options = 9;
*/
com.google.protobuf.Option getOptions(int index);
/**
*
* The protocol buffer options.
*
*
* repeated .google.protobuf.Option options = 9;
*/
int getOptionsCount();
/**
*
* The protocol buffer options.
*
*
* repeated .google.protobuf.Option options = 9;
*/
java.util.List extends com.google.protobuf.OptionOrBuilder>
getOptionsOrBuilderList();
/**
*
* The protocol buffer options.
*
*
* repeated .google.protobuf.Option options = 9;
*/
com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(
int index);
/**
*
* The field JSON name.
*
*
* string json_name = 10;
*/
java.lang.String getJsonName();
/**
*
* The field JSON name.
*
*
* string json_name = 10;
*/
com.google.protobuf.ByteString
getJsonNameBytes();
/**
*
* The string value of the default value of this field. Proto2 syntax only.
*
*
* string default_value = 11;
*/
java.lang.String getDefaultValue();
/**
*
* The string value of the default value of this field. Proto2 syntax only.
*
*
* string default_value = 11;
*/
com.google.protobuf.ByteString
getDefaultValueBytes();
}