public final class RoutePolicy extends GeneratedMessageV3 implements RoutePolicyOrBuilder
Protobuf type google.cloud.compute.v1.RoutePolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
FINGERPRINT_FIELD_NUMBER
public static final int FINGERPRINT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TERMS_FIELD_NUMBER
public static final int TERMS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RoutePolicy getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RoutePolicy.Builder newBuilder()
newBuilder(RoutePolicy prototype)
public static RoutePolicy.Builder newBuilder(RoutePolicy prototype)
public static RoutePolicy parseDelimitedFrom(InputStream input)
public static RoutePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RoutePolicy parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RoutePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RoutePolicy parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RoutePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RoutePolicy parseFrom(CodedInputStream input)
public static RoutePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RoutePolicy parseFrom(InputStream input)
public static RoutePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RoutePolicy parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RoutePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RoutePolicy> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public RoutePolicy getDefaultInstanceForType()
getDescription()
public String getDescription()
An optional description of route policy.
optional string description = 422937596;
Returns |
Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of route policy.
optional string description = 422937596;
Returns |
Type |
Description |
ByteString |
The bytes for description.
|
getFingerprint()
public String getFingerprint()
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
optional string fingerprint = 234678500;
Returns |
Type |
Description |
String |
The fingerprint.
|
getFingerprintBytes()
public ByteString getFingerprintBytes()
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
optional string fingerprint = 234678500;
Returns |
Type |
Description |
ByteString |
The bytes for fingerprint.
|
getName()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
optional string name = 3373707;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
optional string name = 3373707;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<RoutePolicy> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTerms(int index)
public RoutePolicyPolicyTerm getTerms(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
Parameter |
Name |
Description |
index |
int
|
getTermsCount()
public int getTermsCount()
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
Returns |
Type |
Description |
int |
|
getTermsList()
public List<RoutePolicyPolicyTerm> getTermsList()
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
getTermsOrBuilder(int index)
public RoutePolicyPolicyTermOrBuilder getTermsOrBuilder(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
Parameter |
Name |
Description |
index |
int
|
getTermsOrBuilderList()
public List<? extends RoutePolicyPolicyTermOrBuilder> getTermsOrBuilderList()
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
Returns |
Type |
Description |
List<? extends com.google.cloud.compute.v1.RoutePolicyPolicyTermOrBuilder> |
|
getType()
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns |
Type |
Description |
String |
The type.
|
getTypeBytes()
public ByteString getTypeBytes()
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns |
Type |
Description |
ByteString |
The bytes for type.
|
hasDescription()
public boolean hasDescription()
An optional description of route policy.
optional string description = 422937596;
Returns |
Type |
Description |
boolean |
Whether the description field is set.
|
hasFingerprint()
public boolean hasFingerprint()
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
optional string fingerprint = 234678500;
Returns |
Type |
Description |
boolean |
Whether the fingerprint field is set.
|
hasName()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
optional string name = 3373707;
Returns |
Type |
Description |
boolean |
Whether the name field is set.
|
hasType()
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns |
Type |
Description |
boolean |
Whether the type field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RoutePolicy.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RoutePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public RoutePolicy.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides