Class DataAccessLabel.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataAccessLabel.Builder>
com.google.cloud.chronicle.v1.DataAccessLabel.Builder
All Implemented Interfaces:
DataAccessLabelOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataAccessLabel

public static final class DataAccessLabel.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataAccessLabel.Builder> implements DataAccessLabelOrBuilder
 A DataAccessLabel is a label on events to define user access to data.
 
Protobuf type google.cloud.chronicle.v1.DataAccessLabel
  • 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<DataAccessLabel.Builder>
    • clear

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

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

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

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

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

      public DataAccessLabel.Builder mergeFrom(DataAccessLabel other)
    • isInitialized

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

      public DataAccessLabel.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<DataAccessLabel.Builder>
      Throws:
      IOException
    • getDefinitionCase

      public DataAccessLabel.DefinitionCase getDefinitionCase()
      Specified by:
      getDefinitionCase in interface DataAccessLabelOrBuilder
    • clearDefinition

      public DataAccessLabel.Builder clearDefinition()
    • hasUdmQuery

      public boolean hasUdmQuery()
       A UDM query over event data.
       
      string udm_query = 3;
      Specified by:
      hasUdmQuery in interface DataAccessLabelOrBuilder
      Returns:
      Whether the udmQuery field is set.
    • getUdmQuery

      public String getUdmQuery()
       A UDM query over event data.
       
      string udm_query = 3;
      Specified by:
      getUdmQuery in interface DataAccessLabelOrBuilder
      Returns:
      The udmQuery.
    • getUdmQueryBytes

      public com.google.protobuf.ByteString getUdmQueryBytes()
       A UDM query over event data.
       
      string udm_query = 3;
      Specified by:
      getUdmQueryBytes in interface DataAccessLabelOrBuilder
      Returns:
      The bytes for udmQuery.
    • setUdmQuery

      public DataAccessLabel.Builder setUdmQuery(String value)
       A UDM query over event data.
       
      string udm_query = 3;
      Parameters:
      value - The udmQuery to set.
      Returns:
      This builder for chaining.
    • clearUdmQuery

      public DataAccessLabel.Builder clearUdmQuery()
       A UDM query over event data.
       
      string udm_query = 3;
      Returns:
      This builder for chaining.
    • setUdmQueryBytes

      public DataAccessLabel.Builder setUdmQueryBytes(com.google.protobuf.ByteString value)
       A UDM query over event data.
       
      string udm_query = 3;
      Parameters:
      value - The bytes for udmQuery to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       The unique resource name of the data access label.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface DataAccessLabelOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique resource name of the data access label.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface DataAccessLabelOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DataAccessLabel.Builder setName(String value)
       The unique resource name of the data access label.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DataAccessLabel.Builder clearName()
       The unique resource name of the data access label.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public DataAccessLabel.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique resource name of the data access label.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Output only. The short name displayed for the label as it appears on event
       data.
       
      string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface DataAccessLabelOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. The short name displayed for the label as it appears on event
       data.
       
      string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface DataAccessLabelOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DataAccessLabel.Builder setDisplayName(String value)
       Output only. The short name displayed for the label as it appears on event
       data.
       
      string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DataAccessLabel.Builder clearDisplayName()
       Output only. The short name displayed for the label as it appears on event
       data.
       
      string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DataAccessLabel.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. The short name displayed for the label as it appears on event
       data.
       
      string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DataAccessLabelOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DataAccessLabelOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DataAccessLabel.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DataAccessLabel.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DataAccessLabel.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DataAccessLabel.Builder clearCreateTime()
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the data access label was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DataAccessLabelOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DataAccessLabelOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DataAccessLabelOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public DataAccessLabel.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public DataAccessLabel.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public DataAccessLabel.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public DataAccessLabel.Builder clearUpdateTime()
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time at which the data access label was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DataAccessLabelOrBuilder
    • getAuthor

      public String getAuthor()
       Output only. The user who created the data access label.
       
      string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAuthor in interface DataAccessLabelOrBuilder
      Returns:
      The author.
    • getAuthorBytes

      public com.google.protobuf.ByteString getAuthorBytes()
       Output only. The user who created the data access label.
       
      string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAuthorBytes in interface DataAccessLabelOrBuilder
      Returns:
      The bytes for author.
    • setAuthor

      public DataAccessLabel.Builder setAuthor(String value)
       Output only. The user who created the data access label.
       
      string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The author to set.
      Returns:
      This builder for chaining.
    • clearAuthor

      public DataAccessLabel.Builder clearAuthor()
       Output only. The user who created the data access label.
       
      string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAuthorBytes

      public DataAccessLabel.Builder setAuthorBytes(com.google.protobuf.ByteString value)
       Output only. The user who created the data access label.
       
      string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for author to set.
      Returns:
      This builder for chaining.
    • getLastEditor

      public String getLastEditor()
       Output only. The user who last updated the data access label.
       
      string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastEditor in interface DataAccessLabelOrBuilder
      Returns:
      The lastEditor.
    • getLastEditorBytes

      public com.google.protobuf.ByteString getLastEditorBytes()
       Output only. The user who last updated the data access label.
       
      string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastEditorBytes in interface DataAccessLabelOrBuilder
      Returns:
      The bytes for lastEditor.
    • setLastEditor

      public DataAccessLabel.Builder setLastEditor(String value)
       Output only. The user who last updated the data access label.
       
      string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The lastEditor to set.
      Returns:
      This builder for chaining.
    • clearLastEditor

      public DataAccessLabel.Builder clearLastEditor()
       Output only. The user who last updated the data access label.
       
      string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLastEditorBytes

      public DataAccessLabel.Builder setLastEditorBytes(com.google.protobuf.ByteString value)
       Output only. The user who last updated the data access label.
       
      string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for lastEditor to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. A description of the data access label for a human reader.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface DataAccessLabelOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A description of the data access label for a human reader.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface DataAccessLabelOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public DataAccessLabel.Builder setDescription(String value)
       Optional. A description of the data access label for a human reader.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public DataAccessLabel.Builder clearDescription()
       Optional. A description of the data access label for a human reader.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public DataAccessLabel.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A description of the data access label for a human reader.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.