Class WireGroupEndpointInterconnect.Builder

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

public static final class WireGroupEndpointInterconnect.Builder extends com.google.protobuf.GeneratedMessage.Builder<WireGroupEndpointInterconnect.Builder> implements WireGroupEndpointInterconnectOrBuilder
 The redundant Interconnect connections for this endpoint.
 
Protobuf type google.cloud.compute.v1.WireGroupEndpointInterconnect
  • 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<WireGroupEndpointInterconnect.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<WireGroupEndpointInterconnect.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<WireGroupEndpointInterconnect.Builder>
    • getDefaultInstanceForType

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

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

      public WireGroupEndpointInterconnect.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<WireGroupEndpointInterconnect.Builder>
      Throws:
      IOException
    • hasInterconnect

      public boolean hasInterconnect()
       Required. An Interconnect connection. You can specify the connection as
       a partial or full URL. If the connection is in a different project from
       the cross-site network, use a format that specifies the project. See
       the following examples of partial and full URLs:
      
      
      
       global/interconnects/NAME
      
      
       projects/PROJECT_ID/global/interconnects/NAME
      
       -
       https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME
       
      optional string interconnect = 224601230;
      Specified by:
      hasInterconnect in interface WireGroupEndpointInterconnectOrBuilder
      Returns:
      Whether the interconnect field is set.
    • getInterconnect

      public String getInterconnect()
       Required. An Interconnect connection. You can specify the connection as
       a partial or full URL. If the connection is in a different project from
       the cross-site network, use a format that specifies the project. See
       the following examples of partial and full URLs:
      
      
      
       global/interconnects/NAME
      
      
       projects/PROJECT_ID/global/interconnects/NAME
      
       -
       https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME
       
      optional string interconnect = 224601230;
      Specified by:
      getInterconnect in interface WireGroupEndpointInterconnectOrBuilder
      Returns:
      The interconnect.
    • getInterconnectBytes

      public com.google.protobuf.ByteString getInterconnectBytes()
       Required. An Interconnect connection. You can specify the connection as
       a partial or full URL. If the connection is in a different project from
       the cross-site network, use a format that specifies the project. See
       the following examples of partial and full URLs:
      
      
      
       global/interconnects/NAME
      
      
       projects/PROJECT_ID/global/interconnects/NAME
      
       -
       https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME
       
      optional string interconnect = 224601230;
      Specified by:
      getInterconnectBytes in interface WireGroupEndpointInterconnectOrBuilder
      Returns:
      The bytes for interconnect.
    • setInterconnect

      public WireGroupEndpointInterconnect.Builder setInterconnect(String value)
       Required. An Interconnect connection. You can specify the connection as
       a partial or full URL. If the connection is in a different project from
       the cross-site network, use a format that specifies the project. See
       the following examples of partial and full URLs:
      
      
      
       global/interconnects/NAME
      
      
       projects/PROJECT_ID/global/interconnects/NAME
      
       -
       https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME
       
      optional string interconnect = 224601230;
      Parameters:
      value - The interconnect to set.
      Returns:
      This builder for chaining.
    • clearInterconnect

      public WireGroupEndpointInterconnect.Builder clearInterconnect()
       Required. An Interconnect connection. You can specify the connection as
       a partial or full URL. If the connection is in a different project from
       the cross-site network, use a format that specifies the project. See
       the following examples of partial and full URLs:
      
      
      
       global/interconnects/NAME
      
      
       projects/PROJECT_ID/global/interconnects/NAME
      
       -
       https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME
       
      optional string interconnect = 224601230;
      Returns:
      This builder for chaining.
    • setInterconnectBytes

      public WireGroupEndpointInterconnect.Builder setInterconnectBytes(com.google.protobuf.ByteString value)
       Required. An Interconnect connection. You can specify the connection as
       a partial or full URL. If the connection is in a different project from
       the cross-site network, use a format that specifies the project. See
       the following examples of partial and full URLs:
      
      
      
       global/interconnects/NAME
      
      
       projects/PROJECT_ID/global/interconnects/NAME
      
       -
       https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME
       
      optional string interconnect = 224601230;
      Parameters:
      value - The bytes for interconnect to set.
      Returns:
      This builder for chaining.
    • getVlanTagsList

      public List<Integer> getVlanTagsList()
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Specified by:
      getVlanTagsList in interface WireGroupEndpointInterconnectOrBuilder
      Returns:
      A list containing the vlanTags.
    • getVlanTagsCount

      public int getVlanTagsCount()
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Specified by:
      getVlanTagsCount in interface WireGroupEndpointInterconnectOrBuilder
      Returns:
      The count of vlanTags.
    • getVlanTags

      public int getVlanTags(int index)
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Specified by:
      getVlanTags in interface WireGroupEndpointInterconnectOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The vlanTags at the given index.
    • setVlanTags

      public WireGroupEndpointInterconnect.Builder setVlanTags(int index, int value)
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Parameters:
      index - The index to set the value at.
      value - The vlanTags to set.
      Returns:
      This builder for chaining.
    • addVlanTags

      public WireGroupEndpointInterconnect.Builder addVlanTags(int value)
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Parameters:
      value - The vlanTags to add.
      Returns:
      This builder for chaining.
    • addAllVlanTags

      public WireGroupEndpointInterconnect.Builder addAllVlanTags(Iterable<? extends Integer> values)
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Parameters:
      values - The vlanTags to add.
      Returns:
      This builder for chaining.
    • clearVlanTags

      public WireGroupEndpointInterconnect.Builder clearVlanTags()
       Required. To configure the wire group for VLAN mode, enter a VLAN tag,
       which is a number from `2` to `4093`. You can autoallocate a tag by
       entering `0`. To configure the wire group for port mode, enter `-1`.
       Review the following guidelines:
      
       - A VLAN tag must be unique for an Interconnect connection across all
       attachments and wire groups.
       - Both endpoints of a wire must use the same VLAN tag value.
       - Single wire and redundant type wire groups must have only one
       VLAN tag.
       - Port mode pseudowires must have a single VLAN tag with a value of
       `-1` for both endpoints.
       - Box and cross type wire groups must have two VLAN tags. The first
       is for the same-zone pseudowire, and the second is for the cross-zone
       pseudowire.
       
      repeated int32 vlan_tags = 384601461;
      Returns:
      This builder for chaining.