Package com.google.cloud.compute.v1
Class GetServiceAttachmentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetServiceAttachmentRequest.Builder>
com.google.cloud.compute.v1.GetServiceAttachmentRequest.Builder
- All Implemented Interfaces:
GetServiceAttachmentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GetServiceAttachmentRequest
public static final class GetServiceAttachmentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GetServiceAttachmentRequest.Builder>
implements GetServiceAttachmentRequestOrBuilder
A request message for ServiceAttachments.Get. See the method description for details.Protobuf type
google.cloud.compute.v1.GetServiceAttachmentRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Project ID for this request.Name of the region of this request.Name of the ServiceAttachment resource to return.Indicates whether NAT IPs should be included in the response.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorProject ID for this request.com.google.protobuf.ByteStringProject ID for this request.Name of the region of this request.com.google.protobuf.ByteStringName of the region of this request.Name of the ServiceAttachment resource to return.com.google.protobuf.ByteStringName of the ServiceAttachment resource to return.booleanIndicates whether NAT IPs should be included in the response.booleanIndicates whether NAT IPs should be included in the response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setProject(String value) Project ID for this request.setProjectBytes(com.google.protobuf.ByteString value) Project ID for this request.Name of the region of this request.setRegionBytes(com.google.protobuf.ByteString value) Name of the region of this request.setServiceAttachment(String value) Name of the ServiceAttachment resource to return.setServiceAttachmentBytes(com.google.protobuf.ByteString value) Name of the ServiceAttachment resource to return.setShowNatIps(boolean value) Indicates whether NAT IPs should be included in the response.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GetServiceAttachmentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GetServiceAttachmentRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GetServiceAttachmentRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GetServiceAttachmentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GetServiceAttachmentRequest.Builder>
-
mergeFrom
public GetServiceAttachmentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GetServiceAttachmentRequest.Builder>- Throws:
IOException
-
getProject
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectBytesin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The bytes for project.
-
setProject
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The project to set.- Returns:
- This builder for chaining.
-
clearProject
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setProjectBytes
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for project to set.- Returns:
- This builder for chaining.
-
getRegion
Name of the region of this request.
string region = 138946292 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRegionin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Name of the region of this request.
string region = 138946292 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRegionBytesin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The bytes for region.
-
setRegion
Name of the region of this request.
string region = 138946292 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Name of the region of this request.
string region = 138946292 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setRegionBytes
Name of the region of this request.
string region = 138946292 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
getServiceAttachment
Name of the ServiceAttachment resource to return.
string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServiceAttachmentin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The serviceAttachment.
-
getServiceAttachmentBytes
public com.google.protobuf.ByteString getServiceAttachmentBytes()Name of the ServiceAttachment resource to return.
string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServiceAttachmentBytesin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The bytes for serviceAttachment.
-
setServiceAttachment
Name of the ServiceAttachment resource to return.
string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The serviceAttachment to set.- Returns:
- This builder for chaining.
-
clearServiceAttachment
Name of the ServiceAttachment resource to return.
string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setServiceAttachmentBytes
public GetServiceAttachmentRequest.Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) Name of the ServiceAttachment resource to return.
string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for serviceAttachment to set.- Returns:
- This builder for chaining.
-
hasShowNatIps
public boolean hasShowNatIps()Indicates whether NAT IPs should be included in the response.
optional bool show_nat_ips = 485502156;- Specified by:
hasShowNatIpsin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- Whether the showNatIps field is set.
-
getShowNatIps
public boolean getShowNatIps()Indicates whether NAT IPs should be included in the response.
optional bool show_nat_ips = 485502156;- Specified by:
getShowNatIpsin interfaceGetServiceAttachmentRequestOrBuilder- Returns:
- The showNatIps.
-
setShowNatIps
Indicates whether NAT IPs should be included in the response.
optional bool show_nat_ips = 485502156;- Parameters:
value- The showNatIps to set.- Returns:
- This builder for chaining.
-
clearShowNatIps
Indicates whether NAT IPs should be included in the response.
optional bool show_nat_ips = 485502156;- Returns:
- This builder for chaining.
-