Interface ApiDef.EndpointOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ApiDef.Endpoint, ApiDef.Endpoint.Builder
    Enclosing class:
    ApiDef

    public static interface ApiDef.EndpointOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getDeprecated()
      Set if this endpoint is deprecated.
      int getDeprecationVersion()
      Major version when an endpoint will be deleted.
      java.lang.String getName()
      Name should be either like "CamelCaseName" or "Package.CamelCaseName".
      com.google.protobuf.ByteString getNameBytes()
      Name should be either like "CamelCaseName" or "Package.CamelCaseName".
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getName

        java.lang.String getName()
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Returns:
        The bytes for name.
      • getDeprecated

        boolean getDeprecated()
         Set if this endpoint is deprecated. If set to true, a message suggesting
         to use a non-deprecated endpoint instead will be printed. If all
         endpoints are deprecated, set deprecation_message in ApiDef instead.
         
        bool deprecated = 3;
        Returns:
        The deprecated.
      • getDeprecationVersion

        int getDeprecationVersion()
         Major version when an endpoint will be deleted. For e.g. set this
         value to 2 if endpoint should be removed in TensorFlow 2.0 and
         deprecated in versions before that.
         
        int32 deprecation_version = 4;
        Returns:
        The deprecationVersion.