/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshot_ = value; onChanged(); } else { snapshotBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshot_ = value; onChanged(); } else { snapshotBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { snapshot_ = builderForValue.build(); onChanged(); } else { snapshotBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { snapshot_ = null; onChanged(); } else { snapshot_ = null; snapshotBuilder_ = null; } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) { if (other == com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()) return this; if (other.hasSnapshot()) { mergeSnapshot(other.getSnapshot()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } onChanged(); } else { snapshotBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { snapshot_ = null; onChanged(); } else { snapshot_ = null; snapshotBuilder_ = null; } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /**
/** * * * <pre> * The updated snapshot object. * </pre> * * <code>.google.pubsub.v1.Snapshot snapshot = 1;</code> */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { snapshot_ = builderForValue.build(); onChanged(); } else { snapshotBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided snapshot to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) { if (other == com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()) return this; if (other.hasSnapshot()) { mergeSnapshot(other.getSnapshot()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }