Class GatewayConfig.Builder

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

    public static final class GatewayConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
    implements GatewayConfigOrBuilder
     Gateway-related configuration and state.
     
    Protobuf type google.cloud.iot.v1.GatewayConfig
    • 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<GatewayConfig.Builder>
      • clear

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

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

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

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

        public GatewayConfig.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<GatewayConfig.Builder>
      • setField

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

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

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

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

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

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

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

        public GatewayConfig.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<GatewayConfig.Builder>
        Throws:
        IOException
      • getGatewayTypeValue

        public int getGatewayTypeValue()
         Indicates whether the device is a gateway.
         
        .google.cloud.iot.v1.GatewayType gateway_type = 1;
        Specified by:
        getGatewayTypeValue in interface GatewayConfigOrBuilder
        Returns:
        The enum numeric value on the wire for gatewayType.
      • setGatewayTypeValue

        public GatewayConfig.Builder setGatewayTypeValue​(int value)
         Indicates whether the device is a gateway.
         
        .google.cloud.iot.v1.GatewayType gateway_type = 1;
        Parameters:
        value - The enum numeric value on the wire for gatewayType to set.
        Returns:
        This builder for chaining.
      • getGatewayType

        public GatewayType getGatewayType()
         Indicates whether the device is a gateway.
         
        .google.cloud.iot.v1.GatewayType gateway_type = 1;
        Specified by:
        getGatewayType in interface GatewayConfigOrBuilder
        Returns:
        The gatewayType.
      • setGatewayType

        public GatewayConfig.Builder setGatewayType​(GatewayType value)
         Indicates whether the device is a gateway.
         
        .google.cloud.iot.v1.GatewayType gateway_type = 1;
        Parameters:
        value - The gatewayType to set.
        Returns:
        This builder for chaining.
      • clearGatewayType

        public GatewayConfig.Builder clearGatewayType()
         Indicates whether the device is a gateway.
         
        .google.cloud.iot.v1.GatewayType gateway_type = 1;
        Returns:
        This builder for chaining.
      • getGatewayAuthMethodValue

        public int getGatewayAuthMethodValue()
         Indicates how to authorize and/or authenticate devices to access the
         gateway.
         
        .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;
        Specified by:
        getGatewayAuthMethodValue in interface GatewayConfigOrBuilder
        Returns:
        The enum numeric value on the wire for gatewayAuthMethod.
      • setGatewayAuthMethodValue

        public GatewayConfig.Builder setGatewayAuthMethodValue​(int value)
         Indicates how to authorize and/or authenticate devices to access the
         gateway.
         
        .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;
        Parameters:
        value - The enum numeric value on the wire for gatewayAuthMethod to set.
        Returns:
        This builder for chaining.
      • getGatewayAuthMethod

        public GatewayAuthMethod getGatewayAuthMethod()
         Indicates how to authorize and/or authenticate devices to access the
         gateway.
         
        .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;
        Specified by:
        getGatewayAuthMethod in interface GatewayConfigOrBuilder
        Returns:
        The gatewayAuthMethod.
      • setGatewayAuthMethod

        public GatewayConfig.Builder setGatewayAuthMethod​(GatewayAuthMethod value)
         Indicates how to authorize and/or authenticate devices to access the
         gateway.
         
        .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;
        Parameters:
        value - The gatewayAuthMethod to set.
        Returns:
        This builder for chaining.
      • clearGatewayAuthMethod

        public GatewayConfig.Builder clearGatewayAuthMethod()
         Indicates how to authorize and/or authenticate devices to access the
         gateway.
         
        .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;
        Returns:
        This builder for chaining.
      • getLastAccessedGatewayId

        public String getLastAccessedGatewayId()
         [Output only] The ID of the gateway the device accessed most recently.
         
        string last_accessed_gateway_id = 3;
        Specified by:
        getLastAccessedGatewayId in interface GatewayConfigOrBuilder
        Returns:
        The lastAccessedGatewayId.
      • getLastAccessedGatewayIdBytes

        public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes()
         [Output only] The ID of the gateway the device accessed most recently.
         
        string last_accessed_gateway_id = 3;
        Specified by:
        getLastAccessedGatewayIdBytes in interface GatewayConfigOrBuilder
        Returns:
        The bytes for lastAccessedGatewayId.
      • setLastAccessedGatewayId

        public GatewayConfig.Builder setLastAccessedGatewayId​(String value)
         [Output only] The ID of the gateway the device accessed most recently.
         
        string last_accessed_gateway_id = 3;
        Parameters:
        value - The lastAccessedGatewayId to set.
        Returns:
        This builder for chaining.
      • clearLastAccessedGatewayId

        public GatewayConfig.Builder clearLastAccessedGatewayId()
         [Output only] The ID of the gateway the device accessed most recently.
         
        string last_accessed_gateway_id = 3;
        Returns:
        This builder for chaining.
      • setLastAccessedGatewayIdBytes

        public GatewayConfig.Builder setLastAccessedGatewayIdBytes​(com.google.protobuf.ByteString value)
         [Output only] The ID of the gateway the device accessed most recently.
         
        string last_accessed_gateway_id = 3;
        Parameters:
        value - The bytes for lastAccessedGatewayId to set.
        Returns:
        This builder for chaining.
      • hasLastAccessedGatewayTime

        public boolean hasLastAccessedGatewayTime()
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
        Specified by:
        hasLastAccessedGatewayTime in interface GatewayConfigOrBuilder
        Returns:
        Whether the lastAccessedGatewayTime field is set.
      • getLastAccessedGatewayTime

        public com.google.protobuf.Timestamp getLastAccessedGatewayTime()
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
        Specified by:
        getLastAccessedGatewayTime in interface GatewayConfigOrBuilder
        Returns:
        The lastAccessedGatewayTime.
      • setLastAccessedGatewayTime

        public GatewayConfig.Builder setLastAccessedGatewayTime​(com.google.protobuf.Timestamp value)
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      • setLastAccessedGatewayTime

        public GatewayConfig.Builder setLastAccessedGatewayTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      • mergeLastAccessedGatewayTime

        public GatewayConfig.Builder mergeLastAccessedGatewayTime​(com.google.protobuf.Timestamp value)
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      • clearLastAccessedGatewayTime

        public GatewayConfig.Builder clearLastAccessedGatewayTime()
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      • getLastAccessedGatewayTimeBuilder

        public com.google.protobuf.Timestamp.Builder getLastAccessedGatewayTimeBuilder()
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      • getLastAccessedGatewayTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilder()
         [Output only] The most recent time at which the device accessed the gateway
         specified in `last_accessed_gateway`.
         
        .google.protobuf.Timestamp last_accessed_gateway_time = 4;
        Specified by:
        getLastAccessedGatewayTimeOrBuilder in interface GatewayConfigOrBuilder
      • setUnknownFields

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

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