Class MethodConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Builder>
com.google.cloud.grpc.proto.MethodConfig.Builder
All Implemented Interfaces:
MethodConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MethodConfig

public static final class MethodConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Builder> implements MethodConfigOrBuilder
Protobuf type grpc.gcp.MethodConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    addName(String value)
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    addNameBytes(com.google.protobuf.ByteString value)
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
     
     
     
    The channel affinity configurations.
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    The channel affinity configurations.
    The channel affinity configurations.
    The channel affinity configurations.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getName(int index)
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    com.google.protobuf.ByteString
    getNameBytes(int index)
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    int
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    com.google.protobuf.ProtocolStringList
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.
    boolean
    The channel affinity configurations.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    The channel affinity configurations.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The channel affinity configurations.
    The channel affinity configurations.
    setName(int index, String value)
    A fully qualified name of a gRPC method, or a wildcard pattern ending with .*, such as foo.bar.A, foo.bar.*.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Builder>
    • clear

      public MethodConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Builder>
    • getDefaultInstanceForType

      public MethodConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MethodConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MethodConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MethodConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MethodConfig.Builder>
    • mergeFrom

      public MethodConfig.Builder mergeFrom(MethodConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Builder>
    • mergeFrom

      public MethodConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MethodConfig.Builder>
      Throws:
      IOException
    • getNameList

      public com.google.protobuf.ProtocolStringList getNameList()
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Specified by:
      getNameList in interface MethodConfigOrBuilder
      Returns:
      A list containing the name.
    • getNameCount

      public int getNameCount()
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Specified by:
      getNameCount in interface MethodConfigOrBuilder
      Returns:
      The count of name.
    • getName

      public String getName(int index)
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Specified by:
      getName in interface MethodConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The name at the given index.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes(int index)
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Specified by:
      getNameBytes in interface MethodConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the name at the given index.
    • setName

      public MethodConfig.Builder setName(int index, String value)
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Parameters:
      index - The index to set the value at.
      value - The name to set.
      Returns:
      This builder for chaining.
    • addName

      public MethodConfig.Builder addName(String value)
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Parameters:
      value - The name to add.
      Returns:
      This builder for chaining.
    • addAllName

      public MethodConfig.Builder addAllName(Iterable<String> values)
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Parameters:
      values - The name to add.
      Returns:
      This builder for chaining.
    • clearName

      public MethodConfig.Builder clearName()
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Returns:
      This builder for chaining.
    • addNameBytes

      public MethodConfig.Builder addNameBytes(com.google.protobuf.ByteString value)
       A fully qualified name of a gRPC method, or a wildcard pattern ending
       with .*, such as foo.bar.A, foo.bar.*. Method configs are evaluated
       sequentially, and the first one takes precedence.
       
      repeated string name = 1;
      Parameters:
      value - The bytes of the name to add.
      Returns:
      This builder for chaining.
    • hasAffinity

      public boolean hasAffinity()
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
      Specified by:
      hasAffinity in interface MethodConfigOrBuilder
      Returns:
      Whether the affinity field is set.
    • getAffinity

      public AffinityConfig getAffinity()
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
      Specified by:
      getAffinity in interface MethodConfigOrBuilder
      Returns:
      The affinity.
    • setAffinity

      public MethodConfig.Builder setAffinity(AffinityConfig value)
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
    • setAffinity

      public MethodConfig.Builder setAffinity(AffinityConfig.Builder builderForValue)
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
    • mergeAffinity

      public MethodConfig.Builder mergeAffinity(AffinityConfig value)
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
    • clearAffinity

      public MethodConfig.Builder clearAffinity()
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
    • getAffinityBuilder

      public AffinityConfig.Builder getAffinityBuilder()
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
    • getAffinityOrBuilder

      public AffinityConfigOrBuilder getAffinityOrBuilder()
       The channel affinity configurations.
       
      .grpc.gcp.AffinityConfig affinity = 1001;
      Specified by:
      getAffinityOrBuilder in interface MethodConfigOrBuilder