Package com.google.cloud.compute.v1
Class BgpRouteAsPath.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BgpRouteAsPath.Builder>
com.google.cloud.compute.v1.BgpRouteAsPath.Builder
- All Implemented Interfaces:
BgpRouteAsPathOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BgpRouteAsPath
public static final class BgpRouteAsPath.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BgpRouteAsPath.Builder>
implements BgpRouteAsPathOrBuilder
Protobuf type
google.cloud.compute.v1.BgpRouteAsPath-
Method Summary
Modifier and TypeMethodDescriptionaddAllAsns(Iterable<? extends Integer> values) Output only.addAllAsns32(Iterable<? extends Integer> values) Output only.addAsns(int value) Output only.addAsns32(int value) Output only.build()clear()Output only.Output only.Output only.intgetAsns(int index) Output only.intgetAsns32(int index) Output only.intOutput only.Output only.intOutput only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetType()Output only.com.google.protobuf.ByteStringOutput only.booleanhasType()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BgpRouteAsPath other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAsns(int index, int value) Output only.setAsns32(int index, int value) Output only.Output only.setTypeBytes(com.google.protobuf.ByteString value) Output only.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<BgpRouteAsPath.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<BgpRouteAsPath.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<BgpRouteAsPath.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<BgpRouteAsPath.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BgpRouteAsPath.Builder>
-
mergeFrom
public BgpRouteAsPath.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<BgpRouteAsPath.Builder>- Throws:
IOException
-
getAsnsList
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Specified by:
getAsnsListin interfaceBgpRouteAsPathOrBuilder- Returns:
- A list containing the asns.
-
getAsnsCount
public int getAsnsCount()Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Specified by:
getAsnsCountin interfaceBgpRouteAsPathOrBuilder- Returns:
- The count of asns.
-
getAsns
public int getAsns(int index) Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Specified by:
getAsnsin interfaceBgpRouteAsPathOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The asns at the given index.
-
setAsns
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Parameters:
index- The index to set the value at.value- The asns to set.- Returns:
- This builder for chaining.
-
addAsns
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Parameters:
value- The asns to add.- Returns:
- This builder for chaining.
-
addAllAsns
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Parameters:
values- The asns to add.- Returns:
- This builder for chaining.
-
clearAsns
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Returns:
- This builder for chaining.
-
getAsns32List
Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Specified by:
getAsns32Listin interfaceBgpRouteAsPathOrBuilder- Returns:
- A list containing the asns32.
-
getAsns32Count
public int getAsns32Count()Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Specified by:
getAsns32Countin interfaceBgpRouteAsPathOrBuilder- Returns:
- The count of asns32.
-
getAsns32
public int getAsns32(int index) Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Specified by:
getAsns32in interfaceBgpRouteAsPathOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The asns32 at the given index.
-
setAsns32
Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Parameters:
index- The index to set the value at.value- The asns32 to set.- Returns:
- This builder for chaining.
-
addAsns32
Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Parameters:
value- The asns32 to add.- Returns:
- This builder for chaining.
-
addAllAsns32
Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Parameters:
values- The asns32 to add.- Returns:
- This builder for chaining.
-
clearAsns32
Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered.
repeated uint32 asns32 = 202267158;- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceBgpRouteAsPathOrBuilder- Returns:
- Whether the type field is set.
-
getType
Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceBgpRouteAsPathOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceBgpRouteAsPathOrBuilder- Returns:
- The bytes for type.
-
setType
Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-