
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;
/**
*
*
*
* A request message for RegionInstanceGroups.ListInstances. See the method description for details.
*
*
* Protobuf type {@code google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest}
*/
public final class ListInstancesRegionInstanceGroupsRequest
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest)
ListInstancesRegionInstanceGroupsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstancesRegionInstanceGroupsRequest.newBuilder() to construct.
private ListInstancesRegionInstanceGroupsRequest(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstancesRegionInstanceGroupsRequest() {
filter_ = "";
instanceGroup_ = "";
orderBy_ = "";
pageToken_ = "";
project_ = "";
region_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListInstancesRegionInstanceGroupsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest.class,
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest.Builder.class);
}
private int bitField0_;
public static final int FILTER_FIELD_NUMBER = 336120696;
@SuppressWarnings("serial")
private volatile java.lang.Object filter_ = "";
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTANCE_GROUP_FIELD_NUMBER = 81095253;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceGroup_ = "";
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @return The instanceGroup.
*/
@java.lang.Override
public java.lang.String getInstanceGroup() {
java.lang.Object ref = instanceGroup_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceGroup_ = s;
return s;
}
}
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for instanceGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInstanceGroupBytes() {
java.lang.Object ref = instanceGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
instanceGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_RESULTS_FIELD_NUMBER = 54715419;
private int maxResults_ = 0;
/**
*
*
*
* The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
*
*
* optional uint32 max_results = 54715419;
*
* @return Whether the maxResults field is set.
*/
@java.lang.Override
public boolean hasMaxResults() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
*
*
* optional uint32 max_results = 54715419;
*
* @return The maxResults.
*/
@java.lang.Override
public int getMaxResults() {
return maxResults_;
}
public static final int ORDER_BY_FIELD_NUMBER = 160562920;
@SuppressWarnings("serial")
private volatile java.lang.Object orderBy_ = "";
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return Whether the orderBy field is set.
*/
@java.lang.Override
public boolean hasOrderBy() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return The orderBy.
*/
@java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderBy_ = s;
return s;
}
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return The bytes for orderBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
orderBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697;
@SuppressWarnings("serial")
private volatile java.lang.Object pageToken_ = "";
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return Whether the pageToken field is set.
*/
@java.lang.Override
public boolean hasPageToken() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECT_FIELD_NUMBER = 227560217;
@SuppressWarnings("serial")
private volatile java.lang.Object project_ = "";
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @return The project.
*/
@java.lang.Override
public java.lang.String getProject() {
java.lang.Object ref = project_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
project_ = s;
return s;
}
}
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for project.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProjectBytes() {
java.lang.Object ref = project_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
project_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGION_FIELD_NUMBER = 138946292;
@SuppressWarnings("serial")
private volatile java.lang.Object region_ = "";
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @return The region.
*/
@java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
}
}
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for region.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGION_INSTANCE_GROUPS_LIST_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER =
48239828;
private com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
regionInstanceGroupsListInstancesRequestResource_;
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the regionInstanceGroupsListInstancesRequestResource field is set.
*/
@java.lang.Override
public boolean hasRegionInstanceGroupsListInstancesRequestResource() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The regionInstanceGroupsListInstancesRequestResource.
*/
@java.lang.Override
public com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
getRegionInstanceGroupsListInstancesRequestResource() {
return regionInstanceGroupsListInstancesRequestResource_ == null
? com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.getDefaultInstance()
: regionInstanceGroupsListInstancesRequestResource_;
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestOrBuilder
getRegionInstanceGroupsListInstancesRequestResourceOrBuilder() {
return regionInstanceGroupsListInstancesRequestResource_ == null
? com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.getDefaultInstance()
: regionInstanceGroupsListInstancesRequestResource_;
}
public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390;
private boolean returnPartialSuccess_ = false;
/**
*
*
*
* Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
*
*
* optional bool return_partial_success = 517198390;
*
* @return Whether the returnPartialSuccess field is set.
*/
@java.lang.Override
public boolean hasReturnPartialSuccess() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
*
*
* optional bool return_partial_success = 517198390;
*
* @return The returnPartialSuccess.
*/
@java.lang.Override
public boolean getReturnPartialSuccess() {
return returnPartialSuccess_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19994697, pageToken_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(48239828, getRegionInstanceGroupsListInstancesRequestResource());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(54715419, maxResults_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroup_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 81095253, instanceGroup_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 160562920, orderBy_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 336120696, filter_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(517198390, returnPartialSuccess_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19994697, pageToken_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
48239828, getRegionInstanceGroupsListInstancesRequestResource());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroup_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(81095253, instanceGroup_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(160562920, orderBy_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(336120696, filter_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest other =
(com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest) obj;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter().equals(other.getFilter())) return false;
}
if (!getInstanceGroup().equals(other.getInstanceGroup())) return false;
if (hasMaxResults() != other.hasMaxResults()) return false;
if (hasMaxResults()) {
if (getMaxResults() != other.getMaxResults()) return false;
}
if (hasOrderBy() != other.hasOrderBy()) return false;
if (hasOrderBy()) {
if (!getOrderBy().equals(other.getOrderBy())) return false;
}
if (hasPageToken() != other.hasPageToken()) return false;
if (hasPageToken()) {
if (!getPageToken().equals(other.getPageToken())) return false;
}
if (!getProject().equals(other.getProject())) return false;
if (!getRegion().equals(other.getRegion())) return false;
if (hasRegionInstanceGroupsListInstancesRequestResource()
!= other.hasRegionInstanceGroupsListInstancesRequestResource()) return false;
if (hasRegionInstanceGroupsListInstancesRequestResource()) {
if (!getRegionInstanceGroupsListInstancesRequestResource()
.equals(other.getRegionInstanceGroupsListInstancesRequestResource())) return false;
}
if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false;
if (hasReturnPartialSuccess()) {
if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + INSTANCE_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroup().hashCode();
if (hasMaxResults()) {
hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxResults();
}
if (hasOrderBy()) {
hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
hash = (53 * hash) + getOrderBy().hashCode();
}
if (hasPageToken()) {
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
}
hash = (37 * hash) + PROJECT_FIELD_NUMBER;
hash = (53 * hash) + getProject().hashCode();
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
if (hasRegionInstanceGroupsListInstancesRequestResource()) {
hash = (37 * hash) + REGION_INSTANCE_GROUPS_LIST_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getRegionInstanceGroupsListInstancesRequestResource().hashCode();
}
if (hasReturnPartialSuccess()) {
hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A request message for RegionInstanceGroups.ListInstances. See the method description for details.
*
*
* Protobuf type {@code google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest)
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest.class,
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest.Builder.class);
}
// Construct using
// com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRegionInstanceGroupsListInstancesRequestResourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
filter_ = "";
instanceGroup_ = "";
maxResults_ = 0;
orderBy_ = "";
pageToken_ = "";
project_ = "";
region_ = "";
regionInstanceGroupsListInstancesRequestResource_ = null;
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ != null) {
regionInstanceGroupsListInstancesRequestResourceBuilder_.dispose();
regionInstanceGroupsListInstancesRequestResourceBuilder_ = null;
}
returnPartialSuccess_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
getDefaultInstanceForType() {
return com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest build() {
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest buildPartial() {
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest result =
new com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.filter_ = filter_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.instanceGroup_ = instanceGroup_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxResults_ = maxResults_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.orderBy_ = orderBy_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.pageToken_ = pageToken_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.project_ = project_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.region_ = region_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.regionInstanceGroupsListInstancesRequestResource_ =
regionInstanceGroupsListInstancesRequestResourceBuilder_ == null
? regionInstanceGroupsListInstancesRequestResource_
: regionInstanceGroupsListInstancesRequestResourceBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.returnPartialSuccess_ = returnPartialSuccess_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest) {
return mergeFrom(
(com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest other) {
if (other
== com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
.getDefaultInstance()) return this;
if (other.hasFilter()) {
filter_ = other.filter_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getInstanceGroup().isEmpty()) {
instanceGroup_ = other.instanceGroup_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasMaxResults()) {
setMaxResults(other.getMaxResults());
}
if (other.hasOrderBy()) {
orderBy_ = other.orderBy_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasPageToken()) {
pageToken_ = other.pageToken_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getProject().isEmpty()) {
project_ = other.project_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getRegion().isEmpty()) {
region_ = other.region_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasRegionInstanceGroupsListInstancesRequestResource()) {
mergeRegionInstanceGroupsListInstancesRequestResource(
other.getRegionInstanceGroupsListInstancesRequestResource());
}
if (other.hasReturnPartialSuccess()) {
setReturnPartialSuccess(other.getReturnPartialSuccess());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 159957578:
{
pageToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 159957578
case 385918626:
{
input.readMessage(
getRegionInstanceGroupsListInstancesRequestResourceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 385918626
case 437723352:
{
maxResults_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 437723352
case 648762026:
{
instanceGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 648762026
case 1111570338:
{
region_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 1111570338
case 1284503362:
{
orderBy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 1284503362
case 1820481738:
{
project_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 1820481738
case -1606001726:
{
filter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case -1606001726
case -157380176:
{
returnPartialSuccess_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case -157380176
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object filter_ = "";
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
*
*
* optional string filter = 336120696;
*
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object instanceGroup_ = "";
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @return The instanceGroup.
*/
public java.lang.String getInstanceGroup() {
java.lang.Object ref = instanceGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for instanceGroup.
*/
public com.google.protobuf.ByteString getInstanceGroupBytes() {
java.lang.Object ref = instanceGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
instanceGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The instanceGroup to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroup(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroup_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearInstanceGroup() {
instanceGroup_ = getDefaultInstance().getInstanceGroup();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Name of the regional instance group for which we want to list the instances.
*
*
* string instance_group = 81095253 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for instanceGroup to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroup_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int maxResults_;
/**
*
*
*
* The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
*
*
* optional uint32 max_results = 54715419;
*
* @return Whether the maxResults field is set.
*/
@java.lang.Override
public boolean hasMaxResults() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
*
*
* optional uint32 max_results = 54715419;
*
* @return The maxResults.
*/
@java.lang.Override
public int getMaxResults() {
return maxResults_;
}
/**
*
*
*
* The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
*
*
* optional uint32 max_results = 54715419;
*
* @param value The maxResults to set.
* @return This builder for chaining.
*/
public Builder setMaxResults(int value) {
maxResults_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
*
*
* optional uint32 max_results = 54715419;
*
* @return This builder for chaining.
*/
public Builder clearMaxResults() {
bitField0_ = (bitField0_ & ~0x00000004);
maxResults_ = 0;
onChanged();
return this;
}
private java.lang.Object orderBy_ = "";
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return Whether the orderBy field is set.
*/
public boolean hasOrderBy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return The orderBy.
*/
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return The bytes for orderBy.
*/
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
orderBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @param value The orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderBy(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
orderBy_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @return This builder for chaining.
*/
public Builder clearOrderBy() {
orderBy_ = getDefaultInstance().getOrderBy();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
*
*
* optional string order_by = 160562920;
*
* @param value The bytes for orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
orderBy_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return Whether the pageToken field is set.
*/
public boolean hasPageToken() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
*
*
* optional string page_token = 19994697;
*
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object project_ = "";
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @return The project.
*/
public java.lang.String getProject() {
java.lang.Object ref = project_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
project_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for project.
*/
public com.google.protobuf.ByteString getProjectBytes() {
java.lang.Object ref = project_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
project_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The project to set.
* @return This builder for chaining.
*/
public Builder setProject(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
project_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearProject() {
project_ = getDefaultInstance().getProject();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Project ID for this request.
*
*
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for project to set.
* @return This builder for chaining.
*/
public Builder setProjectBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
project_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object region_ = "";
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for region.
*/
public com.google.protobuf.ByteString getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The region to set.
* @return This builder for chaining.
*/
public Builder setRegion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearRegion() {
region_ = getDefaultInstance().getRegion();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*
*
* Name of the region scoping this request.
*
*
* string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for region to set.
* @return This builder for chaining.
*/
public Builder setRegionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
region_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
regionInstanceGroupsListInstancesRequestResource_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest,
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.Builder,
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestOrBuilder>
regionInstanceGroupsListInstancesRequestResourceBuilder_;
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the regionInstanceGroupsListInstancesRequestResource field is set.
*/
public boolean hasRegionInstanceGroupsListInstancesRequestResource() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The regionInstanceGroupsListInstancesRequestResource.
*/
public com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
getRegionInstanceGroupsListInstancesRequestResource() {
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ == null) {
return regionInstanceGroupsListInstancesRequestResource_ == null
? com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
.getDefaultInstance()
: regionInstanceGroupsListInstancesRequestResource_;
} else {
return regionInstanceGroupsListInstancesRequestResourceBuilder_.getMessage();
}
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setRegionInstanceGroupsListInstancesRequestResource(
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest value) {
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
regionInstanceGroupsListInstancesRequestResource_ = value;
} else {
regionInstanceGroupsListInstancesRequestResourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setRegionInstanceGroupsListInstancesRequestResource(
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.Builder
builderForValue) {
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ == null) {
regionInstanceGroupsListInstancesRequestResource_ = builderForValue.build();
} else {
regionInstanceGroupsListInstancesRequestResourceBuilder_.setMessage(
builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeRegionInstanceGroupsListInstancesRequestResource(
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest value) {
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& regionInstanceGroupsListInstancesRequestResource_ != null
&& regionInstanceGroupsListInstancesRequestResource_
!= com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
.getDefaultInstance()) {
getRegionInstanceGroupsListInstancesRequestResourceBuilder().mergeFrom(value);
} else {
regionInstanceGroupsListInstancesRequestResource_ = value;
}
} else {
regionInstanceGroupsListInstancesRequestResourceBuilder_.mergeFrom(value);
}
if (regionInstanceGroupsListInstancesRequestResource_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearRegionInstanceGroupsListInstancesRequestResource() {
bitField0_ = (bitField0_ & ~0x00000080);
regionInstanceGroupsListInstancesRequestResource_ = null;
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ != null) {
regionInstanceGroupsListInstancesRequestResourceBuilder_.dispose();
regionInstanceGroupsListInstancesRequestResourceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.Builder
getRegionInstanceGroupsListInstancesRequestResourceBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getRegionInstanceGroupsListInstancesRequestResourceFieldBuilder().getBuilder();
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestOrBuilder
getRegionInstanceGroupsListInstancesRequestResourceOrBuilder() {
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ != null) {
return regionInstanceGroupsListInstancesRequestResourceBuilder_.getMessageOrBuilder();
} else {
return regionInstanceGroupsListInstancesRequestResource_ == null
? com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest
.getDefaultInstance()
: regionInstanceGroupsListInstancesRequestResource_;
}
}
/**
*
*
*
* The body resource for this request
*
*
*
* .google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest,
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.Builder,
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestOrBuilder>
getRegionInstanceGroupsListInstancesRequestResourceFieldBuilder() {
if (regionInstanceGroupsListInstancesRequestResourceBuilder_ == null) {
regionInstanceGroupsListInstancesRequestResourceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest,
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest.Builder,
com.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestOrBuilder>(
getRegionInstanceGroupsListInstancesRequestResource(),
getParentForChildren(),
isClean());
regionInstanceGroupsListInstancesRequestResource_ = null;
}
return regionInstanceGroupsListInstancesRequestResourceBuilder_;
}
private boolean returnPartialSuccess_;
/**
*
*
*
* Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
*
*
* optional bool return_partial_success = 517198390;
*
* @return Whether the returnPartialSuccess field is set.
*/
@java.lang.Override
public boolean hasReturnPartialSuccess() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
*
*
* optional bool return_partial_success = 517198390;
*
* @return The returnPartialSuccess.
*/
@java.lang.Override
public boolean getReturnPartialSuccess() {
return returnPartialSuccess_;
}
/**
*
*
*
* Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
*
*
* optional bool return_partial_success = 517198390;
*
* @param value The returnPartialSuccess to set.
* @return This builder for chaining.
*/
public Builder setReturnPartialSuccess(boolean value) {
returnPartialSuccess_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
*
*
* optional bool return_partial_success = 517198390;
*
* @return This builder for chaining.
*/
public Builder clearReturnPartialSuccess() {
bitField0_ = (bitField0_ & ~0x00000100);
returnPartialSuccess_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest)
private static final com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest();
}
public static com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstancesRegionInstanceGroupsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy