Package com.google.cloud.compute.v1
Class SerialPortOutput.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
-
- com.google.cloud.compute.v1.SerialPortOutput.Builder
-
- All Implemented Interfaces:
SerialPortOutputOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SerialPortOutput
public static final class SerialPortOutput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder> implements SerialPortOutputOrBuilder
An instance serial console output.
Protobuf typegoogle.cloud.compute.v1.SerialPortOutput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SerialPortOutput.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SerialPortOutput
build()
SerialPortOutput
buildPartial()
SerialPortOutput.Builder
clear()
SerialPortOutput.Builder
clearContents()
[Output Only] The contents of the console output.SerialPortOutput.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SerialPortOutput.Builder
clearKind()
[Output Only] Type of the resource.SerialPortOutput.Builder
clearNext()
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property.SerialPortOutput.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SerialPortOutput.Builder
clearSelfLink()
[Output Only] Server-defined URL for this resource.SerialPortOutput.Builder
clearStart()
The starting byte position of the output that was returned.SerialPortOutput.Builder
clone()
String
getContents()
[Output Only] The contents of the console output.com.google.protobuf.ByteString
getContentsBytes()
[Output Only] The contents of the console output.SerialPortOutput
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.long
getNext()
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property.String
getSelfLink()
[Output Only] Server-defined URL for this resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for this resource.long
getStart()
The starting byte position of the output that was returned.boolean
hasContents()
[Output Only] The contents of the console output.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasNext()
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property.boolean
hasSelfLink()
[Output Only] Server-defined URL for this resource.boolean
hasStart()
The starting byte position of the output that was returned.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SerialPortOutput.Builder
mergeFrom(SerialPortOutput other)
SerialPortOutput.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SerialPortOutput.Builder
mergeFrom(com.google.protobuf.Message other)
SerialPortOutput.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SerialPortOutput.Builder
setContents(String value)
[Output Only] The contents of the console output.SerialPortOutput.Builder
setContentsBytes(com.google.protobuf.ByteString value)
[Output Only] The contents of the console output.SerialPortOutput.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SerialPortOutput.Builder
setKind(String value)
[Output Only] Type of the resource.SerialPortOutput.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.SerialPortOutput.Builder
setNext(long value)
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property.SerialPortOutput.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SerialPortOutput.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for this resource.SerialPortOutput.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource.SerialPortOutput.Builder
setStart(long value)
The starting byte position of the output that was returned.SerialPortOutput.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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<SerialPortOutput.Builder>
-
clear
public SerialPortOutput.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<SerialPortOutput.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<SerialPortOutput.Builder>
-
getDefaultInstanceForType
public SerialPortOutput getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SerialPortOutput build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SerialPortOutput buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SerialPortOutput.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<SerialPortOutput.Builder>
-
setField
public SerialPortOutput.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<SerialPortOutput.Builder>
-
clearField
public SerialPortOutput.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<SerialPortOutput.Builder>
-
clearOneof
public SerialPortOutput.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<SerialPortOutput.Builder>
-
setRepeatedField
public SerialPortOutput.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<SerialPortOutput.Builder>
-
addRepeatedField
public SerialPortOutput.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<SerialPortOutput.Builder>
-
mergeFrom
public SerialPortOutput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SerialPortOutput.Builder>
-
mergeFrom
public SerialPortOutput.Builder mergeFrom(SerialPortOutput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
-
mergeFrom
public SerialPortOutput.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<SerialPortOutput.Builder>
- Throws:
IOException
-
hasContents
public boolean hasContents()
[Output Only] The contents of the console output.
optional string contents = 506419994;
- Specified by:
hasContents
in interfaceSerialPortOutputOrBuilder
- Returns:
- Whether the contents field is set.
-
getContents
public String getContents()
[Output Only] The contents of the console output.
optional string contents = 506419994;
- Specified by:
getContents
in interfaceSerialPortOutputOrBuilder
- Returns:
- The contents.
-
getContentsBytes
public com.google.protobuf.ByteString getContentsBytes()
[Output Only] The contents of the console output.
optional string contents = 506419994;
- Specified by:
getContentsBytes
in interfaceSerialPortOutputOrBuilder
- Returns:
- The bytes for contents.
-
setContents
public SerialPortOutput.Builder setContents(String value)
[Output Only] The contents of the console output.
optional string contents = 506419994;
- Parameters:
value
- The contents to set.- Returns:
- This builder for chaining.
-
clearContents
public SerialPortOutput.Builder clearContents()
[Output Only] The contents of the console output.
optional string contents = 506419994;
- Returns:
- This builder for chaining.
-
setContentsBytes
public SerialPortOutput.Builder setContentsBytes(com.google.protobuf.ByteString value)
[Output Only] The contents of the console output.
optional string contents = 506419994;
- Parameters:
value
- The bytes for contents to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceSerialPortOutputOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceSerialPortOutputOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceSerialPortOutputOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public SerialPortOutput.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public SerialPortOutput.Builder clearKind()
[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public SerialPortOutput.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasNext
public boolean hasNext()
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property. Use this value in the next request as the start parameter.
optional int64 next = 3377907;
- Specified by:
hasNext
in interfaceSerialPortOutputOrBuilder
- Returns:
- Whether the next field is set.
-
getNext
public long getNext()
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property. Use this value in the next request as the start parameter.
optional int64 next = 3377907;
- Specified by:
getNext
in interfaceSerialPortOutputOrBuilder
- Returns:
- The next.
-
setNext
public SerialPortOutput.Builder setNext(long value)
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property. Use this value in the next request as the start parameter.
optional int64 next = 3377907;
- Parameters:
value
- The next to set.- Returns:
- This builder for chaining.
-
clearNext
public SerialPortOutput.Builder clearNext()
[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property. Use this value in the next request as the start parameter.
optional int64 next = 3377907;
- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceSerialPortOutputOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceSerialPortOutputOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceSerialPortOutputOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public SerialPortOutput.Builder setSelfLink(String value)
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public SerialPortOutput.Builder clearSelfLink()
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public SerialPortOutput.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasStart
public boolean hasStart()
The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the `start` value that was specified in the request.
optional int64 start = 109757538;
- Specified by:
hasStart
in interfaceSerialPortOutputOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
public long getStart()
The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the `start` value that was specified in the request.
optional int64 start = 109757538;
- Specified by:
getStart
in interfaceSerialPortOutputOrBuilder
- Returns:
- The start.
-
setStart
public SerialPortOutput.Builder setStart(long value)
The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the `start` value that was specified in the request.
optional int64 start = 109757538;
- Parameters:
value
- The start to set.- Returns:
- This builder for chaining.
-
clearStart
public SerialPortOutput.Builder clearStart()
The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the `start` value that was specified in the request.
optional int64 start = 109757538;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final SerialPortOutput.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
-
mergeUnknownFields
public final SerialPortOutput.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
-
-