Class RequestMirrorPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder>
com.google.cloud.compute.v1.RequestMirrorPolicy.Builder
All Implemented Interfaces:
RequestMirrorPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RequestMirrorPolicy

public static final class RequestMirrorPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder> implements RequestMirrorPolicyOrBuilder
 A policy that specifies how requests intended for the route's backends
 are shadowed to a separate mirrored backend service. The load balancer
 doesn't wait for responses from the shadow service. Before sending traffic
 to the shadow service, the host or authority header is suffixed with-shadow.
 
Protobuf type google.cloud.compute.v1.RequestMirrorPolicy
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The full or partial URL to the BackendService resource being mirrored to.
    The percentage of requests to be mirrored to `backend_service`.
    The full or partial URL to the BackendService resource being mirrored to.
    com.google.protobuf.ByteString
    The full or partial URL to the BackendService resource being mirrored to.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    double
    The percentage of requests to be mirrored to `backend_service`.
    boolean
    The full or partial URL to the BackendService resource being mirrored to.
    boolean
    The percentage of requests to be mirrored to `backend_service`.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The full or partial URL to the BackendService resource being mirrored to.
    setBackendServiceBytes(com.google.protobuf.ByteString value)
    The full or partial URL to the BackendService resource being mirrored to.
    setMirrorPercent(double value)
    The percentage of requests to be mirrored to `backend_service`.

    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<RequestMirrorPolicy.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<RequestMirrorPolicy.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<RequestMirrorPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

      public RequestMirrorPolicy.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<RequestMirrorPolicy.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<RequestMirrorPolicy.Builder>
    • mergeFrom

      public RequestMirrorPolicy.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<RequestMirrorPolicy.Builder>
      Throws:
      IOException
    • hasBackendService

      public boolean hasBackendService()
       The full or partial URL to the BackendService resource being
       mirrored to.
      
       The backend service configured for a mirroring
       policy must reference backends that are of the same type as the original
       backend service matched in the URL map.
      
       Serverless NEG backends are not currently supported as a mirrored
       backend service.
       
      optional string backend_service = 306946058;
      Specified by:
      hasBackendService in interface RequestMirrorPolicyOrBuilder
      Returns:
      Whether the backendService field is set.
    • getBackendService

      public String getBackendService()
       The full or partial URL to the BackendService resource being
       mirrored to.
      
       The backend service configured for a mirroring
       policy must reference backends that are of the same type as the original
       backend service matched in the URL map.
      
       Serverless NEG backends are not currently supported as a mirrored
       backend service.
       
      optional string backend_service = 306946058;
      Specified by:
      getBackendService in interface RequestMirrorPolicyOrBuilder
      Returns:
      The backendService.
    • getBackendServiceBytes

      public com.google.protobuf.ByteString getBackendServiceBytes()
       The full or partial URL to the BackendService resource being
       mirrored to.
      
       The backend service configured for a mirroring
       policy must reference backends that are of the same type as the original
       backend service matched in the URL map.
      
       Serverless NEG backends are not currently supported as a mirrored
       backend service.
       
      optional string backend_service = 306946058;
      Specified by:
      getBackendServiceBytes in interface RequestMirrorPolicyOrBuilder
      Returns:
      The bytes for backendService.
    • setBackendService

      public RequestMirrorPolicy.Builder setBackendService(String value)
       The full or partial URL to the BackendService resource being
       mirrored to.
      
       The backend service configured for a mirroring
       policy must reference backends that are of the same type as the original
       backend service matched in the URL map.
      
       Serverless NEG backends are not currently supported as a mirrored
       backend service.
       
      optional string backend_service = 306946058;
      Parameters:
      value - The backendService to set.
      Returns:
      This builder for chaining.
    • clearBackendService

      public RequestMirrorPolicy.Builder clearBackendService()
       The full or partial URL to the BackendService resource being
       mirrored to.
      
       The backend service configured for a mirroring
       policy must reference backends that are of the same type as the original
       backend service matched in the URL map.
      
       Serverless NEG backends are not currently supported as a mirrored
       backend service.
       
      optional string backend_service = 306946058;
      Returns:
      This builder for chaining.
    • setBackendServiceBytes

      public RequestMirrorPolicy.Builder setBackendServiceBytes(com.google.protobuf.ByteString value)
       The full or partial URL to the BackendService resource being
       mirrored to.
      
       The backend service configured for a mirroring
       policy must reference backends that are of the same type as the original
       backend service matched in the URL map.
      
       Serverless NEG backends are not currently supported as a mirrored
       backend service.
       
      optional string backend_service = 306946058;
      Parameters:
      value - The bytes for backendService to set.
      Returns:
      This builder for chaining.
    • hasMirrorPercent

      public boolean hasMirrorPercent()
       The percentage of requests to be mirrored to `backend_service`.
       
      optional double mirror_percent = 277432261;
      Specified by:
      hasMirrorPercent in interface RequestMirrorPolicyOrBuilder
      Returns:
      Whether the mirrorPercent field is set.
    • getMirrorPercent

      public double getMirrorPercent()
       The percentage of requests to be mirrored to `backend_service`.
       
      optional double mirror_percent = 277432261;
      Specified by:
      getMirrorPercent in interface RequestMirrorPolicyOrBuilder
      Returns:
      The mirrorPercent.
    • setMirrorPercent

      public RequestMirrorPolicy.Builder setMirrorPercent(double value)
       The percentage of requests to be mirrored to `backend_service`.
       
      optional double mirror_percent = 277432261;
      Parameters:
      value - The mirrorPercent to set.
      Returns:
      This builder for chaining.
    • clearMirrorPercent

      public RequestMirrorPolicy.Builder clearMirrorPercent()
       The percentage of requests to be mirrored to `backend_service`.
       
      optional double mirror_percent = 277432261;
      Returns:
      This builder for chaining.