public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (ConstraintDefault != global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ConstraintDefault.Unspecified) { hash ^= ConstraintDefault.GetHashCode(); } if (constraintTypeCase_ == ConstraintTypeOneofCase.ListConstraint) { hash ^= ListConstraint.GetHashCode(); } if (constraintTypeCase_ == ConstraintTypeOneofCase.BooleanConstraint) { hash ^= BooleanConstraint.GetHashCode(); } hash ^= (int)constraintTypeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public CardListRelationField(ListConstraint listConstraint, Card card) { ListConstraint = listConstraint; Card = card; ListRelationColumns = new List <ListRelationColumn>(); GetListRelationColumns(); }
private void SetupList(ListConstraint constraint) { AllowsCustomFields = false; IsCastable = false; IsIndexable = true; Fields = null; Types = null; var definition = constraint.ItemConstraint != null ? new VariableDefinition(string.Empty, constraint.ItemConstraint) : new VariableDefinition(string.Empty, constraint.ItemType); IndexField = new DefinitionAutocompleteItem(definition); }
public void MergeFrom(Constraint other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.Description.Length != 0) { Description = other.Description; } if (other.ConstraintDefault != global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ConstraintDefault.Unspecified) { ConstraintDefault = other.ConstraintDefault; } switch (other.ConstraintTypeCase) { case ConstraintTypeOneofCase.ListConstraint: if (ListConstraint == null) { ListConstraint = new global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ListConstraint(); } ListConstraint.MergeFrom(other.ListConstraint); break; case ConstraintTypeOneofCase.BooleanConstraint: if (BooleanConstraint == null) { BooleanConstraint = new global::Google.Cloud.OrgPolicy.V2.Constraint.Types.BooleanConstraint(); } BooleanConstraint.MergeFrom(other.BooleanConstraint); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public ActionResultRegistryItem(IActionResultFactory factory) : base(new InstanceItemActivator(factory), EmptyActionDescriptor.Instance, EmptyControllerDescriptor.Instance) { Constraint = new ListConstraint(factory.Constraints); }