/** * <pre> * A human-readable description for the label. * </pre> * * <code>string description = 3;</code> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /**
/** * <pre> * The label key. * </pre> * * <code>string key = 1;</code> */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; }
/** * <pre> * A human-readable description for the label. * </pre> * * <code>string description = 3;</code> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The label key. * </pre> * * <code>string key = 1;</code> */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.api.LabelDescriptor other) { if (other == com.google.api.LabelDescriptor.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.valueType_ != 0) { setValueTypeValue(other.getValueTypeValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } onChanged(); return this; }
/** * <pre> * The type of data that can be assigned to the label. * </pre> * * <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code> */ public Builder setValueType(com.google.api.LabelDescriptor.ValueType value) { if (value == null) { throw new NullPointerException(); } valueType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * A human-readable description for the label. * </pre> * * <code>string description = 3;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * <pre> * The label key. * </pre> * * <code>string key = 1;</code> */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /**
/** * <pre> * The type of data that can be assigned to the label. * </pre> * * <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code> */ public Builder clearValueType() { valueType_ = 0; onChanged(); return this; }
/** * <pre> * The type of data that can be assigned to the label. * </pre> * * <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code> */ public Builder setValueTypeValue(int value) { valueType_ = value; onChanged(); return this; } /**