Package com.google.cloud.compute.v1
Class GetSerialPortOutputInstanceRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
- com.google.cloud.compute.v1.GetSerialPortOutputInstanceRequest.Builder
-
- All Implemented Interfaces:
GetSerialPortOutputInstanceRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GetSerialPortOutputInstanceRequest
public static final class GetSerialPortOutputInstanceRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder> implements GetSerialPortOutputInstanceRequestOrBuilder
A request message for Instances.GetSerialPortOutput. See the method description for details.
Protobuf typegoogle.cloud.compute.v1.GetSerialPortOutputInstanceRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetSerialPortOutputInstanceRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GetSerialPortOutputInstanceRequest
build()
GetSerialPortOutputInstanceRequest
buildPartial()
GetSerialPortOutputInstanceRequest.Builder
clear()
GetSerialPortOutputInstanceRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GetSerialPortOutputInstanceRequest.Builder
clearInstance()
Name of the instance for this request.GetSerialPortOutputInstanceRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GetSerialPortOutputInstanceRequest.Builder
clearPort()
Specifies which COM or serial port to retrieve data from.GetSerialPortOutputInstanceRequest.Builder
clearProject()
Project ID for this request.GetSerialPortOutputInstanceRequest.Builder
clearStart()
Specifies the starting byte position of the output to return.GetSerialPortOutputInstanceRequest.Builder
clearZone()
The name of the zone for this request.GetSerialPortOutputInstanceRequest.Builder
clone()
GetSerialPortOutputInstanceRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInstance()
Name of the instance for this request.com.google.protobuf.ByteString
getInstanceBytes()
Name of the instance for this request.int
getPort()
Specifies which COM or serial port to retrieve data from.String
getProject()
Project ID for this request.com.google.protobuf.ByteString
getProjectBytes()
Project ID for this request.long
getStart()
Specifies the starting byte position of the output to return.String
getZone()
The name of the zone for this request.com.google.protobuf.ByteString
getZoneBytes()
The name of the zone for this request.boolean
hasPort()
Specifies which COM or serial port to retrieve data from.boolean
hasStart()
Specifies the starting byte position of the output to return.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GetSerialPortOutputInstanceRequest.Builder
mergeFrom(GetSerialPortOutputInstanceRequest other)
GetSerialPortOutputInstanceRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GetSerialPortOutputInstanceRequest.Builder
mergeFrom(com.google.protobuf.Message other)
GetSerialPortOutputInstanceRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GetSerialPortOutputInstanceRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GetSerialPortOutputInstanceRequest.Builder
setInstance(String value)
Name of the instance for this request.GetSerialPortOutputInstanceRequest.Builder
setInstanceBytes(com.google.protobuf.ByteString value)
Name of the instance for this request.GetSerialPortOutputInstanceRequest.Builder
setPort(int value)
Specifies which COM or serial port to retrieve data from.GetSerialPortOutputInstanceRequest.Builder
setProject(String value)
Project ID for this request.GetSerialPortOutputInstanceRequest.Builder
setProjectBytes(com.google.protobuf.ByteString value)
Project ID for this request.GetSerialPortOutputInstanceRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GetSerialPortOutputInstanceRequest.Builder
setStart(long value)
Specifies the starting byte position of the output to return.GetSerialPortOutputInstanceRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GetSerialPortOutputInstanceRequest.Builder
setZone(String value)
The name of the zone for this request.GetSerialPortOutputInstanceRequest.Builder
setZoneBytes(com.google.protobuf.ByteString value)
The name of the zone for this request.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
clear
public GetSerialPortOutputInstanceRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
getDefaultInstanceForType
public GetSerialPortOutputInstanceRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GetSerialPortOutputInstanceRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GetSerialPortOutputInstanceRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GetSerialPortOutputInstanceRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
setField
public GetSerialPortOutputInstanceRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
clearField
public GetSerialPortOutputInstanceRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
clearOneof
public GetSerialPortOutputInstanceRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
setRepeatedField
public GetSerialPortOutputInstanceRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
addRepeatedField
public GetSerialPortOutputInstanceRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
mergeFrom
public GetSerialPortOutputInstanceRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
mergeFrom
public GetSerialPortOutputInstanceRequest.Builder mergeFrom(GetSerialPortOutputInstanceRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
mergeFrom
public GetSerialPortOutputInstanceRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GetSerialPortOutputInstanceRequest.Builder>
- Throws:
IOException
-
getInstance
public String getInstance()
Name of the instance for this request.
string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInstance
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()
Name of the instance for this request.
string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInstanceBytes
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The bytes for instance.
-
setInstance
public GetSerialPortOutputInstanceRequest.Builder setInstance(String value)
Name of the instance for this request.
string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
public GetSerialPortOutputInstanceRequest.Builder clearInstance()
Name of the instance for this request.
string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setInstanceBytes
public GetSerialPortOutputInstanceRequest.Builder setInstanceBytes(com.google.protobuf.ByteString value)
Name of the instance for this request.
string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for instance to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()
Specifies which COM or serial port to retrieve data from.
optional int32 port = 3446913;
- Specified by:
hasPort
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public int getPort()
Specifies which COM or serial port to retrieve data from.
optional int32 port = 3446913;
- Specified by:
getPort
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The port.
-
setPort
public GetSerialPortOutputInstanceRequest.Builder setPort(int value)
Specifies which COM or serial port to retrieve data from.
optional int32 port = 3446913;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public GetSerialPortOutputInstanceRequest.Builder clearPort()
Specifies which COM or serial port to retrieve data from.
optional int32 port = 3446913;
- Returns:
- This builder for chaining.
-
getProject
public String getProject()
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getProject
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- 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:
getProjectBytes
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The bytes for project.
-
setProject
public GetSerialPortOutputInstanceRequest.Builder setProject(String value)
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
public GetSerialPortOutputInstanceRequest.Builder clearProject()
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setProjectBytes
public GetSerialPortOutputInstanceRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
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.
-
hasStart
public boolean hasStart()
Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
optional int64 start = 109757538;
- Specified by:
hasStart
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
public long getStart()
Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
optional int64 start = 109757538;
- Specified by:
getStart
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The start.
-
setStart
public GetSerialPortOutputInstanceRequest.Builder setStart(long value)
Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
optional int64 start = 109757538;
- Parameters:
value
- The start to set.- Returns:
- This builder for chaining.
-
clearStart
public GetSerialPortOutputInstanceRequest.Builder clearStart()
Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
optional int64 start = 109757538;
- Returns:
- This builder for chaining.
-
getZone
public String getZone()
The name of the zone for this request.
string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getZone
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
The name of the zone for this request.
string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getZoneBytes
in interfaceGetSerialPortOutputInstanceRequestOrBuilder
- Returns:
- The bytes for zone.
-
setZone
public GetSerialPortOutputInstanceRequest.Builder setZone(String value)
The name of the zone for this request.
string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
public GetSerialPortOutputInstanceRequest.Builder clearZone()
The name of the zone for this request.
string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setZoneBytes
public GetSerialPortOutputInstanceRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
The name of the zone for this request.
string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for zone to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GetSerialPortOutputInstanceRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
mergeUnknownFields
public final GetSerialPortOutputInstanceRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder>
-
-