Class Wire.Builder

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

public static final class Wire.Builder extends com.google.protobuf.GeneratedMessage.Builder<Wire.Builder> implements WireOrBuilder
 A pseudowire that connects two Interconnect connections.
 
Protobuf type google.cloud.compute.v1.Wire
  • 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<Wire.Builder>
    • clear

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

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

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

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

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

      public Wire.Builder mergeFrom(Wire other)
    • isInitialized

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

      public Wire.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<Wire.Builder>
      Throws:
      IOException
    • hasAdminEnabled

      public boolean hasAdminEnabled()
       Output only. [Output Only] Indicates whether the wire is enabled.
       When false, the wire is disabled. When true and when the wire group of
       the wire is also enabled, the wire is enabled. Defaults to true.
       
      optional bool admin_enabled = 445675089;
      Specified by:
      hasAdminEnabled in interface WireOrBuilder
      Returns:
      Whether the adminEnabled field is set.
    • getAdminEnabled

      public boolean getAdminEnabled()
       Output only. [Output Only] Indicates whether the wire is enabled.
       When false, the wire is disabled. When true and when the wire group of
       the wire is also enabled, the wire is enabled. Defaults to true.
       
      optional bool admin_enabled = 445675089;
      Specified by:
      getAdminEnabled in interface WireOrBuilder
      Returns:
      The adminEnabled.
    • setAdminEnabled

      public Wire.Builder setAdminEnabled(boolean value)
       Output only. [Output Only] Indicates whether the wire is enabled.
       When false, the wire is disabled. When true and when the wire group of
       the wire is also enabled, the wire is enabled. Defaults to true.
       
      optional bool admin_enabled = 445675089;
      Parameters:
      value - The adminEnabled to set.
      Returns:
      This builder for chaining.
    • clearAdminEnabled

      public Wire.Builder clearAdminEnabled()
       Output only. [Output Only] Indicates whether the wire is enabled.
       When false, the wire is disabled. When true and when the wire group of
       the wire is also enabled, the wire is enabled. Defaults to true.
       
      optional bool admin_enabled = 445675089;
      Returns:
      This builder for chaining.
    • getEndpointsList

      public List<WireEndpoint> getEndpointsList()
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
      Specified by:
      getEndpointsList in interface WireOrBuilder
    • getEndpointsCount

      public int getEndpointsCount()
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
      Specified by:
      getEndpointsCount in interface WireOrBuilder
    • getEndpoints

      public WireEndpoint getEndpoints(int index)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
      Specified by:
      getEndpoints in interface WireOrBuilder
    • setEndpoints

      public Wire.Builder setEndpoints(int index, WireEndpoint value)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • setEndpoints

      public Wire.Builder setEndpoints(int index, WireEndpoint.Builder builderForValue)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • addEndpoints

      public Wire.Builder addEndpoints(WireEndpoint value)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • addEndpoints

      public Wire.Builder addEndpoints(int index, WireEndpoint value)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • addEndpoints

      public Wire.Builder addEndpoints(WireEndpoint.Builder builderForValue)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • addEndpoints

      public Wire.Builder addEndpoints(int index, WireEndpoint.Builder builderForValue)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • addAllEndpoints

      public Wire.Builder addAllEndpoints(Iterable<? extends WireEndpoint> values)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • clearEndpoints

      public Wire.Builder clearEndpoints()
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • removeEndpoints

      public Wire.Builder removeEndpoints(int index)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • getEndpointsBuilder

      public WireEndpoint.Builder getEndpointsBuilder(int index)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • getEndpointsOrBuilder

      public WireEndpointOrBuilder getEndpointsOrBuilder(int index)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
      Specified by:
      getEndpointsOrBuilder in interface WireOrBuilder
    • getEndpointsOrBuilderList

      public List<? extends WireEndpointOrBuilder> getEndpointsOrBuilderList()
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
      Specified by:
      getEndpointsOrBuilderList in interface WireOrBuilder
    • addEndpointsBuilder

      public WireEndpoint.Builder addEndpointsBuilder()
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • addEndpointsBuilder

      public WireEndpoint.Builder addEndpointsBuilder(int index)
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • getEndpointsBuilderList

      public List<WireEndpoint.Builder> getEndpointsBuilderList()
       Output only. Wire endpoints are specific Interconnect connections.
       
      repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;
    • hasLabel

      public boolean hasLabel()
       Output only. [Output Only] A label that identifies the wire. The format of this label
       combines the existing labels of the wire group endpoints and Interconnect
       connections used by this wire in alphabetical order as follows:
       `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where:
      
       - ENDPOINT_A and ENDPOINT_B: are the labels
       that you entered as map keys when you specified the wire group endpoint
       objects.
       - CONNECTION_A1 and CONNECTION_B1: are the
       labels that you entered as map keys when you specified the wire group
       Interconnect objects.
       
      optional string label = 102727412;
      Specified by:
      hasLabel in interface WireOrBuilder
      Returns:
      Whether the label field is set.
    • getLabel

      public String getLabel()
       Output only. [Output Only] A label that identifies the wire. The format of this label
       combines the existing labels of the wire group endpoints and Interconnect
       connections used by this wire in alphabetical order as follows:
       `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where:
      
       - ENDPOINT_A and ENDPOINT_B: are the labels
       that you entered as map keys when you specified the wire group endpoint
       objects.
       - CONNECTION_A1 and CONNECTION_B1: are the
       labels that you entered as map keys when you specified the wire group
       Interconnect objects.
       
      optional string label = 102727412;
      Specified by:
      getLabel in interface WireOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       Output only. [Output Only] A label that identifies the wire. The format of this label
       combines the existing labels of the wire group endpoints and Interconnect
       connections used by this wire in alphabetical order as follows:
       `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where:
      
       - ENDPOINT_A and ENDPOINT_B: are the labels
       that you entered as map keys when you specified the wire group endpoint
       objects.
       - CONNECTION_A1 and CONNECTION_B1: are the
       labels that you entered as map keys when you specified the wire group
       Interconnect objects.
       
      optional string label = 102727412;
      Specified by:
      getLabelBytes in interface WireOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public Wire.Builder setLabel(String value)
       Output only. [Output Only] A label that identifies the wire. The format of this label
       combines the existing labels of the wire group endpoints and Interconnect
       connections used by this wire in alphabetical order as follows:
       `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where:
      
       - ENDPOINT_A and ENDPOINT_B: are the labels
       that you entered as map keys when you specified the wire group endpoint
       objects.
       - CONNECTION_A1 and CONNECTION_B1: are the
       labels that you entered as map keys when you specified the wire group
       Interconnect objects.
       
      optional string label = 102727412;
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public Wire.Builder clearLabel()
       Output only. [Output Only] A label that identifies the wire. The format of this label
       combines the existing labels of the wire group endpoints and Interconnect
       connections used by this wire in alphabetical order as follows:
       `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where:
      
       - ENDPOINT_A and ENDPOINT_B: are the labels
       that you entered as map keys when you specified the wire group endpoint
       objects.
       - CONNECTION_A1 and CONNECTION_B1: are the
       labels that you entered as map keys when you specified the wire group
       Interconnect objects.
       
      optional string label = 102727412;
      Returns:
      This builder for chaining.
    • setLabelBytes

      public Wire.Builder setLabelBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] A label that identifies the wire. The format of this label
       combines the existing labels of the wire group endpoints and Interconnect
       connections used by this wire in alphabetical order as follows:
       `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where:
      
       - ENDPOINT_A and ENDPOINT_B: are the labels
       that you entered as map keys when you specified the wire group endpoint
       objects.
       - CONNECTION_A1 and CONNECTION_B1: are the
       labels that you entered as map keys when you specified the wire group
       Interconnect objects.
       
      optional string label = 102727412;
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • hasWireProperties

      public boolean hasWireProperties()
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
      Specified by:
      hasWireProperties in interface WireOrBuilder
      Returns:
      Whether the wireProperties field is set.
    • getWireProperties

      public WireProperties getWireProperties()
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
      Specified by:
      getWireProperties in interface WireOrBuilder
      Returns:
      The wireProperties.
    • setWireProperties

      public Wire.Builder setWireProperties(WireProperties value)
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
    • setWireProperties

      public Wire.Builder setWireProperties(WireProperties.Builder builderForValue)
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
    • mergeWireProperties

      public Wire.Builder mergeWireProperties(WireProperties value)
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
    • clearWireProperties

      public Wire.Builder clearWireProperties()
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
    • getWirePropertiesBuilder

      public WireProperties.Builder getWirePropertiesBuilder()
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
    • getWirePropertiesOrBuilder

      public WirePropertiesOrBuilder getWirePropertiesOrBuilder()
       Output only. [Output Only] Properties of the wire.
       
      optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;
      Specified by:
      getWirePropertiesOrBuilder in interface WireOrBuilder