Interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getData()
      An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
      com.google.protobuf.ByteString getDataBytes()
      An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
      String getName()
      Identifies the custom policy.
      com.google.protobuf.ByteString getNameBytes()
      Identifies the custom policy.
      boolean hasData()
      An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
      boolean hasName()
      Identifies the custom policy.
      • 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

      • hasData

        boolean hasData()
         An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
         
        optional string data = 3076010;
        Returns:
        Whether the data field is set.
      • getData

        String getData()
         An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
         
        optional string data = 3076010;
        Returns:
        The data.
      • getDataBytes

        com.google.protobuf.ByteString getDataBytes()
         An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
         
        optional string data = 3076010;
        Returns:
        The bytes for data.
      • hasName

        boolean hasName()
         Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
         
        optional string name = 3373707;
        Returns:
        Whether the name field is set.
      • getName

        String getName()
         Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
         
        optional string name = 3373707;
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
         
        optional string name = 3373707;
        Returns:
        The bytes for name.