Class Compute.HttpMatchRule.HttpMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.HttpMatchRule.HttpMatch.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.HttpMatchRule.HttpMatch.Builder>
namespace.cloud.compute.v1beta.Compute.HttpMatchRule.HttpMatch.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.HttpMatchRule.HttpMatchOrBuilder
Enclosing class:
Compute.HttpMatchRule.HttpMatch

public static final class Compute.HttpMatchRule.HttpMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.HttpMatchRule.HttpMatch.Builder> implements Compute.HttpMatchRule.HttpMatchOrBuilder
Protobuf type namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch
  • 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<Compute.HttpMatchRule.HttpMatch.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<Compute.HttpMatchRule.HttpMatch.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<Compute.HttpMatchRule.HttpMatch.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Compute.HttpMatchRule.HttpMatch.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<Compute.HttpMatchRule.HttpMatch.Builder>
    • mergeFrom

    • isInitialized

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

      public Compute.HttpMatchRule.HttpMatch.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<Compute.HttpMatchRule.HttpMatch.Builder>
      Throws:
      IOException
    • getMethodList

      public com.google.protobuf.ProtocolStringList getMethodList()
       If empty, matches any method.
       
      repeated string method = 1;
      Specified by:
      getMethodList in interface Compute.HttpMatchRule.HttpMatchOrBuilder
      Returns:
      A list containing the method.
    • getMethodCount

      public int getMethodCount()
       If empty, matches any method.
       
      repeated string method = 1;
      Specified by:
      getMethodCount in interface Compute.HttpMatchRule.HttpMatchOrBuilder
      Returns:
      The count of method.
    • getMethod

      public String getMethod(int index)
       If empty, matches any method.
       
      repeated string method = 1;
      Specified by:
      getMethod in interface Compute.HttpMatchRule.HttpMatchOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The method at the given index.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes(int index)
       If empty, matches any method.
       
      repeated string method = 1;
      Specified by:
      getMethodBytes in interface Compute.HttpMatchRule.HttpMatchOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the method at the given index.
    • setMethod

      public Compute.HttpMatchRule.HttpMatch.Builder setMethod(int index, String value)
       If empty, matches any method.
       
      repeated string method = 1;
      Parameters:
      index - The index to set the value at.
      value - The method to set.
      Returns:
      This builder for chaining.
    • addMethod

       If empty, matches any method.
       
      repeated string method = 1;
      Parameters:
      value - The method to add.
      Returns:
      This builder for chaining.
    • addAllMethod

       If empty, matches any method.
       
      repeated string method = 1;
      Parameters:
      values - The method to add.
      Returns:
      This builder for chaining.
    • clearMethod

       If empty, matches any method.
       
      repeated string method = 1;
      Returns:
      This builder for chaining.
    • addMethodBytes

      public Compute.HttpMatchRule.HttpMatch.Builder addMethodBytes(com.google.protobuf.ByteString value)
       If empty, matches any method.
       
      repeated string method = 1;
      Parameters:
      value - The bytes of the method to add.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
       If empty, matches any path.
       
      string path = 2;
      Specified by:
      getPath in interface Compute.HttpMatchRule.HttpMatchOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       If empty, matches any path.
       
      string path = 2;
      Specified by:
      getPathBytes in interface Compute.HttpMatchRule.HttpMatchOrBuilder
      Returns:
      The bytes for path.
    • setPath

       If empty, matches any path.
       
      string path = 2;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

       If empty, matches any path.
       
      string path = 2;
      Returns:
      This builder for chaining.
    • setPathBytes

      public Compute.HttpMatchRule.HttpMatch.Builder setPathBytes(com.google.protobuf.ByteString value)
       If empty, matches any path.
       
      string path = 2;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.