Enum ConfigFile.FileType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ConfigFile.FileType>
- Enclosing class:
- ConfigFile
public static enum ConfigFile.FileType
extends Enum<ConfigFile.FileType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
google.api.servicemanagement.v1.ConfigFile.FileType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFileDescriptorSet, generated by protoc.Unknown file type.OpenAPI specification, serialized in JSON.OpenAPI specification, serialized in YAML.Uncompiled Proto file.YAML-specification of service. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFileDescriptorSet, generated by protoc.static final intUnknown file type.static final intOpenAPI specification, serialized in JSON.static final intOpenAPI specification, serialized in YAML.static final intUncompiled Proto file.static final intYAML-specification of service. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigFile.FileTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ConfigFile.FileType>static ConfigFile.FileTypevalueOf(int value) Deprecated.static ConfigFile.FileTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ConfigFile.FileTypeReturns the enum constant of this type with the specified name.static ConfigFile.FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FILE_TYPE_UNSPECIFIED
Unknown file type.
FILE_TYPE_UNSPECIFIED = 0; -
SERVICE_CONFIG_YAML
YAML-specification of service.
SERVICE_CONFIG_YAML = 1; -
OPEN_API_JSON
OpenAPI specification, serialized in JSON.
OPEN_API_JSON = 2; -
OPEN_API_YAML
OpenAPI specification, serialized in YAML.
OPEN_API_YAML = 3; -
FILE_DESCRIPTOR_SET_PROTO
FileDescriptorSet, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $protoc --include_imports --include_source_info test.proto -o out.pb
FILE_DESCRIPTOR_SET_PROTO = 4; -
PROTO_FILE
Uncompiled Proto file. Used for storage and display purposes only, currently server-side compilation is not supported. Should match the inputs to 'protoc' command used to generated FILE_DESCRIPTOR_SET_PROTO. A file of this type can only be included if at least one file of type FILE_DESCRIPTOR_SET_PROTO is included.
PROTO_FILE = 6; -
UNRECOGNIZED
-
-
Field Details
-
FILE_TYPE_UNSPECIFIED_VALUE
public static final int FILE_TYPE_UNSPECIFIED_VALUEUnknown file type.
FILE_TYPE_UNSPECIFIED = 0;- See Also:
-
SERVICE_CONFIG_YAML_VALUE
public static final int SERVICE_CONFIG_YAML_VALUEYAML-specification of service.
SERVICE_CONFIG_YAML = 1;- See Also:
-
OPEN_API_JSON_VALUE
public static final int OPEN_API_JSON_VALUEOpenAPI specification, serialized in JSON.
OPEN_API_JSON = 2;- See Also:
-
OPEN_API_YAML_VALUE
public static final int OPEN_API_YAML_VALUEOpenAPI specification, serialized in YAML.
OPEN_API_YAML = 3;- See Also:
-
FILE_DESCRIPTOR_SET_PROTO_VALUE
public static final int FILE_DESCRIPTOR_SET_PROTO_VALUEFileDescriptorSet, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $protoc --include_imports --include_source_info test.proto -o out.pb
FILE_DESCRIPTOR_SET_PROTO = 4;- See Also:
-
PROTO_FILE_VALUE
public static final int PROTO_FILE_VALUEUncompiled Proto file. Used for storage and display purposes only, currently server-side compilation is not supported. Should match the inputs to 'protoc' command used to generated FILE_DESCRIPTOR_SET_PROTO. A file of this type can only be included if at least one file of type FILE_DESCRIPTOR_SET_PROTO is included.
PROTO_FILE = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-