All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.security.access.LocationAccess Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
/*
 * Copyright 2017, Bloombox, LLC. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual property
 * of Bloombox, a California Limited Liability Corporation. Use of this code in source form
 * requires permission in writing before use or the publishing of derivative works, for
 * commercial purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: security/access/PartnerPermissions.proto

package io.bloombox.schema.security.access;

/**
 * Protobuf type {@code security.access.LocationAccess}
 */
public  final class LocationAccess extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:security.access.LocationAccess)
    LocationAccessOrBuilder {
private static final long serialVersionUID = 0L;
  // Use LocationAccess.newBuilder() to construct.
  private LocationAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private LocationAccess() {
    active_ = false;
    grantedBy_ = "";
    admin_ = false;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private LocationAccess(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 8: {

            active_ = input.readBool();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            grantedBy_ = s;
            break;
          }
          case 26: {
            io.bloombox.schema.temporal.Instant.Builder subBuilder = null;
            if (grantedAt_ != null) {
              subBuilder = grantedAt_.toBuilder();
            }
            grantedAt_ = input.readMessage(io.bloombox.schema.temporal.Instant.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(grantedAt_);
              grantedAt_ = subBuilder.buildPartial();
            }

            break;
          }
          case 800: {

            admin_ = input.readBool();
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.bloombox.schema.security.access.PartnerPermissions.internal_static_security_access_LocationAccess_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.bloombox.schema.security.access.PartnerPermissions.internal_static_security_access_LocationAccess_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.bloombox.schema.security.access.LocationAccess.class, io.bloombox.schema.security.access.LocationAccess.Builder.class);
  }

  public static final int ACTIVE_FIELD_NUMBER = 1;
  private boolean active_;
  /**
   * bool active = 1;
   */
  public boolean getActive() {
    return active_;
  }

  public static final int GRANTED_BY_FIELD_NUMBER = 2;
  private volatile java.lang.Object grantedBy_;
  /**
   * string granted_by = 2;
   */
  public java.lang.String getGrantedBy() {
    java.lang.Object ref = grantedBy_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      grantedBy_ = s;
      return s;
    }
  }
  /**
   * string granted_by = 2;
   */
  public com.google.protobuf.ByteString
      getGrantedByBytes() {
    java.lang.Object ref = grantedBy_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      grantedBy_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GRANTED_AT_FIELD_NUMBER = 3;
  private io.bloombox.schema.temporal.Instant grantedAt_;
  /**
   * .temporal.Instant granted_at = 3;
   */
  public boolean hasGrantedAt() {
    return grantedAt_ != null;
  }
  /**
   * .temporal.Instant granted_at = 3;
   */
  public io.bloombox.schema.temporal.Instant getGrantedAt() {
    return grantedAt_ == null ? io.bloombox.schema.temporal.Instant.getDefaultInstance() : grantedAt_;
  }
  /**
   * .temporal.Instant granted_at = 3;
   */
  public io.bloombox.schema.temporal.InstantOrBuilder getGrantedAtOrBuilder() {
    return getGrantedAt();
  }

  public static final int ADMIN_FIELD_NUMBER = 100;
  private boolean admin_;
  /**
   * bool admin = 100;
   */
  public boolean getAdmin() {
    return admin_;
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (active_ != false) {
      output.writeBool(1, active_);
    }
    if (!getGrantedByBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, grantedBy_);
    }
    if (grantedAt_ != null) {
      output.writeMessage(3, getGrantedAt());
    }
    if (admin_ != false) {
      output.writeBool(100, admin_);
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (active_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(1, active_);
    }
    if (!getGrantedByBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, grantedBy_);
    }
    if (grantedAt_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getGrantedAt());
    }
    if (admin_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(100, admin_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof io.bloombox.schema.security.access.LocationAccess)) {
      return super.equals(obj);
    }
    io.bloombox.schema.security.access.LocationAccess other = (io.bloombox.schema.security.access.LocationAccess) obj;

    boolean result = true;
    result = result && (getActive()
        == other.getActive());
    result = result && getGrantedBy()
        .equals(other.getGrantedBy());
    result = result && (hasGrantedAt() == other.hasGrantedAt());
    if (hasGrantedAt()) {
      result = result && getGrantedAt()
          .equals(other.getGrantedAt());
    }
    result = result && (getAdmin()
        == other.getAdmin());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ACTIVE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getActive());
    hash = (37 * hash) + GRANTED_BY_FIELD_NUMBER;
    hash = (53 * hash) + getGrantedBy().hashCode();
    if (hasGrantedAt()) {
      hash = (37 * hash) + GRANTED_AT_FIELD_NUMBER;
      hash = (53 * hash) + getGrantedAt().hashCode();
    }
    hash = (37 * hash) + ADMIN_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getAdmin());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.bloombox.schema.security.access.LocationAccess parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.bloombox.schema.security.access.LocationAccess prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code security.access.LocationAccess}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:security.access.LocationAccess)
      io.bloombox.schema.security.access.LocationAccessOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.bloombox.schema.security.access.PartnerPermissions.internal_static_security_access_LocationAccess_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.bloombox.schema.security.access.PartnerPermissions.internal_static_security_access_LocationAccess_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.bloombox.schema.security.access.LocationAccess.class, io.bloombox.schema.security.access.LocationAccess.Builder.class);
    }

    // Construct using io.bloombox.schema.security.access.LocationAccess.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      active_ = false;

      grantedBy_ = "";

      if (grantedAtBuilder_ == null) {
        grantedAt_ = null;
      } else {
        grantedAt_ = null;
        grantedAtBuilder_ = null;
      }
      admin_ = false;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.bloombox.schema.security.access.PartnerPermissions.internal_static_security_access_LocationAccess_descriptor;
    }

    public io.bloombox.schema.security.access.LocationAccess getDefaultInstanceForType() {
      return io.bloombox.schema.security.access.LocationAccess.getDefaultInstance();
    }

    public io.bloombox.schema.security.access.LocationAccess build() {
      io.bloombox.schema.security.access.LocationAccess result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public io.bloombox.schema.security.access.LocationAccess buildPartial() {
      io.bloombox.schema.security.access.LocationAccess result = new io.bloombox.schema.security.access.LocationAccess(this);
      result.active_ = active_;
      result.grantedBy_ = grantedBy_;
      if (grantedAtBuilder_ == null) {
        result.grantedAt_ = grantedAt_;
      } else {
        result.grantedAt_ = grantedAtBuilder_.build();
      }
      result.admin_ = admin_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.bloombox.schema.security.access.LocationAccess) {
        return mergeFrom((io.bloombox.schema.security.access.LocationAccess)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.bloombox.schema.security.access.LocationAccess other) {
      if (other == io.bloombox.schema.security.access.LocationAccess.getDefaultInstance()) return this;
      if (other.getActive() != false) {
        setActive(other.getActive());
      }
      if (!other.getGrantedBy().isEmpty()) {
        grantedBy_ = other.grantedBy_;
        onChanged();
      }
      if (other.hasGrantedAt()) {
        mergeGrantedAt(other.getGrantedAt());
      }
      if (other.getAdmin() != false) {
        setAdmin(other.getAdmin());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      io.bloombox.schema.security.access.LocationAccess parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.bloombox.schema.security.access.LocationAccess) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private boolean active_ ;
    /**
     * bool active = 1;
     */
    public boolean getActive() {
      return active_;
    }
    /**
     * bool active = 1;
     */
    public Builder setActive(boolean value) {
      
      active_ = value;
      onChanged();
      return this;
    }
    /**
     * bool active = 1;
     */
    public Builder clearActive() {
      
      active_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object grantedBy_ = "";
    /**
     * string granted_by = 2;
     */
    public java.lang.String getGrantedBy() {
      java.lang.Object ref = grantedBy_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        grantedBy_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string granted_by = 2;
     */
    public com.google.protobuf.ByteString
        getGrantedByBytes() {
      java.lang.Object ref = grantedBy_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        grantedBy_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string granted_by = 2;
     */
    public Builder setGrantedBy(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      grantedBy_ = value;
      onChanged();
      return this;
    }
    /**
     * string granted_by = 2;
     */
    public Builder clearGrantedBy() {
      
      grantedBy_ = getDefaultInstance().getGrantedBy();
      onChanged();
      return this;
    }
    /**
     * string granted_by = 2;
     */
    public Builder setGrantedByBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      grantedBy_ = value;
      onChanged();
      return this;
    }

    private io.bloombox.schema.temporal.Instant grantedAt_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.bloombox.schema.temporal.Instant, io.bloombox.schema.temporal.Instant.Builder, io.bloombox.schema.temporal.InstantOrBuilder> grantedAtBuilder_;
    /**
     * .temporal.Instant granted_at = 3;
     */
    public boolean hasGrantedAt() {
      return grantedAtBuilder_ != null || grantedAt_ != null;
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public io.bloombox.schema.temporal.Instant getGrantedAt() {
      if (grantedAtBuilder_ == null) {
        return grantedAt_ == null ? io.bloombox.schema.temporal.Instant.getDefaultInstance() : grantedAt_;
      } else {
        return grantedAtBuilder_.getMessage();
      }
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public Builder setGrantedAt(io.bloombox.schema.temporal.Instant value) {
      if (grantedAtBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        grantedAt_ = value;
        onChanged();
      } else {
        grantedAtBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public Builder setGrantedAt(
        io.bloombox.schema.temporal.Instant.Builder builderForValue) {
      if (grantedAtBuilder_ == null) {
        grantedAt_ = builderForValue.build();
        onChanged();
      } else {
        grantedAtBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public Builder mergeGrantedAt(io.bloombox.schema.temporal.Instant value) {
      if (grantedAtBuilder_ == null) {
        if (grantedAt_ != null) {
          grantedAt_ =
            io.bloombox.schema.temporal.Instant.newBuilder(grantedAt_).mergeFrom(value).buildPartial();
        } else {
          grantedAt_ = value;
        }
        onChanged();
      } else {
        grantedAtBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public Builder clearGrantedAt() {
      if (grantedAtBuilder_ == null) {
        grantedAt_ = null;
        onChanged();
      } else {
        grantedAt_ = null;
        grantedAtBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public io.bloombox.schema.temporal.Instant.Builder getGrantedAtBuilder() {
      
      onChanged();
      return getGrantedAtFieldBuilder().getBuilder();
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    public io.bloombox.schema.temporal.InstantOrBuilder getGrantedAtOrBuilder() {
      if (grantedAtBuilder_ != null) {
        return grantedAtBuilder_.getMessageOrBuilder();
      } else {
        return grantedAt_ == null ?
            io.bloombox.schema.temporal.Instant.getDefaultInstance() : grantedAt_;
      }
    }
    /**
     * .temporal.Instant granted_at = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.bloombox.schema.temporal.Instant, io.bloombox.schema.temporal.Instant.Builder, io.bloombox.schema.temporal.InstantOrBuilder> 
        getGrantedAtFieldBuilder() {
      if (grantedAtBuilder_ == null) {
        grantedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.bloombox.schema.temporal.Instant, io.bloombox.schema.temporal.Instant.Builder, io.bloombox.schema.temporal.InstantOrBuilder>(
                getGrantedAt(),
                getParentForChildren(),
                isClean());
        grantedAt_ = null;
      }
      return grantedAtBuilder_;
    }

    private boolean admin_ ;
    /**
     * bool admin = 100;
     */
    public boolean getAdmin() {
      return admin_;
    }
    /**
     * bool admin = 100;
     */
    public Builder setAdmin(boolean value) {
      
      admin_ = value;
      onChanged();
      return this;
    }
    /**
     * bool admin = 100;
     */
    public Builder clearAdmin() {
      
      admin_ = false;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:security.access.LocationAccess)
  }

  // @@protoc_insertion_point(class_scope:security.access.LocationAccess)
  private static final io.bloombox.schema.security.access.LocationAccess DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.bloombox.schema.security.access.LocationAccess();
  }

  public static io.bloombox.schema.security.access.LocationAccess getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    public LocationAccess parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return new LocationAccess(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  public io.bloombox.schema.security.access.LocationAccess getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy