Class ExpCaveat.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExpCaveat.Builder>
com.authzed.api.v1.ExpCaveat.Builder
All Implemented Interfaces:
ExpCaveatOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExpCaveat

public static final class ExpCaveat.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExpCaveat.Builder> implements ExpCaveatOrBuilder
 ExpCaveat is the representation of a caveat in the schema.
 
Protobuf type authzed.api.v1.ExpCaveat
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExpCaveat.Builder>
    • clear

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

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

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

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

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

      public ExpCaveat.Builder mergeFrom(ExpCaveat other)
    • isInitialized

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

      public ExpCaveat.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<ExpCaveat.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface ExpCaveatOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface ExpCaveatOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExpCaveat.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExpCaveat.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExpCaveat.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getComment

      public String getComment()
       comment is a human-readable comments on the caveat. Will include
       delimiter characters.
       
      string comment = 2;
      Specified by:
      getComment in interface ExpCaveatOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       comment is a human-readable comments on the caveat. Will include
       delimiter characters.
       
      string comment = 2;
      Specified by:
      getCommentBytes in interface ExpCaveatOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public ExpCaveat.Builder setComment(String value)
       comment is a human-readable comments on the caveat. Will include
       delimiter characters.
       
      string comment = 2;
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public ExpCaveat.Builder clearComment()
       comment is a human-readable comments on the caveat. Will include
       delimiter characters.
       
      string comment = 2;
      Returns:
      This builder for chaining.
    • setCommentBytes

      public ExpCaveat.Builder setCommentBytes(com.google.protobuf.ByteString value)
       comment is a human-readable comments on the caveat. Will include
       delimiter characters.
       
      string comment = 2;
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.
    • getParametersList

      public List<ExpCaveatParameter> getParametersList()
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
      Specified by:
      getParametersList in interface ExpCaveatOrBuilder
    • getParametersCount

      public int getParametersCount()
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
      Specified by:
      getParametersCount in interface ExpCaveatOrBuilder
    • getParameters

      public ExpCaveatParameter getParameters(int index)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
      Specified by:
      getParameters in interface ExpCaveatOrBuilder
    • setParameters

      public ExpCaveat.Builder setParameters(int index, ExpCaveatParameter value)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • setParameters

      public ExpCaveat.Builder setParameters(int index, ExpCaveatParameter.Builder builderForValue)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • addParameters

      public ExpCaveat.Builder addParameters(ExpCaveatParameter value)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • addParameters

      public ExpCaveat.Builder addParameters(int index, ExpCaveatParameter value)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • addParameters

      public ExpCaveat.Builder addParameters(ExpCaveatParameter.Builder builderForValue)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • addParameters

      public ExpCaveat.Builder addParameters(int index, ExpCaveatParameter.Builder builderForValue)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • addAllParameters

      public ExpCaveat.Builder addAllParameters(Iterable<? extends ExpCaveatParameter> values)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • clearParameters

      public ExpCaveat.Builder clearParameters()
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • removeParameters

      public ExpCaveat.Builder removeParameters(int index)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • getParametersBuilder

      public ExpCaveatParameter.Builder getParametersBuilder(int index)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • getParametersOrBuilder

      public ExpCaveatParameterOrBuilder getParametersOrBuilder(int index)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
      Specified by:
      getParametersOrBuilder in interface ExpCaveatOrBuilder
    • getParametersOrBuilderList

      public List<? extends ExpCaveatParameterOrBuilder> getParametersOrBuilderList()
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
      Specified by:
      getParametersOrBuilderList in interface ExpCaveatOrBuilder
    • addParametersBuilder

      public ExpCaveatParameter.Builder addParametersBuilder()
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • addParametersBuilder

      public ExpCaveatParameter.Builder addParametersBuilder(int index)
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • getParametersBuilderList

      public List<ExpCaveatParameter.Builder> getParametersBuilderList()
      repeated .authzed.api.v1.ExpCaveatParameter parameters = 3;
    • getExpression

      public String getExpression()
      string expression = 4;
      Specified by:
      getExpression in interface ExpCaveatOrBuilder
      Returns:
      The expression.
    • getExpressionBytes

      public com.google.protobuf.ByteString getExpressionBytes()
      string expression = 4;
      Specified by:
      getExpressionBytes in interface ExpCaveatOrBuilder
      Returns:
      The bytes for expression.
    • setExpression

      public ExpCaveat.Builder setExpression(String value)
      string expression = 4;
      Parameters:
      value - The expression to set.
      Returns:
      This builder for chaining.
    • clearExpression

      public ExpCaveat.Builder clearExpression()
      string expression = 4;
      Returns:
      This builder for chaining.
    • setExpressionBytes

      public ExpCaveat.Builder setExpressionBytes(com.google.protobuf.ByteString value)
      string expression = 4;
      Parameters:
      value - The bytes for expression to set.
      Returns:
      This builder for chaining.