/** * * * <pre> * The project on which to execute the request. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>string name = 5;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * The project on which to execute the request. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>string name = 5;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>string page_token = 4;</code> */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; }
/** * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>optional string page_token = 4;</code> */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * An optional [filter](/monitoring/api/v3/filters) describing * the descriptors to be returned. The filter can reference * the descriptor's type and labels. For example, the * following filter returns only Google Compute Engine descriptors * that have an `id` label: * resource.type = starts_with("gce_") AND resource.label:id * </pre> * * <code>optional string filter = 2;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
/** * <pre> * The project on which to execute the request. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>optional string name = 5;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * <pre> * The project on which to execute the request. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>optional string name = 5;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * <pre> * The project on which to execute the request. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>optional string name = 5;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>optional string page_token = 4;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
/** * <pre> * A positive number that is the maximum number of results to return. * </pre> * * <code>optional int32 page_size = 3;</code> */ public Builder setPageSize(int value) { pageSize_ = value; onChanged(); return this; } /**
/** * <pre> * A positive number that is the maximum number of results to return. * </pre> * * <code>optional int32 page_size = 3;</code> */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; }
public Builder mergeFrom( com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other) { if (other == com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * An optional [filter](/monitoring/api/v3/filters) describing * the descriptors to be returned. The filter can reference * the descriptor's type and labels. For example, the * following filter returns only Google Compute Engine descriptors * that have an `id` label: * resource.type = starts_with("gce_") AND resource.label:id * </pre> * * <code>string filter = 2;</code> */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; }
/** * * * <pre> * An optional [filter](/monitoring/api/v3/filters) describing * the descriptors to be returned. The filter can reference * the descriptor's type and labels. For example, the * following filter returns only Google Compute Engine descriptors * that have an `id` label: * resource.type = starts_with("gce_") AND resource.label:id * </pre> * * <code>string filter = 2;</code> */ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /**
/** * * * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>string page_token = 4;</code> */ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * An optional [filter](/monitoring/api/v3/filters) describing * the descriptors to be returned. The filter can reference * the descriptor's type and labels. For example, the * following filter returns only Google Compute Engine descriptors * that have an `id` label: * resource.type = starts_with("gce_") AND resource.label:id * </pre> * * <code>string filter = 2;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
/** * * * <pre> * The project on which to execute the request. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>string name = 5;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>string page_token = 4;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
/** * * * <pre> * A positive number that is the maximum number of results to return. * </pre> * * <code>int32 page_size = 3;</code> */ public Builder setPageSize(int value) { pageSize_ = value; onChanged(); return this; } /**
/** * * * <pre> * A positive number that is the maximum number of results to return. * </pre> * * <code>int32 page_size = 3;</code> */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; }