Class ConnectivityRule.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ConnectivityRuleOrBuilder, java.lang.Cloneable
    Enclosing class:
    ConnectivityRule

    public static final class ConnectivityRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConnectivityRule.Builder>
    implements ConnectivityRuleOrBuilder
    Protobuf type temporal.api.cloud.connectivityrule.v1.ConnectivityRule
    • 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<ConnectivityRule.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ConnectivityRule.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.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<ConnectivityRule.Builder>
        Throws:
        java.io.IOException
      • getId

        public java.lang.String getId()
         The id of the private connectivity rule.
         
        string id = 1;
        Specified by:
        getId in interface ConnectivityRuleOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         The id of the private connectivity rule.
         
        string id = 1;
        Specified by:
        getIdBytes in interface ConnectivityRuleOrBuilder
        Returns:
        The bytes for id.
      • setId

        public ConnectivityRule.Builder setId​(java.lang.String value)
         The id of the private connectivity rule.
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public ConnectivityRule.Builder clearId()
         The id of the private connectivity rule.
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public ConnectivityRule.Builder setIdBytes​(com.google.protobuf.ByteString value)
         The id of the private connectivity rule.
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • hasSpec

        public boolean hasSpec()
         The connectivity rule specification.
         
        .temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec spec = 2;
        Specified by:
        hasSpec in interface ConnectivityRuleOrBuilder
        Returns:
        Whether the spec field is set.
      • clearSpec

        public ConnectivityRule.Builder clearSpec()
         The connectivity rule specification.
         
        .temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec spec = 2;
      • getSpecBuilder

        public ConnectivityRuleSpec.Builder getSpecBuilder()
         The connectivity rule specification.
         
        .temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec spec = 2;
      • getResourceVersion

        public java.lang.String getResourceVersion()
         The current version of the connectivity rule specification.
         The next update operation will have to include this version.
         
        string resource_version = 4;
        Specified by:
        getResourceVersion in interface ConnectivityRuleOrBuilder
        Returns:
        The resourceVersion.
      • getResourceVersionBytes

        public com.google.protobuf.ByteString getResourceVersionBytes()
         The current version of the connectivity rule specification.
         The next update operation will have to include this version.
         
        string resource_version = 4;
        Specified by:
        getResourceVersionBytes in interface ConnectivityRuleOrBuilder
        Returns:
        The bytes for resourceVersion.
      • setResourceVersion

        public ConnectivityRule.Builder setResourceVersion​(java.lang.String value)
         The current version of the connectivity rule specification.
         The next update operation will have to include this version.
         
        string resource_version = 4;
        Parameters:
        value - The resourceVersion to set.
        Returns:
        This builder for chaining.
      • clearResourceVersion

        public ConnectivityRule.Builder clearResourceVersion()
         The current version of the connectivity rule specification.
         The next update operation will have to include this version.
         
        string resource_version = 4;
        Returns:
        This builder for chaining.
      • setResourceVersionBytes

        public ConnectivityRule.Builder setResourceVersionBytes​(com.google.protobuf.ByteString value)
         The current version of the connectivity rule specification.
         The next update operation will have to include this version.
         
        string resource_version = 4;
        Parameters:
        value - The bytes for resourceVersion to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
        .temporal.api.cloud.resource.v1.ResourceState state = 5;
        Specified by:
        getStateValue in interface ConnectivityRuleOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public ConnectivityRule.Builder setStateValue​(int value)
        .temporal.api.cloud.resource.v1.ResourceState state = 5;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • setState

        public ConnectivityRule.Builder setState​(ResourceState value)
        .temporal.api.cloud.resource.v1.ResourceState state = 5;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public ConnectivityRule.Builder clearState()
        .temporal.api.cloud.resource.v1.ResourceState state = 5;
        Returns:
        This builder for chaining.
      • getAsyncOperationId

        public java.lang.String getAsyncOperationId()
         The id of the async operation that is creating/updating/deleting the connectivity rule, if any.
         
        string async_operation_id = 6;
        Specified by:
        getAsyncOperationId in interface ConnectivityRuleOrBuilder
        Returns:
        The asyncOperationId.
      • getAsyncOperationIdBytes

        public com.google.protobuf.ByteString getAsyncOperationIdBytes()
         The id of the async operation that is creating/updating/deleting the connectivity rule, if any.
         
        string async_operation_id = 6;
        Specified by:
        getAsyncOperationIdBytes in interface ConnectivityRuleOrBuilder
        Returns:
        The bytes for asyncOperationId.
      • setAsyncOperationId

        public ConnectivityRule.Builder setAsyncOperationId​(java.lang.String value)
         The id of the async operation that is creating/updating/deleting the connectivity rule, if any.
         
        string async_operation_id = 6;
        Parameters:
        value - The asyncOperationId to set.
        Returns:
        This builder for chaining.
      • clearAsyncOperationId

        public ConnectivityRule.Builder clearAsyncOperationId()
         The id of the async operation that is creating/updating/deleting the connectivity rule, if any.
         
        string async_operation_id = 6;
        Returns:
        This builder for chaining.
      • setAsyncOperationIdBytes

        public ConnectivityRule.Builder setAsyncOperationIdBytes​(com.google.protobuf.ByteString value)
         The id of the async operation that is creating/updating/deleting the connectivity rule, if any.
         
        string async_operation_id = 6;
        Parameters:
        value - The bytes for asyncOperationId to set.
        Returns:
        This builder for chaining.
      • hasCreatedTime

        public boolean hasCreatedTime()
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
        Specified by:
        hasCreatedTime in interface ConnectivityRuleOrBuilder
        Returns:
        Whether the createdTime field is set.
      • getCreatedTime

        public com.google.protobuf.Timestamp getCreatedTime()
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
        Specified by:
        getCreatedTime in interface ConnectivityRuleOrBuilder
        Returns:
        The createdTime.
      • setCreatedTime

        public ConnectivityRule.Builder setCreatedTime​(com.google.protobuf.Timestamp value)
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
      • setCreatedTime

        public ConnectivityRule.Builder setCreatedTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
      • mergeCreatedTime

        public ConnectivityRule.Builder mergeCreatedTime​(com.google.protobuf.Timestamp value)
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
      • clearCreatedTime

        public ConnectivityRule.Builder clearCreatedTime()
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
      • getCreatedTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreatedTimeBuilder()
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
      • getCreatedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreatedTimeOrBuilder()
         The date and time when the connectivity rule was created.
         
        .google.protobuf.Timestamp created_time = 7;
        Specified by:
        getCreatedTimeOrBuilder in interface ConnectivityRuleOrBuilder
      • setUnknownFields

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

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