Class AttributeValues.Builder (1.9.4) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.9.4keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   final   class  AttributeValues . Builder   extends   GeneratedMessageV3 . Builder<AttributeValues . Builder >  implements   AttributeValuesOrBuilder  
   
   The values associated with a key of an attribute.
 Protobuf type google.cloud.pubsublite.v1.AttributeValues
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
  Methods
   
   
  addAllValues(Iterable<? extends ByteString> values) 
  
    
public   AttributeValues . Builder   addAllValues ( Iterable <?   extends   ByteString >  values )  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        values 
        Iterable <? extends com.google.protobuf.ByteString >The values to add.
 
       
     
  
  Returns 
  
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AttributeValues . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  addValues(ByteString value) 
  
    
public   AttributeValues . Builder   addValues ( ByteString   value )  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        value 
        ByteString The values to add.
 
       
     
  
  Returns 
  
   
  build() 
  
    
public   AttributeValues   build ()  
   
  Returns 
  
   
  buildPartial() 
  
    
public   AttributeValues   buildPartial ()  
   
  Returns 
  
   
  clear() 
  
    
public   AttributeValues . Builder   clear ()  
   
  Returns 
  
  Overrides 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   AttributeValues . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   AttributeValues . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearValues() 
  
    
public   AttributeValues . Builder   clearValues ()  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Returns 
  
   
  clone() 
  
    
public   AttributeValues . Builder   clone ()  
   
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   AttributeValues   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  Returns 
  
  Overrides 
  
   
  getValues(int index) 
  
    
public   ByteString   getValues ( int   index )  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index 
        int The index of the element to return.
 
       
     
  
  Returns 
  
    
      
        Type  
        Description  
       
      
        ByteString  
        The values at the given index.
 
       
     
  
   
  getValuesCount() 
  
    
public   int   getValuesCount ()  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The count of values.
 
       
     
  
   
  getValuesList() 
  
    
public   List<ByteString>   getValuesList ()  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Returns 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  mergeFrom(AttributeValues other) 
  
    
public   AttributeValues . Builder   mergeFrom ( AttributeValues   other )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   AttributeValues . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
   
  mergeFrom(Message other) 
  
    
public   AttributeValues . Builder   mergeFrom ( Message   other )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AttributeValues . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AttributeValues . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   AttributeValues . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AttributeValues . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  setValues(int index, ByteString value) 
  
    
public   AttributeValues . Builder   setValues ( int   index ,   ByteString   value )  
   
   The list of values associated with a key.
 repeated bytes values = 1;
 
  Parameters 
  
    
      
        Name  
        Description  
       
      
        index 
        int The index to set the value at.
 
       
      
        value 
        ByteString The values to set.
 
       
     
  
  Returns 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]