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 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;
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null