/** * * * <pre> * Optional. An arbitrary operation identifier. Log entries with the * same identifier are assumed to be part of the same operation. * </pre> * * <code>string id = 1;</code> */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; }
/** * * * <pre> * Optional. An arbitrary producer identifier. The combination of * `id` and `producer` must be globally unique. Examples for `producer`: * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. * </pre> * * <code>string producer = 2;</code> */ public Builder setProducerBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producer_ = value; onChanged(); return this; }
/** * * * <pre> * Optional. An arbitrary producer identifier. The combination of * `id` and `producer` must be globally unique. Examples for `producer`: * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. * </pre> * * <code>string producer = 2;</code> */ public Builder setProducer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } producer_ = value; onChanged(); return this; } /**
/** * * * <pre> * Optional. An arbitrary operation identifier. Log entries with the * same identifier are assumed to be part of the same operation. * </pre> * * <code>string id = 1;</code> */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.logging.v2.LogEntryOperation other) { if (other == com.google.logging.v2.LogEntryOperation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getProducer().isEmpty()) { producer_ = other.producer_; onChanged(); } if (other.getFirst() != false) { setFirst(other.getFirst()); } if (other.getLast() != false) { setLast(other.getLast()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Optional. An arbitrary operation identifier. Log entries with the * same identifier are assumed to be part of the same operation. * </pre> * * <code>string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
/** * * * <pre> * Optional. An arbitrary producer identifier. The combination of * `id` and `producer` must be globally unique. Examples for `producer`: * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. * </pre> * * <code>string producer = 2;</code> */ public Builder clearProducer() { producer_ = getDefaultInstance().getProducer(); onChanged(); return this; } /**
/** * * * <pre> * Optional. Set this to True if this is the last log entry in the operation. * </pre> * * <code>bool last = 4;</code> */ public Builder setLast(boolean value) { last_ = value; onChanged(); return this; } /**
/** * * * <pre> * Optional. Set this to True if this is the last log entry in the operation. * </pre> * * <code>bool last = 4;</code> */ public Builder clearLast() { last_ = false; onChanged(); return this; }
/** * * * <pre> * Optional. Set this to True if this is the first log entry in the operation. * </pre> * * <code>bool first = 3;</code> */ public Builder clearFirst() { first_ = false; onChanged(); return this; }
/** * * * <pre> * Optional. Set this to True if this is the first log entry in the operation. * </pre> * * <code>bool first = 3;</code> */ public Builder setFirst(boolean value) { first_ = value; onChanged(); return this; } /**