Interface TrafficTargetOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TrafficTarget, TrafficTarget.Builder

    public interface TrafficTargetOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getPercent()
      Specifies percent of the traffic to this Revision.
      String getRevision()
      Revision to which to send this portion of traffic, if traffic allocation is by revision.
      com.google.protobuf.ByteString getRevisionBytes()
      Revision to which to send this portion of traffic, if traffic allocation is by revision.
      String getTag()
      Indicates a string to be part of the URI to exclusively reference this target.
      com.google.protobuf.ByteString getTagBytes()
      Indicates a string to be part of the URI to exclusively reference this target.
      TrafficTargetAllocationType getType()
      The allocation type for this traffic target.
      int getTypeValue()
      The allocation type for this traffic target.
      • 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

      • getTypeValue

        int getTypeValue()
         The allocation type for this traffic target.
         
        .google.cloud.run.v2.TrafficTargetAllocationType type = 1;
        Returns:
        The enum numeric value on the wire for type.
      • getType

        TrafficTargetAllocationType getType()
         The allocation type for this traffic target.
         
        .google.cloud.run.v2.TrafficTargetAllocationType type = 1;
        Returns:
        The type.
      • getRevision

        String getRevision()
         Revision to which to send this portion of traffic, if traffic allocation is
         by revision.
         
        string revision = 2 [(.google.api.resource_reference) = { ... }
        Returns:
        The revision.
      • getRevisionBytes

        com.google.protobuf.ByteString getRevisionBytes()
         Revision to which to send this portion of traffic, if traffic allocation is
         by revision.
         
        string revision = 2 [(.google.api.resource_reference) = { ... }
        Returns:
        The bytes for revision.
      • getPercent

        int getPercent()
         Specifies percent of the traffic to this Revision.
         This defaults to zero if unspecified.
         
        int32 percent = 3;
        Returns:
        The percent.
      • getTag

        String getTag()
         Indicates a string to be part of the URI to exclusively reference this
         target.
         
        string tag = 4;
        Returns:
        The tag.
      • getTagBytes

        com.google.protobuf.ByteString getTagBytes()
         Indicates a string to be part of the URI to exclusively reference this
         target.
         
        string tag = 4;
        Returns:
        The bytes for tag.