Class DropInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DropInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.DropInfo.Builder
All Implemented Interfaces:
DropInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DropInfo

public static final class DropInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<DropInfo.Builder> implements DropInfoOrBuilder
 Details of the final state "drop" and associated resource.
 
Protobuf type google.cloud.networkmanagement.v1beta1.DropInfo
  • 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<DropInfo.Builder>
    • clear

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

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

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

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

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

      public DropInfo.Builder mergeFrom(DropInfo other)
    • isInitialized

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

      public DropInfo.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<DropInfo.Builder>
      Throws:
      IOException
    • getCauseValue

      public int getCauseValue()
       Cause that the packet is dropped.
       
      .google.cloud.networkmanagement.v1beta1.DropInfo.Cause cause = 1;
      Specified by:
      getCauseValue in interface DropInfoOrBuilder
      Returns:
      The enum numeric value on the wire for cause.
    • setCauseValue

      public DropInfo.Builder setCauseValue(int value)
       Cause that the packet is dropped.
       
      .google.cloud.networkmanagement.v1beta1.DropInfo.Cause cause = 1;
      Parameters:
      value - The enum numeric value on the wire for cause to set.
      Returns:
      This builder for chaining.
    • getCause

      public DropInfo.Cause getCause()
       Cause that the packet is dropped.
       
      .google.cloud.networkmanagement.v1beta1.DropInfo.Cause cause = 1;
      Specified by:
      getCause in interface DropInfoOrBuilder
      Returns:
      The cause.
    • setCause

      public DropInfo.Builder setCause(DropInfo.Cause value)
       Cause that the packet is dropped.
       
      .google.cloud.networkmanagement.v1beta1.DropInfo.Cause cause = 1;
      Parameters:
      value - The cause to set.
      Returns:
      This builder for chaining.
    • clearCause

      public DropInfo.Builder clearCause()
       Cause that the packet is dropped.
       
      .google.cloud.networkmanagement.v1beta1.DropInfo.Cause cause = 1;
      Returns:
      This builder for chaining.
    • getResourceUri

      public String getResourceUri()
       URI of the resource that caused the drop.
       
      string resource_uri = 2;
      Specified by:
      getResourceUri in interface DropInfoOrBuilder
      Returns:
      The resourceUri.
    • getResourceUriBytes

      public com.google.protobuf.ByteString getResourceUriBytes()
       URI of the resource that caused the drop.
       
      string resource_uri = 2;
      Specified by:
      getResourceUriBytes in interface DropInfoOrBuilder
      Returns:
      The bytes for resourceUri.
    • setResourceUri

      public DropInfo.Builder setResourceUri(String value)
       URI of the resource that caused the drop.
       
      string resource_uri = 2;
      Parameters:
      value - The resourceUri to set.
      Returns:
      This builder for chaining.
    • clearResourceUri

      public DropInfo.Builder clearResourceUri()
       URI of the resource that caused the drop.
       
      string resource_uri = 2;
      Returns:
      This builder for chaining.
    • setResourceUriBytes

      public DropInfo.Builder setResourceUriBytes(com.google.protobuf.ByteString value)
       URI of the resource that caused the drop.
       
      string resource_uri = 2;
      Parameters:
      value - The bytes for resourceUri to set.
      Returns:
      This builder for chaining.
    • getSourceIp

      public String getSourceIp()
       Source IP address of the dropped packet (if relevant).
       
      string source_ip = 3;
      Specified by:
      getSourceIp in interface DropInfoOrBuilder
      Returns:
      The sourceIp.
    • getSourceIpBytes

      public com.google.protobuf.ByteString getSourceIpBytes()
       Source IP address of the dropped packet (if relevant).
       
      string source_ip = 3;
      Specified by:
      getSourceIpBytes in interface DropInfoOrBuilder
      Returns:
      The bytes for sourceIp.
    • setSourceIp

      public DropInfo.Builder setSourceIp(String value)
       Source IP address of the dropped packet (if relevant).
       
      string source_ip = 3;
      Parameters:
      value - The sourceIp to set.
      Returns:
      This builder for chaining.
    • clearSourceIp

      public DropInfo.Builder clearSourceIp()
       Source IP address of the dropped packet (if relevant).
       
      string source_ip = 3;
      Returns:
      This builder for chaining.
    • setSourceIpBytes

      public DropInfo.Builder setSourceIpBytes(com.google.protobuf.ByteString value)
       Source IP address of the dropped packet (if relevant).
       
      string source_ip = 3;
      Parameters:
      value - The bytes for sourceIp to set.
      Returns:
      This builder for chaining.
    • getDestinationIp

      public String getDestinationIp()
       Destination IP address of the dropped packet (if relevant).
       
      string destination_ip = 4;
      Specified by:
      getDestinationIp in interface DropInfoOrBuilder
      Returns:
      The destinationIp.
    • getDestinationIpBytes

      public com.google.protobuf.ByteString getDestinationIpBytes()
       Destination IP address of the dropped packet (if relevant).
       
      string destination_ip = 4;
      Specified by:
      getDestinationIpBytes in interface DropInfoOrBuilder
      Returns:
      The bytes for destinationIp.
    • setDestinationIp

      public DropInfo.Builder setDestinationIp(String value)
       Destination IP address of the dropped packet (if relevant).
       
      string destination_ip = 4;
      Parameters:
      value - The destinationIp to set.
      Returns:
      This builder for chaining.
    • clearDestinationIp

      public DropInfo.Builder clearDestinationIp()
       Destination IP address of the dropped packet (if relevant).
       
      string destination_ip = 4;
      Returns:
      This builder for chaining.
    • setDestinationIpBytes

      public DropInfo.Builder setDestinationIpBytes(com.google.protobuf.ByteString value)
       Destination IP address of the dropped packet (if relevant).
       
      string destination_ip = 4;
      Parameters:
      value - The bytes for destinationIp to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Region of the dropped packet (if relevant).
       
      string region = 5;
      Specified by:
      getRegion in interface DropInfoOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Region of the dropped packet (if relevant).
       
      string region = 5;
      Specified by:
      getRegionBytes in interface DropInfoOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public DropInfo.Builder setRegion(String value)
       Region of the dropped packet (if relevant).
       
      string region = 5;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public DropInfo.Builder clearRegion()
       Region of the dropped packet (if relevant).
       
      string region = 5;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public DropInfo.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Region of the dropped packet (if relevant).
       
      string region = 5;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getSourceGeolocationCode

      public String getSourceGeolocationCode()
       Geolocation (region code) of the source IP address (if relevant).
       
      string source_geolocation_code = 6;
      Specified by:
      getSourceGeolocationCode in interface DropInfoOrBuilder
      Returns:
      The sourceGeolocationCode.
    • getSourceGeolocationCodeBytes

      public com.google.protobuf.ByteString getSourceGeolocationCodeBytes()
       Geolocation (region code) of the source IP address (if relevant).
       
      string source_geolocation_code = 6;
      Specified by:
      getSourceGeolocationCodeBytes in interface DropInfoOrBuilder
      Returns:
      The bytes for sourceGeolocationCode.
    • setSourceGeolocationCode

      public DropInfo.Builder setSourceGeolocationCode(String value)
       Geolocation (region code) of the source IP address (if relevant).
       
      string source_geolocation_code = 6;
      Parameters:
      value - The sourceGeolocationCode to set.
      Returns:
      This builder for chaining.
    • clearSourceGeolocationCode

      public DropInfo.Builder clearSourceGeolocationCode()
       Geolocation (region code) of the source IP address (if relevant).
       
      string source_geolocation_code = 6;
      Returns:
      This builder for chaining.
    • setSourceGeolocationCodeBytes

      public DropInfo.Builder setSourceGeolocationCodeBytes(com.google.protobuf.ByteString value)
       Geolocation (region code) of the source IP address (if relevant).
       
      string source_geolocation_code = 6;
      Parameters:
      value - The bytes for sourceGeolocationCode to set.
      Returns:
      This builder for chaining.
    • getDestinationGeolocationCode

      public String getDestinationGeolocationCode()
       Geolocation (region code) of the destination IP address (if relevant).
       
      string destination_geolocation_code = 7;
      Specified by:
      getDestinationGeolocationCode in interface DropInfoOrBuilder
      Returns:
      The destinationGeolocationCode.
    • getDestinationGeolocationCodeBytes

      public com.google.protobuf.ByteString getDestinationGeolocationCodeBytes()
       Geolocation (region code) of the destination IP address (if relevant).
       
      string destination_geolocation_code = 7;
      Specified by:
      getDestinationGeolocationCodeBytes in interface DropInfoOrBuilder
      Returns:
      The bytes for destinationGeolocationCode.
    • setDestinationGeolocationCode

      public DropInfo.Builder setDestinationGeolocationCode(String value)
       Geolocation (region code) of the destination IP address (if relevant).
       
      string destination_geolocation_code = 7;
      Parameters:
      value - The destinationGeolocationCode to set.
      Returns:
      This builder for chaining.
    • clearDestinationGeolocationCode

      public DropInfo.Builder clearDestinationGeolocationCode()
       Geolocation (region code) of the destination IP address (if relevant).
       
      string destination_geolocation_code = 7;
      Returns:
      This builder for chaining.
    • setDestinationGeolocationCodeBytes

      public DropInfo.Builder setDestinationGeolocationCodeBytes(com.google.protobuf.ByteString value)
       Geolocation (region code) of the destination IP address (if relevant).
       
      string destination_geolocation_code = 7;
      Parameters:
      value - The bytes for destinationGeolocationCode to set.
      Returns:
      This builder for chaining.