Class WireGroupEndpointInterconnect

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.WireGroupEndpointInterconnect
All Implemented Interfaces:
WireGroupEndpointInterconnectOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class WireGroupEndpointInterconnect extends com.google.protobuf.GeneratedMessage implements WireGroupEndpointInterconnectOrBuilder
 The redundant Interconnect connections for this endpoint.
 
Protobuf type google.cloud.compute.v1.WireGroupEndpointInterconnect
See Also:
  • Field Details

    • INTERCONNECT_FIELD_NUMBER

      public static final int INTERCONNECT_FIELD_NUMBER
      See Also:
    • VLAN_TAGS_FIELD_NUMBER

      public static final int VLAN_TAGS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WireGroupEndpointInterconnect parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WireGroupEndpointInterconnect parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WireGroupEndpointInterconnect parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public WireGroupEndpointInterconnect.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static WireGroupEndpointInterconnect.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WireGroupEndpointInterconnect.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static WireGroupEndpointInterconnect getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WireGroupEndpointInterconnect> parser()
    • getParserForType

      public com.google.protobuf.Parser<WireGroupEndpointInterconnect> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public WireGroupEndpointInterconnect getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder