Class VpnConnection.Details.Builder

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

public static final class VpnConnection.Details.Builder extends com.google.protobuf.GeneratedMessage.Builder<VpnConnection.Details.Builder> implements VpnConnection.DetailsOrBuilder
 The created connection details.
 
Protobuf type google.cloud.edgecontainer.v1.VpnConnection.Details
  • 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<VpnConnection.Details.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<VpnConnection.Details.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<VpnConnection.Details.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public VpnConnection.Details.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<VpnConnection.Details.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       The state of this connection.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;
      Specified by:
      getStateValue in interface VpnConnection.DetailsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public VpnConnection.Details.Builder setStateValue(int value)
       The state of this connection.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public VpnConnection.Details.State getState()
       The state of this connection.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;
      Specified by:
      getState in interface VpnConnection.DetailsOrBuilder
      Returns:
      The state.
    • setState

       The state of this connection.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public VpnConnection.Details.Builder clearState()
       The state of this connection.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.State state = 1;
      Returns:
      This builder for chaining.
    • getError

      public String getError()
       The error message. This is only populated when state=ERROR.
       
      string error = 2;
      Specified by:
      getError in interface VpnConnection.DetailsOrBuilder
      Returns:
      The error.
    • getErrorBytes

      public com.google.protobuf.ByteString getErrorBytes()
       The error message. This is only populated when state=ERROR.
       
      string error = 2;
      Specified by:
      getErrorBytes in interface VpnConnection.DetailsOrBuilder
      Returns:
      The bytes for error.
    • setError

      public VpnConnection.Details.Builder setError(String value)
       The error message. This is only populated when state=ERROR.
       
      string error = 2;
      Parameters:
      value - The error to set.
      Returns:
      This builder for chaining.
    • clearError

      public VpnConnection.Details.Builder clearError()
       The error message. This is only populated when state=ERROR.
       
      string error = 2;
      Returns:
      This builder for chaining.
    • setErrorBytes

      public VpnConnection.Details.Builder setErrorBytes(com.google.protobuf.ByteString value)
       The error message. This is only populated when state=ERROR.
       
      string error = 2;
      Parameters:
      value - The bytes for error to set.
      Returns:
      This builder for chaining.
    • hasCloudRouter

      public boolean hasCloudRouter()
       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
      Specified by:
      hasCloudRouter in interface VpnConnection.DetailsOrBuilder
      Returns:
      Whether the cloudRouter field is set.
    • getCloudRouter

      public VpnConnection.Details.CloudRouter getCloudRouter()
       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
      Specified by:
      getCloudRouter in interface VpnConnection.DetailsOrBuilder
      Returns:
      The cloudRouter.
    • setCloudRouter

       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
    • setCloudRouter

       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
    • mergeCloudRouter

       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
    • clearCloudRouter

      public VpnConnection.Details.Builder clearCloudRouter()
       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
    • getCloudRouterBuilder

      public VpnConnection.Details.CloudRouter.Builder getCloudRouterBuilder()
       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
    • getCloudRouterOrBuilder

      public VpnConnection.Details.CloudRouterOrBuilder getCloudRouterOrBuilder()
       The Cloud Router info.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudRouter cloud_router = 3;
      Specified by:
      getCloudRouterOrBuilder in interface VpnConnection.DetailsOrBuilder
    • getCloudVpnsList

      public List<VpnConnection.Details.CloudVpn> getCloudVpnsList()
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
      Specified by:
      getCloudVpnsList in interface VpnConnection.DetailsOrBuilder
    • getCloudVpnsCount

      public int getCloudVpnsCount()
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
      Specified by:
      getCloudVpnsCount in interface VpnConnection.DetailsOrBuilder
    • getCloudVpns

      public VpnConnection.Details.CloudVpn getCloudVpns(int index)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
      Specified by:
      getCloudVpns in interface VpnConnection.DetailsOrBuilder
    • setCloudVpns

      public VpnConnection.Details.Builder setCloudVpns(int index, VpnConnection.Details.CloudVpn value)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • setCloudVpns

      public VpnConnection.Details.Builder setCloudVpns(int index, VpnConnection.Details.CloudVpn.Builder builderForValue)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • addCloudVpns

       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • addCloudVpns

      public VpnConnection.Details.Builder addCloudVpns(int index, VpnConnection.Details.CloudVpn value)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • addCloudVpns

       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • addCloudVpns

      public VpnConnection.Details.Builder addCloudVpns(int index, VpnConnection.Details.CloudVpn.Builder builderForValue)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • addAllCloudVpns

      public VpnConnection.Details.Builder addAllCloudVpns(Iterable<? extends VpnConnection.Details.CloudVpn> values)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • clearCloudVpns

      public VpnConnection.Details.Builder clearCloudVpns()
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • removeCloudVpns

      public VpnConnection.Details.Builder removeCloudVpns(int index)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • getCloudVpnsBuilder

      public VpnConnection.Details.CloudVpn.Builder getCloudVpnsBuilder(int index)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • getCloudVpnsOrBuilder

      public VpnConnection.Details.CloudVpnOrBuilder getCloudVpnsOrBuilder(int index)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
      Specified by:
      getCloudVpnsOrBuilder in interface VpnConnection.DetailsOrBuilder
    • getCloudVpnsOrBuilderList

      public List<? extends VpnConnection.Details.CloudVpnOrBuilder> getCloudVpnsOrBuilderList()
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
      Specified by:
      getCloudVpnsOrBuilderList in interface VpnConnection.DetailsOrBuilder
    • addCloudVpnsBuilder

      public VpnConnection.Details.CloudVpn.Builder addCloudVpnsBuilder()
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • addCloudVpnsBuilder

      public VpnConnection.Details.CloudVpn.Builder addCloudVpnsBuilder(int index)
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;
    • getCloudVpnsBuilderList

      public List<VpnConnection.Details.CloudVpn.Builder> getCloudVpnsBuilderList()
       Each connection has multiple Cloud VPN gateways.
       
      repeated .google.cloud.edgecontainer.v1.VpnConnection.Details.CloudVpn cloud_vpns = 4;