Class AppConnection.Gateway.Builder

  • All Implemented Interfaces:
    AppConnection.GatewayOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AppConnection.Gateway

    public static final class AppConnection.Gateway.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AppConnection.Gateway.Builder>
    implements AppConnection.GatewayOrBuilder
     Gateway represents a user facing component that serves as an entrance to
     enable connectivity.
     
    Protobuf type google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway
    • 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<AppConnection.Gateway.Builder>
      • clear

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

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

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

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

        public AppConnection.Gateway.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<AppConnection.Gateway.Builder>
      • clearField

        public AppConnection.Gateway.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<AppConnection.Gateway.Builder>
      • clearOneof

        public AppConnection.Gateway.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<AppConnection.Gateway.Builder>
      • setRepeatedField

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

        public AppConnection.Gateway.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<AppConnection.Gateway.Builder>
      • isInitialized

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

        public AppConnection.Gateway.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<AppConnection.Gateway.Builder>
        Throws:
        IOException
      • getTypeValue

        public int getTypeValue()
         Required. The type of hosting used by the gateway.
         
        .google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeValue in interface AppConnection.GatewayOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public AppConnection.Gateway.Builder setTypeValue​(int value)
         Required. The type of hosting used by the gateway.
         
        .google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public AppConnection.Gateway.Type getType()
         Required. The type of hosting used by the gateway.
         
        .google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getType in interface AppConnection.GatewayOrBuilder
        Returns:
        The type.
      • setType

        public AppConnection.Gateway.Builder setType​(AppConnection.Gateway.Type value)
         Required. The type of hosting used by the gateway.
         
        .google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public AppConnection.Gateway.Builder clearType()
         Required. The type of hosting used by the gateway.
         
        .google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getUri

        public String getUri()
         Output only. Server-defined URI for this resource.
         
        string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUri in interface AppConnection.GatewayOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Output only. Server-defined URI for this resource.
         
        string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUriBytes in interface AppConnection.GatewayOrBuilder
        Returns:
        The bytes for uri.
      • setUri

        public AppConnection.Gateway.Builder setUri​(String value)
         Output only. Server-defined URI for this resource.
         
        string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public AppConnection.Gateway.Builder clearUri()
         Output only. Server-defined URI for this resource.
         
        string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUriBytes

        public AppConnection.Gateway.Builder setUriBytes​(com.google.protobuf.ByteString value)
         Output only. Server-defined URI for this resource.
         
        string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.
      • getIngressPort

        public int getIngressPort()
         Output only. Ingress port reserved on the gateways for this
         AppConnection, if not specified or zero, the default port is 19443.
         
        int32 ingress_port = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIngressPort in interface AppConnection.GatewayOrBuilder
        Returns:
        The ingressPort.
      • setIngressPort

        public AppConnection.Gateway.Builder setIngressPort​(int value)
         Output only. Ingress port reserved on the gateways for this
         AppConnection, if not specified or zero, the default port is 19443.
         
        int32 ingress_port = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The ingressPort to set.
        Returns:
        This builder for chaining.
      • clearIngressPort

        public AppConnection.Gateway.Builder clearIngressPort()
         Output only. Ingress port reserved on the gateways for this
         AppConnection, if not specified or zero, the default port is 19443.
         
        int32 ingress_port = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getAppGateway

        public String getAppGateway()
         Required. AppGateway name in following format:
         `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
         
        string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getAppGateway in interface AppConnection.GatewayOrBuilder
        Returns:
        The appGateway.
      • getAppGatewayBytes

        public com.google.protobuf.ByteString getAppGatewayBytes()
         Required. AppGateway name in following format:
         `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
         
        string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getAppGatewayBytes in interface AppConnection.GatewayOrBuilder
        Returns:
        The bytes for appGateway.
      • setAppGateway

        public AppConnection.Gateway.Builder setAppGateway​(String value)
         Required. AppGateway name in following format:
         `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
         
        string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The appGateway to set.
        Returns:
        This builder for chaining.
      • clearAppGateway

        public AppConnection.Gateway.Builder clearAppGateway()
         Required. AppGateway name in following format:
         `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
         
        string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setAppGatewayBytes

        public AppConnection.Gateway.Builder setAppGatewayBytes​(com.google.protobuf.ByteString value)
         Required. AppGateway name in following format:
         `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
         
        string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for appGateway to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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