接口 VirtualServiceOuterClass.Headers.HeaderOperationsOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型 方法 说明
      boolean containsAdd​(java.lang.String key)
      Append the given values to the headers specified by keys (will create a comma-separated list of values)
      boolean containsSet​(java.lang.String key)
      Overwrite the headers specified by key with the given values
      java.util.Map<java.lang.String,​java.lang.String> getAdd()
      已过时。
      int getAddCount()
      Append the given values to the headers specified by keys (will create a comma-separated list of values)
      java.util.Map<java.lang.String,​java.lang.String> getAddMap()
      Append the given values to the headers specified by keys (will create a comma-separated list of values)
      java.lang.String getAddOrDefault​(java.lang.String key, java.lang.String defaultValue)
      Append the given values to the headers specified by keys (will create a comma-separated list of values)
      java.lang.String getAddOrThrow​(java.lang.String key)
      Append the given values to the headers specified by keys (will create a comma-separated list of values)
      java.lang.String getRemove​(int index)
      Remove a the specified headers
      com.google.protobuf.ByteString getRemoveBytes​(int index)
      Remove a the specified headers
      int getRemoveCount()
      Remove a the specified headers
      java.util.List<java.lang.String> getRemoveList()
      Remove a the specified headers
      java.util.Map<java.lang.String,​java.lang.String> getSet()
      已过时。
      int getSetCount()
      Overwrite the headers specified by key with the given values
      java.util.Map<java.lang.String,​java.lang.String> getSetMap()
      Overwrite the headers specified by key with the given values
      java.lang.String getSetOrDefault​(java.lang.String key, java.lang.String defaultValue)
      Overwrite the headers specified by key with the given values
      java.lang.String getSetOrThrow​(java.lang.String key)
      Overwrite the headers specified by key with the given values
      • 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 从接口继承的方法 com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 方法详细资料

      • getSetCount

        int getSetCount()
         Overwrite the headers specified by key with the given values
         
        map<string, string> set = 1;
      • containsSet

        boolean containsSet​(java.lang.String key)
         Overwrite the headers specified by key with the given values
         
        map<string, string> set = 1;
      • getSet

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getSet()
        已过时。
        Use getSetMap() instead.
      • getSetMap

        java.util.Map<java.lang.String,​java.lang.String> getSetMap()
         Overwrite the headers specified by key with the given values
         
        map<string, string> set = 1;
      • getSetOrDefault

        java.lang.String getSetOrDefault​(java.lang.String key,
                                         java.lang.String defaultValue)
         Overwrite the headers specified by key with the given values
         
        map<string, string> set = 1;
      • getSetOrThrow

        java.lang.String getSetOrThrow​(java.lang.String key)
         Overwrite the headers specified by key with the given values
         
        map<string, string> set = 1;
      • getAddCount

        int getAddCount()
         Append the given values to the headers specified by keys
         (will create a comma-separated list of values)
         
        map<string, string> add = 2;
      • containsAdd

        boolean containsAdd​(java.lang.String key)
         Append the given values to the headers specified by keys
         (will create a comma-separated list of values)
         
        map<string, string> add = 2;
      • getAdd

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getAdd()
        已过时。
        Use getAddMap() instead.
      • getAddMap

        java.util.Map<java.lang.String,​java.lang.String> getAddMap()
         Append the given values to the headers specified by keys
         (will create a comma-separated list of values)
         
        map<string, string> add = 2;
      • getAddOrDefault

        java.lang.String getAddOrDefault​(java.lang.String key,
                                         java.lang.String defaultValue)
         Append the given values to the headers specified by keys
         (will create a comma-separated list of values)
         
        map<string, string> add = 2;
      • getAddOrThrow

        java.lang.String getAddOrThrow​(java.lang.String key)
         Append the given values to the headers specified by keys
         (will create a comma-separated list of values)
         
        map<string, string> add = 2;
      • getRemoveList

        java.util.List<java.lang.String> getRemoveList()
         Remove a the specified headers
         
        repeated string remove = 3;
        返回:
        A list containing the remove.
      • getRemoveCount

        int getRemoveCount()
         Remove a the specified headers
         
        repeated string remove = 3;
        返回:
        The count of remove.
      • getRemove

        java.lang.String getRemove​(int index)
         Remove a the specified headers
         
        repeated string remove = 3;
        参数:
        index - The index of the element to return.
        返回:
        The remove at the given index.
      • getRemoveBytes

        com.google.protobuf.ByteString getRemoveBytes​(int index)
         Remove a the specified headers
         
        repeated string remove = 3;
        参数:
        index - The index of the value to return.
        返回:
        The bytes of the remove at the given index.