Enum ConfigFile.FileType
- java.lang.Object
-
- java.lang.Enum<ConfigFile.FileType>
-
- com.google.api.servicemanagement.v1.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 enumgoogle.api.servicemanagement.v1.ConfigFile.FileType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILE_DESCRIPTOR_SET_PROTOFileDescriptorSet, generated by protoc.FILE_TYPE_UNSPECIFIEDUnknown file type.OPEN_API_JSONOpenAPI specification, serialized in JSON.OPEN_API_YAMLOpenAPI specification, serialized in YAML.PROTO_FILEUncompiled Proto file.SERVICE_CONFIG_YAMLYAML-specification of service.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFILE_DESCRIPTOR_SET_PROTO_VALUEFileDescriptorSet, generated by protoc.static intFILE_TYPE_UNSPECIFIED_VALUEUnknown file type.static intOPEN_API_JSON_VALUEOpenAPI specification, serialized in JSON.static intOPEN_API_YAML_VALUEOpenAPI specification, serialized in YAML.static intPROTO_FILE_VALUEUncompiled Proto file.static intSERVICE_CONFIG_YAML_VALUEYAML-specification of service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ConfigFile.FileTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ConfigFile.FileType>internalGetValueMap()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.FileTypevalueOf(String name)Returns 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 Detail
-
FILE_TYPE_UNSPECIFIED
public static final ConfigFile.FileType FILE_TYPE_UNSPECIFIED
Unknown file type.
FILE_TYPE_UNSPECIFIED = 0;
-
SERVICE_CONFIG_YAML
public static final ConfigFile.FileType SERVICE_CONFIG_YAML
YAML-specification of service.
SERVICE_CONFIG_YAML = 1;
-
OPEN_API_JSON
public static final ConfigFile.FileType OPEN_API_JSON
OpenAPI specification, serialized in JSON.
OPEN_API_JSON = 2;
-
OPEN_API_YAML
public static final ConfigFile.FileType OPEN_API_YAML
OpenAPI specification, serialized in YAML.
OPEN_API_YAML = 3;
-
FILE_DESCRIPTOR_SET_PROTO
public static final ConfigFile.FileType 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
public static final ConfigFile.FileType 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
public static final ConfigFile.FileType UNRECOGNIZED
-
-
Field Detail
-
FILE_TYPE_UNSPECIFIED_VALUE
public static final int FILE_TYPE_UNSPECIFIED_VALUE
Unknown file type.
FILE_TYPE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
SERVICE_CONFIG_YAML_VALUE
public static final int SERVICE_CONFIG_YAML_VALUE
YAML-specification of service.
SERVICE_CONFIG_YAML = 1;- See Also:
- Constant Field Values
-
OPEN_API_JSON_VALUE
public static final int OPEN_API_JSON_VALUE
OpenAPI specification, serialized in JSON.
OPEN_API_JSON = 2;- See Also:
- Constant Field Values
-
OPEN_API_YAML_VALUE
public static final int OPEN_API_YAML_VALUE
OpenAPI specification, serialized in YAML.
OPEN_API_YAML = 3;- See Also:
- Constant Field Values
-
FILE_DESCRIPTOR_SET_PROTO_VALUE
public static final int FILE_DESCRIPTOR_SET_PROTO_VALUE
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;- See Also:
- Constant Field Values
-
PROTO_FILE_VALUE
public static final int PROTO_FILE_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ConfigFile.FileType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigFile.FileType c : ConfigFile.FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigFile.FileType valueOf(String name)
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 public static ConfigFile.FileType valueOf(int value)
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
public static ConfigFile.FileType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ConfigFile.FileType> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ConfigFile.FileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-