Class AuthzPolicy.AuthzRule.HeaderMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.HeaderMatch.Builder>
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder
All Implemented Interfaces:
AuthzPolicy.AuthzRule.HeaderMatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AuthzPolicy.AuthzRule.HeaderMatch

public static final class AuthzPolicy.AuthzRule.HeaderMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.HeaderMatch.Builder> implements AuthzPolicy.AuthzRule.HeaderMatchOrBuilder
 Determines how a HTTP header should be matched.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch
  • 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<AuthzPolicy.AuthzRule.HeaderMatch.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<AuthzPolicy.AuthzRule.HeaderMatch.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<AuthzPolicy.AuthzRule.HeaderMatch.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.HeaderMatch 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 AuthzPolicy.AuthzRule.HeaderMatch buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthzPolicy.AuthzRule.HeaderMatch.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<AuthzPolicy.AuthzRule.HeaderMatch.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<AuthzPolicy.AuthzRule.HeaderMatch.Builder>
    • mergeFrom

      public AuthzPolicy.AuthzRule.HeaderMatch.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<AuthzPolicy.AuthzRule.HeaderMatch.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Optional. Specifies the name of the header in the request.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface AuthzPolicy.AuthzRule.HeaderMatchOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Optional. Specifies the name of the header in the request.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameBytes in interface AuthzPolicy.AuthzRule.HeaderMatchOrBuilder
      Returns:
      The bytes for name.
    • setName

       Optional. Specifies the name of the header in the request.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Optional. Specifies the name of the header in the request.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AuthzPolicy.AuthzRule.HeaderMatch.Builder setNameBytes(com.google.protobuf.ByteString value)
       Optional. Specifies the name of the header in the request.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasValue in interface AuthzPolicy.AuthzRule.HeaderMatchOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValue in interface AuthzPolicy.AuthzRule.HeaderMatchOrBuilder
      Returns:
      The value.
    • setValue

       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setValue

       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeValue

       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearValue

       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getValueBuilder

       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getValueOrBuilder

      public AuthzPolicy.AuthzRule.StringMatchOrBuilder getValueOrBuilder()
       Optional. Specifies how the header match will be performed.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValueOrBuilder in interface AuthzPolicy.AuthzRule.HeaderMatchOrBuilder