Class WireProperties.Builder

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

public static final class WireProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<WireProperties.Builder> implements WirePropertiesOrBuilder
 The properties of a wire.
 
Protobuf type google.cloud.compute.v1.WireProperties
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group
    The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps.
    Response when a fault is detected in a pseudowire: - NONE: default
    The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group
    com.google.protobuf.ByteString
    The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group
    long
    The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Response when a fault is detected in a pseudowire: - NONE: default
    com.google.protobuf.ByteString
    Response when a fault is detected in a pseudowire: - NONE: default
    boolean
    The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group
    boolean
    The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps.
    boolean
    Response when a fault is detected in a pseudowire: - NONE: default
    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 configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group
    setBandwidthAllocationBytes(com.google.protobuf.ByteString value)
    The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group
    The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps.
    Response when a fault is detected in a pseudowire: - NONE: default
    setFaultResponseBytes(com.google.protobuf.ByteString value)
    Response when a fault is detected in a pseudowire: - NONE: default

    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<WireProperties.Builder>
    • clear

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

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

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

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

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

      public WireProperties.Builder mergeFrom(WireProperties other)
    • isInitialized

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

      public WireProperties.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<WireProperties.Builder>
      Throws:
      IOException
    • hasBandwidthAllocation

      public boolean hasBandwidthAllocation()
       The configuration of the bandwidth allocation, one of the following:
      
       - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation
       (and associated charges) for each wire in the group.
       - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures
       one unmetered bandwidth allocation for the wire group. The unmetered
       bandwidth is divided equally across each wire in the group, but dynamic
       throttling reallocates unused unmetered bandwidth from unused or underused
       wires to other wires in the group.
       Check the BandwidthAllocation enum for the list of possible values.
       
      optional string bandwidth_allocation = 90651950;
      Specified by:
      hasBandwidthAllocation in interface WirePropertiesOrBuilder
      Returns:
      Whether the bandwidthAllocation field is set.
    • getBandwidthAllocation

      public String getBandwidthAllocation()
       The configuration of the bandwidth allocation, one of the following:
      
       - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation
       (and associated charges) for each wire in the group.
       - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures
       one unmetered bandwidth allocation for the wire group. The unmetered
       bandwidth is divided equally across each wire in the group, but dynamic
       throttling reallocates unused unmetered bandwidth from unused or underused
       wires to other wires in the group.
       Check the BandwidthAllocation enum for the list of possible values.
       
      optional string bandwidth_allocation = 90651950;
      Specified by:
      getBandwidthAllocation in interface WirePropertiesOrBuilder
      Returns:
      The bandwidthAllocation.
    • getBandwidthAllocationBytes

      public com.google.protobuf.ByteString getBandwidthAllocationBytes()
       The configuration of the bandwidth allocation, one of the following:
      
       - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation
       (and associated charges) for each wire in the group.
       - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures
       one unmetered bandwidth allocation for the wire group. The unmetered
       bandwidth is divided equally across each wire in the group, but dynamic
       throttling reallocates unused unmetered bandwidth from unused or underused
       wires to other wires in the group.
       Check the BandwidthAllocation enum for the list of possible values.
       
      optional string bandwidth_allocation = 90651950;
      Specified by:
      getBandwidthAllocationBytes in interface WirePropertiesOrBuilder
      Returns:
      The bytes for bandwidthAllocation.
    • setBandwidthAllocation

      public WireProperties.Builder setBandwidthAllocation(String value)
       The configuration of the bandwidth allocation, one of the following:
      
       - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation
       (and associated charges) for each wire in the group.
       - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures
       one unmetered bandwidth allocation for the wire group. The unmetered
       bandwidth is divided equally across each wire in the group, but dynamic
       throttling reallocates unused unmetered bandwidth from unused or underused
       wires to other wires in the group.
       Check the BandwidthAllocation enum for the list of possible values.
       
      optional string bandwidth_allocation = 90651950;
      Parameters:
      value - The bandwidthAllocation to set.
      Returns:
      This builder for chaining.
    • clearBandwidthAllocation

      public WireProperties.Builder clearBandwidthAllocation()
       The configuration of the bandwidth allocation, one of the following:
      
       - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation
       (and associated charges) for each wire in the group.
       - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures
       one unmetered bandwidth allocation for the wire group. The unmetered
       bandwidth is divided equally across each wire in the group, but dynamic
       throttling reallocates unused unmetered bandwidth from unused or underused
       wires to other wires in the group.
       Check the BandwidthAllocation enum for the list of possible values.
       
      optional string bandwidth_allocation = 90651950;
      Returns:
      This builder for chaining.
    • setBandwidthAllocationBytes

      public WireProperties.Builder setBandwidthAllocationBytes(com.google.protobuf.ByteString value)
       The configuration of the bandwidth allocation, one of the following:
      
       - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation
       (and associated charges) for each wire in the group.
       - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures
       one unmetered bandwidth allocation for the wire group. The unmetered
       bandwidth is divided equally across each wire in the group, but dynamic
       throttling reallocates unused unmetered bandwidth from unused or underused
       wires to other wires in the group.
       Check the BandwidthAllocation enum for the list of possible values.
       
      optional string bandwidth_allocation = 90651950;
      Parameters:
      value - The bytes for bandwidthAllocation to set.
      Returns:
      This builder for chaining.
    • hasBandwidthUnmetered

      public boolean hasBandwidthUnmetered()
       The unmetered bandwidth in Gigabits per second, using decimal units. `10`
       is 10 Gbps, `100` is 100 Gbps. The bandwidth must be greater than 0.
       
      optional int64 bandwidth_unmetered = 272650017;
      Specified by:
      hasBandwidthUnmetered in interface WirePropertiesOrBuilder
      Returns:
      Whether the bandwidthUnmetered field is set.
    • getBandwidthUnmetered

      public long getBandwidthUnmetered()
       The unmetered bandwidth in Gigabits per second, using decimal units. `10`
       is 10 Gbps, `100` is 100 Gbps. The bandwidth must be greater than 0.
       
      optional int64 bandwidth_unmetered = 272650017;
      Specified by:
      getBandwidthUnmetered in interface WirePropertiesOrBuilder
      Returns:
      The bandwidthUnmetered.
    • setBandwidthUnmetered

      public WireProperties.Builder setBandwidthUnmetered(long value)
       The unmetered bandwidth in Gigabits per second, using decimal units. `10`
       is 10 Gbps, `100` is 100 Gbps. The bandwidth must be greater than 0.
       
      optional int64 bandwidth_unmetered = 272650017;
      Parameters:
      value - The bandwidthUnmetered to set.
      Returns:
      This builder for chaining.
    • clearBandwidthUnmetered

      public WireProperties.Builder clearBandwidthUnmetered()
       The unmetered bandwidth in Gigabits per second, using decimal units. `10`
       is 10 Gbps, `100` is 100 Gbps. The bandwidth must be greater than 0.
       
      optional int64 bandwidth_unmetered = 272650017;
      Returns:
      This builder for chaining.
    • hasFaultResponse

      public boolean hasFaultResponse()
       Response when a fault is detected in a pseudowire:
      
       - NONE: default.
       - DISABLE_PORT: set the port line protocol down when inline probes
       detect a fault. This setting is only permitted on port mode
       pseudowires.
       Check the FaultResponse enum for the list of possible values.
       
      optional string fault_response = 353587646;
      Specified by:
      hasFaultResponse in interface WirePropertiesOrBuilder
      Returns:
      Whether the faultResponse field is set.
    • getFaultResponse

      public String getFaultResponse()
       Response when a fault is detected in a pseudowire:
      
       - NONE: default.
       - DISABLE_PORT: set the port line protocol down when inline probes
       detect a fault. This setting is only permitted on port mode
       pseudowires.
       Check the FaultResponse enum for the list of possible values.
       
      optional string fault_response = 353587646;
      Specified by:
      getFaultResponse in interface WirePropertiesOrBuilder
      Returns:
      The faultResponse.
    • getFaultResponseBytes

      public com.google.protobuf.ByteString getFaultResponseBytes()
       Response when a fault is detected in a pseudowire:
      
       - NONE: default.
       - DISABLE_PORT: set the port line protocol down when inline probes
       detect a fault. This setting is only permitted on port mode
       pseudowires.
       Check the FaultResponse enum for the list of possible values.
       
      optional string fault_response = 353587646;
      Specified by:
      getFaultResponseBytes in interface WirePropertiesOrBuilder
      Returns:
      The bytes for faultResponse.
    • setFaultResponse

      public WireProperties.Builder setFaultResponse(String value)
       Response when a fault is detected in a pseudowire:
      
       - NONE: default.
       - DISABLE_PORT: set the port line protocol down when inline probes
       detect a fault. This setting is only permitted on port mode
       pseudowires.
       Check the FaultResponse enum for the list of possible values.
       
      optional string fault_response = 353587646;
      Parameters:
      value - The faultResponse to set.
      Returns:
      This builder for chaining.
    • clearFaultResponse

      public WireProperties.Builder clearFaultResponse()
       Response when a fault is detected in a pseudowire:
      
       - NONE: default.
       - DISABLE_PORT: set the port line protocol down when inline probes
       detect a fault. This setting is only permitted on port mode
       pseudowires.
       Check the FaultResponse enum for the list of possible values.
       
      optional string fault_response = 353587646;
      Returns:
      This builder for chaining.
    • setFaultResponseBytes

      public WireProperties.Builder setFaultResponseBytes(com.google.protobuf.ByteString value)
       Response when a fault is detected in a pseudowire:
      
       - NONE: default.
       - DISABLE_PORT: set the port line protocol down when inline probes
       detect a fault. This setting is only permitted on port mode
       pseudowires.
       Check the FaultResponse enum for the list of possible values.
       
      optional string fault_response = 353587646;
      Parameters:
      value - The bytes for faultResponse to set.
      Returns:
      This builder for chaining.