Class NetworkPeering.Builder

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

public static final class NetworkPeering.Builder extends com.google.protobuf.GeneratedMessage.Builder<NetworkPeering.Builder> implements NetworkPeeringOrBuilder
 A network peering attached to a network resource. The message includes the
 peering name, peer network, peering state, and a flag indicating whether
 Google Compute Engine should automatically create routes for the peering.
 
Protobuf type google.cloud.compute.v1.NetworkPeering
  • 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<NetworkPeering.Builder>
    • clear

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

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

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

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

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

      public NetworkPeering.Builder mergeFrom(NetworkPeering other)
    • isInitialized

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

      public NetworkPeering.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<NetworkPeering.Builder>
      Throws:
      IOException
    • hasAutoCreateRoutes

      public boolean hasAutoCreateRoutes()
       This field will be deprecated soon. Use theexchange_subnet_routes field instead.
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool auto_create_routes = 57454941;
      Specified by:
      hasAutoCreateRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the autoCreateRoutes field is set.
    • getAutoCreateRoutes

      public boolean getAutoCreateRoutes()
       This field will be deprecated soon. Use theexchange_subnet_routes field instead.
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool auto_create_routes = 57454941;
      Specified by:
      getAutoCreateRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The autoCreateRoutes.
    • setAutoCreateRoutes

      public NetworkPeering.Builder setAutoCreateRoutes(boolean value)
       This field will be deprecated soon. Use theexchange_subnet_routes field instead.
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool auto_create_routes = 57454941;
      Parameters:
      value - The autoCreateRoutes to set.
      Returns:
      This builder for chaining.
    • clearAutoCreateRoutes

      public NetworkPeering.Builder clearAutoCreateRoutes()
       This field will be deprecated soon. Use theexchange_subnet_routes field instead.
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool auto_create_routes = 57454941;
      Returns:
      This builder for chaining.
    • hasConnectionStatus

      public boolean hasConnectionStatus()
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
      Specified by:
      hasConnectionStatus in interface NetworkPeeringOrBuilder
      Returns:
      Whether the connectionStatus field is set.
    • getConnectionStatus

      public NetworkPeeringConnectionStatus getConnectionStatus()
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
      Specified by:
      getConnectionStatus in interface NetworkPeeringOrBuilder
      Returns:
      The connectionStatus.
    • setConnectionStatus

      public NetworkPeering.Builder setConnectionStatus(NetworkPeeringConnectionStatus value)
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
    • setConnectionStatus

      public NetworkPeering.Builder setConnectionStatus(NetworkPeeringConnectionStatus.Builder builderForValue)
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
    • mergeConnectionStatus

      public NetworkPeering.Builder mergeConnectionStatus(NetworkPeeringConnectionStatus value)
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
    • clearConnectionStatus

      public NetworkPeering.Builder clearConnectionStatus()
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
    • getConnectionStatusBuilder

      public NetworkPeeringConnectionStatus.Builder getConnectionStatusBuilder()
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
    • getConnectionStatusOrBuilder

      public NetworkPeeringConnectionStatusOrBuilder getConnectionStatusOrBuilder()
       Output only. [Output Only] The effective state of the peering connection
       as a whole.
       
      optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;
      Specified by:
      getConnectionStatusOrBuilder in interface NetworkPeeringOrBuilder
    • hasExchangeSubnetRoutes

      public boolean hasExchangeSubnetRoutes()
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool exchange_subnet_routes = 26322256;
      Specified by:
      hasExchangeSubnetRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the exchangeSubnetRoutes field is set.
    • getExchangeSubnetRoutes

      public boolean getExchangeSubnetRoutes()
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool exchange_subnet_routes = 26322256;
      Specified by:
      getExchangeSubnetRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The exchangeSubnetRoutes.
    • setExchangeSubnetRoutes

      public NetworkPeering.Builder setExchangeSubnetRoutes(boolean value)
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool exchange_subnet_routes = 26322256;
      Parameters:
      value - The exchangeSubnetRoutes to set.
      Returns:
      This builder for chaining.
    • clearExchangeSubnetRoutes

      public NetworkPeering.Builder clearExchangeSubnetRoutes()
       Indicates whether full mesh connectivity is created and managed
       automatically between peered networks. Currently this field should always
       be true since Google Compute Engine will automatically create and manage
       subnetwork routes between two networks when peering state isACTIVE.
       
      optional bool exchange_subnet_routes = 26322256;
      Returns:
      This builder for chaining.
    • hasExportCustomRoutes

      public boolean hasExportCustomRoutes()
       Whether to export the custom routes to peer network. The default value is
       false.
       
      optional bool export_custom_routes = 60281485;
      Specified by:
      hasExportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the exportCustomRoutes field is set.
    • getExportCustomRoutes

      public boolean getExportCustomRoutes()
       Whether to export the custom routes to peer network. The default value is
       false.
       
      optional bool export_custom_routes = 60281485;
      Specified by:
      getExportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The exportCustomRoutes.
    • setExportCustomRoutes

      public NetworkPeering.Builder setExportCustomRoutes(boolean value)
       Whether to export the custom routes to peer network. The default value is
       false.
       
      optional bool export_custom_routes = 60281485;
      Parameters:
      value - The exportCustomRoutes to set.
      Returns:
      This builder for chaining.
    • clearExportCustomRoutes

      public NetworkPeering.Builder clearExportCustomRoutes()
       Whether to export the custom routes to peer network. The default value is
       false.
       
      optional bool export_custom_routes = 60281485;
      Returns:
      This builder for chaining.
    • hasExportSubnetRoutesWithPublicIp

      public boolean hasExportSubnetRoutesWithPublicIp()
       Whether subnet routes with public IP range are exported. The default value
       is true, all subnet routes are exported.IPv4
       special-use ranges are always
       exported to peers and are not controlled by this field.
       
      optional bool export_subnet_routes_with_public_ip = 97940834;
      Specified by:
      hasExportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      Whether the exportSubnetRoutesWithPublicIp field is set.
    • getExportSubnetRoutesWithPublicIp

      public boolean getExportSubnetRoutesWithPublicIp()
       Whether subnet routes with public IP range are exported. The default value
       is true, all subnet routes are exported.IPv4
       special-use ranges are always
       exported to peers and are not controlled by this field.
       
      optional bool export_subnet_routes_with_public_ip = 97940834;
      Specified by:
      getExportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      The exportSubnetRoutesWithPublicIp.
    • setExportSubnetRoutesWithPublicIp

      public NetworkPeering.Builder setExportSubnetRoutesWithPublicIp(boolean value)
       Whether subnet routes with public IP range are exported. The default value
       is true, all subnet routes are exported.IPv4
       special-use ranges are always
       exported to peers and are not controlled by this field.
       
      optional bool export_subnet_routes_with_public_ip = 97940834;
      Parameters:
      value - The exportSubnetRoutesWithPublicIp to set.
      Returns:
      This builder for chaining.
    • clearExportSubnetRoutesWithPublicIp

      public NetworkPeering.Builder clearExportSubnetRoutesWithPublicIp()
       Whether subnet routes with public IP range are exported. The default value
       is true, all subnet routes are exported.IPv4
       special-use ranges are always
       exported to peers and are not controlled by this field.
       
      optional bool export_subnet_routes_with_public_ip = 97940834;
      Returns:
      This builder for chaining.
    • hasImportCustomRoutes

      public boolean hasImportCustomRoutes()
       Whether to import the custom routes from peer network. The default value is
       false.
       
      optional bool import_custom_routes = 197982398;
      Specified by:
      hasImportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the importCustomRoutes field is set.
    • getImportCustomRoutes

      public boolean getImportCustomRoutes()
       Whether to import the custom routes from peer network. The default value is
       false.
       
      optional bool import_custom_routes = 197982398;
      Specified by:
      getImportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The importCustomRoutes.
    • setImportCustomRoutes

      public NetworkPeering.Builder setImportCustomRoutes(boolean value)
       Whether to import the custom routes from peer network. The default value is
       false.
       
      optional bool import_custom_routes = 197982398;
      Parameters:
      value - The importCustomRoutes to set.
      Returns:
      This builder for chaining.
    • clearImportCustomRoutes

      public NetworkPeering.Builder clearImportCustomRoutes()
       Whether to import the custom routes from peer network. The default value is
       false.
       
      optional bool import_custom_routes = 197982398;
      Returns:
      This builder for chaining.
    • hasImportSubnetRoutesWithPublicIp

      public boolean hasImportSubnetRoutesWithPublicIp()
       Whether subnet routes with public IP range are imported. The default value
       is false.IPv4
       special-use ranges are always
       imported from peers and are not controlled by this field.
       
      optional bool import_subnet_routes_with_public_ip = 14419729;
      Specified by:
      hasImportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      Whether the importSubnetRoutesWithPublicIp field is set.
    • getImportSubnetRoutesWithPublicIp

      public boolean getImportSubnetRoutesWithPublicIp()
       Whether subnet routes with public IP range are imported. The default value
       is false.IPv4
       special-use ranges are always
       imported from peers and are not controlled by this field.
       
      optional bool import_subnet_routes_with_public_ip = 14419729;
      Specified by:
      getImportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      The importSubnetRoutesWithPublicIp.
    • setImportSubnetRoutesWithPublicIp

      public NetworkPeering.Builder setImportSubnetRoutesWithPublicIp(boolean value)
       Whether subnet routes with public IP range are imported. The default value
       is false.IPv4
       special-use ranges are always
       imported from peers and are not controlled by this field.
       
      optional bool import_subnet_routes_with_public_ip = 14419729;
      Parameters:
      value - The importSubnetRoutesWithPublicIp to set.
      Returns:
      This builder for chaining.
    • clearImportSubnetRoutesWithPublicIp

      public NetworkPeering.Builder clearImportSubnetRoutesWithPublicIp()
       Whether subnet routes with public IP range are imported. The default value
       is false.IPv4
       special-use ranges are always
       imported from peers and are not controlled by this field.
       
      optional bool import_subnet_routes_with_public_ip = 14419729;
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Name of this peering. Provided by the client when the peering is created.
       The name must comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
       lowercase letter, and all the following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface NetworkPeeringOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of this peering. Provided by the client when the peering is created.
       The name must comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
       lowercase letter, and all the following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface NetworkPeeringOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of this peering. Provided by the client when the peering is created.
       The name must comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
       lowercase letter, and all the following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for name.
    • setName

      public NetworkPeering.Builder setName(String value)
       Name of this peering. Provided by the client when the peering is created.
       The name must comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
       lowercase letter, and all the following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public NetworkPeering.Builder clearName()
       Name of this peering. Provided by the client when the peering is created.
       The name must comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
       lowercase letter, and all the following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public NetworkPeering.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of this peering. Provided by the client when the peering is created.
       The name must comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
       lowercase letter, and all the following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasNetwork

      public boolean hasNetwork()
       The URL of the peer network. It can be either full URL or partial URL. The
       peer network may belong to a different project. If the partial URL does not
       contain project, it is assumed that the peer network is in the same project
       as the current network.
       
      optional string network = 232872494;
      Specified by:
      hasNetwork in interface NetworkPeeringOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public String getNetwork()
       The URL of the peer network. It can be either full URL or partial URL. The
       peer network may belong to a different project. If the partial URL does not
       contain project, it is assumed that the peer network is in the same project
       as the current network.
       
      optional string network = 232872494;
      Specified by:
      getNetwork in interface NetworkPeeringOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       The URL of the peer network. It can be either full URL or partial URL. The
       peer network may belong to a different project. If the partial URL does not
       contain project, it is assumed that the peer network is in the same project
       as the current network.
       
      optional string network = 232872494;
      Specified by:
      getNetworkBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public NetworkPeering.Builder setNetwork(String value)
       The URL of the peer network. It can be either full URL or partial URL. The
       peer network may belong to a different project. If the partial URL does not
       contain project, it is assumed that the peer network is in the same project
       as the current network.
       
      optional string network = 232872494;
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public NetworkPeering.Builder clearNetwork()
       The URL of the peer network. It can be either full URL or partial URL. The
       peer network may belong to a different project. If the partial URL does not
       contain project, it is assumed that the peer network is in the same project
       as the current network.
       
      optional string network = 232872494;
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public NetworkPeering.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       The URL of the peer network. It can be either full URL or partial URL. The
       peer network may belong to a different project. If the partial URL does not
       contain project, it is assumed that the peer network is in the same project
       as the current network.
       
      optional string network = 232872494;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • hasPeerMtu

      public boolean hasPeerMtu()
       Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
       
      optional int32 peer_mtu = 69584721;
      Specified by:
      hasPeerMtu in interface NetworkPeeringOrBuilder
      Returns:
      Whether the peerMtu field is set.
    • getPeerMtu

      public int getPeerMtu()
       Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
       
      optional int32 peer_mtu = 69584721;
      Specified by:
      getPeerMtu in interface NetworkPeeringOrBuilder
      Returns:
      The peerMtu.
    • setPeerMtu

      public NetworkPeering.Builder setPeerMtu(int value)
       Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
       
      optional int32 peer_mtu = 69584721;
      Parameters:
      value - The peerMtu to set.
      Returns:
      This builder for chaining.
    • clearPeerMtu

      public NetworkPeering.Builder clearPeerMtu()
       Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
       
      optional int32 peer_mtu = 69584721;
      Returns:
      This builder for chaining.
    • hasStackType

      public boolean hasStackType()
       Which IP version(s) of traffic and routes are allowed to be imported or
       exported between peer networks. The default value is IPV4_ONLY.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Specified by:
      hasStackType in interface NetworkPeeringOrBuilder
      Returns:
      Whether the stackType field is set.
    • getStackType

      public String getStackType()
       Which IP version(s) of traffic and routes are allowed to be imported or
       exported between peer networks. The default value is IPV4_ONLY.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Specified by:
      getStackType in interface NetworkPeeringOrBuilder
      Returns:
      The stackType.
    • getStackTypeBytes

      public com.google.protobuf.ByteString getStackTypeBytes()
       Which IP version(s) of traffic and routes are allowed to be imported or
       exported between peer networks. The default value is IPV4_ONLY.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Specified by:
      getStackTypeBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for stackType.
    • setStackType

      public NetworkPeering.Builder setStackType(String value)
       Which IP version(s) of traffic and routes are allowed to be imported or
       exported between peer networks. The default value is IPV4_ONLY.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Parameters:
      value - The stackType to set.
      Returns:
      This builder for chaining.
    • clearStackType

      public NetworkPeering.Builder clearStackType()
       Which IP version(s) of traffic and routes are allowed to be imported or
       exported between peer networks. The default value is IPV4_ONLY.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Returns:
      This builder for chaining.
    • setStackTypeBytes

      public NetworkPeering.Builder setStackTypeBytes(com.google.protobuf.ByteString value)
       Which IP version(s) of traffic and routes are allowed to be imported or
       exported between peer networks. The default value is IPV4_ONLY.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Parameters:
      value - The bytes for stackType to set.
      Returns:
      This builder for chaining.
    • hasState

      public boolean hasState()
       Output only. [Output Only] State for the peering.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      hasState in interface NetworkPeeringOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public String getState()
       Output only. [Output Only] State for the peering.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getState in interface NetworkPeeringOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       Output only. [Output Only] State for the peering.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getStateBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for state.
    • setState

      public NetworkPeering.Builder setState(String value)
       Output only. [Output Only] State for the peering.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public NetworkPeering.Builder clearState()
       Output only. [Output Only] State for the peering.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      This builder for chaining.
    • setStateBytes

      public NetworkPeering.Builder setStateBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] State for the peering.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The bytes for state to set.
      Returns:
      This builder for chaining.
    • hasStateDetails

      public boolean hasStateDetails()
       Output only. [Output Only] Details about the current state of the peering.
       
      optional string state_details = 95566996;
      Specified by:
      hasStateDetails in interface NetworkPeeringOrBuilder
      Returns:
      Whether the stateDetails field is set.
    • getStateDetails

      public String getStateDetails()
       Output only. [Output Only] Details about the current state of the peering.
       
      optional string state_details = 95566996;
      Specified by:
      getStateDetails in interface NetworkPeeringOrBuilder
      Returns:
      The stateDetails.
    • getStateDetailsBytes

      public com.google.protobuf.ByteString getStateDetailsBytes()
       Output only. [Output Only] Details about the current state of the peering.
       
      optional string state_details = 95566996;
      Specified by:
      getStateDetailsBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for stateDetails.
    • setStateDetails

      public NetworkPeering.Builder setStateDetails(String value)
       Output only. [Output Only] Details about the current state of the peering.
       
      optional string state_details = 95566996;
      Parameters:
      value - The stateDetails to set.
      Returns:
      This builder for chaining.
    • clearStateDetails

      public NetworkPeering.Builder clearStateDetails()
       Output only. [Output Only] Details about the current state of the peering.
       
      optional string state_details = 95566996;
      Returns:
      This builder for chaining.
    • setStateDetailsBytes

      public NetworkPeering.Builder setStateDetailsBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Details about the current state of the peering.
       
      optional string state_details = 95566996;
      Parameters:
      value - The bytes for stateDetails to set.
      Returns:
      This builder for chaining.
    • hasUpdateStrategy

      public boolean hasUpdateStrategy()
       The update strategy determines the semantics for updates and deletes to the
       peering connection configuration.
       Check the UpdateStrategy enum for the list of possible values.
       
      optional string update_strategy = 6123049;
      Specified by:
      hasUpdateStrategy in interface NetworkPeeringOrBuilder
      Returns:
      Whether the updateStrategy field is set.
    • getUpdateStrategy

      public String getUpdateStrategy()
       The update strategy determines the semantics for updates and deletes to the
       peering connection configuration.
       Check the UpdateStrategy enum for the list of possible values.
       
      optional string update_strategy = 6123049;
      Specified by:
      getUpdateStrategy in interface NetworkPeeringOrBuilder
      Returns:
      The updateStrategy.
    • getUpdateStrategyBytes

      public com.google.protobuf.ByteString getUpdateStrategyBytes()
       The update strategy determines the semantics for updates and deletes to the
       peering connection configuration.
       Check the UpdateStrategy enum for the list of possible values.
       
      optional string update_strategy = 6123049;
      Specified by:
      getUpdateStrategyBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for updateStrategy.
    • setUpdateStrategy

      public NetworkPeering.Builder setUpdateStrategy(String value)
       The update strategy determines the semantics for updates and deletes to the
       peering connection configuration.
       Check the UpdateStrategy enum for the list of possible values.
       
      optional string update_strategy = 6123049;
      Parameters:
      value - The updateStrategy to set.
      Returns:
      This builder for chaining.
    • clearUpdateStrategy

      public NetworkPeering.Builder clearUpdateStrategy()
       The update strategy determines the semantics for updates and deletes to the
       peering connection configuration.
       Check the UpdateStrategy enum for the list of possible values.
       
      optional string update_strategy = 6123049;
      Returns:
      This builder for chaining.
    • setUpdateStrategyBytes

      public NetworkPeering.Builder setUpdateStrategyBytes(com.google.protobuf.ByteString value)
       The update strategy determines the semantics for updates and deletes to the
       peering connection configuration.
       Check the UpdateStrategy enum for the list of possible values.
       
      optional string update_strategy = 6123049;
      Parameters:
      value - The bytes for updateStrategy to set.
      Returns:
      This builder for chaining.