Class NetworksAddPeeringRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NetworksAddPeeringRequest.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.GeneratedMessageV3.Builder<NetworksAddPeeringRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public NetworksAddPeeringRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworksAddPeeringRequest.Builder>
      • isInitialized

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

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

        public boolean hasAutoCreateRoutes()
         This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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 is ACTIVE.
         
        optional bool auto_create_routes = 57454941;
        Specified by:
        hasAutoCreateRoutes in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        Whether the autoCreateRoutes field is set.
      • getAutoCreateRoutes

        public boolean getAutoCreateRoutes()
         This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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 is ACTIVE.
         
        optional bool auto_create_routes = 57454941;
        Specified by:
        getAutoCreateRoutes in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        The autoCreateRoutes.
      • setAutoCreateRoutes

        public NetworksAddPeeringRequest.Builder setAutoCreateRoutes​(boolean value)
         This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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 is ACTIVE.
         
        optional bool auto_create_routes = 57454941;
        Parameters:
        value - The autoCreateRoutes to set.
        Returns:
        This builder for chaining.
      • clearAutoCreateRoutes

        public NetworksAddPeeringRequest.Builder clearAutoCreateRoutes()
         This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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 is ACTIVE.
         
        optional bool auto_create_routes = 57454941;
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         Name of the peering, which should conform to RFC1035.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        Whether the name field is set.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the peering, which should conform to RFC1035.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public NetworksAddPeeringRequest.Builder setName​(String value)
         Name of the peering, which should conform to RFC1035.
         
        optional string name = 3373707;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public NetworksAddPeeringRequest.Builder clearName()
         Name of the peering, which should conform to RFC1035.
         
        optional string name = 3373707;
        Returns:
        This builder for chaining.
      • setNameBytes

        public NetworksAddPeeringRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the peering, which should conform to RFC1035.
         
        optional string name = 3373707;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNetworkPeering

        public boolean hasNetworkPeering()
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
        Specified by:
        hasNetworkPeering in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        Whether the networkPeering field is set.
      • getNetworkPeering

        public NetworkPeering getNetworkPeering()
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
        Specified by:
        getNetworkPeering in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        The networkPeering.
      • setNetworkPeering

        public NetworksAddPeeringRequest.Builder setNetworkPeering​(NetworkPeering value)
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
      • setNetworkPeering

        public NetworksAddPeeringRequest.Builder setNetworkPeering​(NetworkPeering.Builder builderForValue)
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
      • mergeNetworkPeering

        public NetworksAddPeeringRequest.Builder mergeNetworkPeering​(NetworkPeering value)
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
      • clearNetworkPeering

        public NetworksAddPeeringRequest.Builder clearNetworkPeering()
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
      • getNetworkPeeringBuilder

        public NetworkPeering.Builder getNetworkPeeringBuilder()
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
      • getNetworkPeeringOrBuilder

        public NetworkPeeringOrBuilder getNetworkPeeringOrBuilder()
         Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
         
        optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;
        Specified by:
        getNetworkPeeringOrBuilder in interface NetworksAddPeeringRequestOrBuilder
      • hasPeerNetwork

        public boolean hasPeerNetwork()
         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 peer_network = 500625489;
        Specified by:
        hasPeerNetwork in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        Whether the peerNetwork field is set.
      • getPeerNetwork

        public String getPeerNetwork()
         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 peer_network = 500625489;
        Specified by:
        getPeerNetwork in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        The peerNetwork.
      • getPeerNetworkBytes

        public com.google.protobuf.ByteString getPeerNetworkBytes()
         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 peer_network = 500625489;
        Specified by:
        getPeerNetworkBytes in interface NetworksAddPeeringRequestOrBuilder
        Returns:
        The bytes for peerNetwork.
      • setPeerNetwork

        public NetworksAddPeeringRequest.Builder setPeerNetwork​(String value)
         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 peer_network = 500625489;
        Parameters:
        value - The peerNetwork to set.
        Returns:
        This builder for chaining.
      • clearPeerNetwork

        public NetworksAddPeeringRequest.Builder clearPeerNetwork()
         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 peer_network = 500625489;
        Returns:
        This builder for chaining.
      • setPeerNetworkBytes

        public NetworksAddPeeringRequest.Builder setPeerNetworkBytes​(com.google.protobuf.ByteString value)
         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 peer_network = 500625489;
        Parameters:
        value - The bytes for peerNetwork to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NetworksAddPeeringRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworksAddPeeringRequest.Builder>
      • mergeUnknownFields

        public final NetworksAddPeeringRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworksAddPeeringRequest.Builder>