Class NetworkRoutingConfig.Builder

  • All Implemented Interfaces:
    NetworkRoutingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    NetworkRoutingConfig

    public static final class NetworkRoutingConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder>
    implements NetworkRoutingConfigOrBuilder
     A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.
     
    Protobuf type google.cloud.compute.v1.NetworkRoutingConfig
    • 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<NetworkRoutingConfig.Builder>
      • clear

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

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

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

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

        public NetworkRoutingConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder>
      • setField

        public NetworkRoutingConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder>
      • clearField

        public NetworkRoutingConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder>
      • clearOneof

        public NetworkRoutingConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder>
      • setRepeatedField

        public NetworkRoutingConfig.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<NetworkRoutingConfig.Builder>
      • addRepeatedField

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

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

        public NetworkRoutingConfig.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<NetworkRoutingConfig.Builder>
        Throws:
        IOException
      • hasRoutingMode

        public boolean hasRoutingMode()
         The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
         Check the RoutingMode enum for the list of possible values.
         
        optional string routing_mode = 475143548;
        Specified by:
        hasRoutingMode in interface NetworkRoutingConfigOrBuilder
        Returns:
        Whether the routingMode field is set.
      • getRoutingMode

        public String getRoutingMode()
         The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
         Check the RoutingMode enum for the list of possible values.
         
        optional string routing_mode = 475143548;
        Specified by:
        getRoutingMode in interface NetworkRoutingConfigOrBuilder
        Returns:
        The routingMode.
      • getRoutingModeBytes

        public com.google.protobuf.ByteString getRoutingModeBytes()
         The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
         Check the RoutingMode enum for the list of possible values.
         
        optional string routing_mode = 475143548;
        Specified by:
        getRoutingModeBytes in interface NetworkRoutingConfigOrBuilder
        Returns:
        The bytes for routingMode.
      • setRoutingMode

        public NetworkRoutingConfig.Builder setRoutingMode​(String value)
         The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
         Check the RoutingMode enum for the list of possible values.
         
        optional string routing_mode = 475143548;
        Parameters:
        value - The routingMode to set.
        Returns:
        This builder for chaining.
      • clearRoutingMode

        public NetworkRoutingConfig.Builder clearRoutingMode()
         The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
         Check the RoutingMode enum for the list of possible values.
         
        optional string routing_mode = 475143548;
        Returns:
        This builder for chaining.
      • setRoutingModeBytes

        public NetworkRoutingConfig.Builder setRoutingModeBytes​(com.google.protobuf.ByteString value)
         The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
         Check the RoutingMode enum for the list of possible values.
         
        optional string routing_mode = 475143548;
        Parameters:
        value - The bytes for routingMode to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NetworkRoutingConfig.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<NetworkRoutingConfig.Builder>
      • mergeUnknownFields

        public final NetworkRoutingConfig.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<NetworkRoutingConfig.Builder>